github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff a037d88929460ff9571927c56d6db215be086149 
309050cf7cecab87b851e5d70f5f7437577a828f -- 
lldb/include/lldb/API/SBAddressRange.h 
lldb/include/lldb/API/SBAddressRangeList.h lldb/source/API/SBAddressRange.cpp 
lldb/source/API/SBAddressRangeList.cpp 
lldb/test/API/python_api/address_range/main.cpp lldb/include/lldb/API/LLDB.h 
lldb/include/lldb/API/SBAddress.h lldb/include/lldb/API/SBBlock.h 
lldb/include/lldb/API/SBDefines.h lldb/include/lldb/API/SBFunction.h 
lldb/include/lldb/Core/AddressRange.h lldb/include/lldb/lldb-forward.h 
lldb/source/API/SBBlock.cpp lldb/source/API/SBFunction.cpp 
lldb/source/Core/AddressRange.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/include/lldb/API/SBAddressRangeList.h 
b/lldb/include/lldb/API/SBAddressRangeList.h
index 81dab4a88d..f6d7f170d9 100644
--- a/lldb/include/lldb/API/SBAddressRangeList.h
+++ b/lldb/include/lldb/API/SBAddressRangeList.h
@@ -25,7 +25,8 @@ public:
 
   ~SBAddressRangeList();
 
-  const lldb::SBAddressRangeList &operator=(const lldb::SBAddressRangeList 
&rhs);
+  const lldb::SBAddressRangeList &
+  operator=(const lldb::SBAddressRangeList &rhs);
 
   uint32_t GetSize() const;
 
@@ -41,7 +42,7 @@ protected:
   const AddressRangeListImpl *operator->() const;
 
   const AddressRangeListImpl &operator*() const;
-  
+
 private:
   friend class SBProcess;
 
diff --git a/lldb/source/API/SBAddressRange.cpp 
b/lldb/source/API/SBAddressRange.cpp
index 8fce0efb3e..54622f40c7 100644
--- a/lldb/source/API/SBAddressRange.cpp
+++ b/lldb/source/API/SBAddressRange.cpp
@@ -7,10 +7,10 @@
 
//===----------------------------------------------------------------------===//
 
 #include "lldb/API/SBAddressRange.h"
+#include "Utils.h"
 #include "lldb/API/SBAddress.h"
 #include "lldb/Core/AddressRange.h"
 #include "lldb/Utility/Instrumentation.h"
-#include "Utils.h"
 #include <cstddef>
 #include <memory>
 
@@ -29,7 +29,7 @@ SBAddressRange::SBAddressRange(const SBAddressRange &rhs) {
 }
 
 SBAddressRange::SBAddressRange(lldb::addr_t file_addr, lldb::addr_t byte_size)
-  : m_opaque_up(std::make_unique<AddressRange>(file_addr, byte_size)) {
+    : m_opaque_up(std::make_unique<AddressRange>(file_addr, byte_size)) {
   LLDB_INSTRUMENT_VA(this, file_addr, byte_size);
 }
 
diff --git a/lldb/source/API/SBAddressRangeList.cpp 
b/lldb/source/API/SBAddressRangeList.cpp
index 6226c4659a..5841d9cfc5 100644
--- a/lldb/source/API/SBAddressRangeList.cpp
+++ b/lldb/source/API/SBAddressRangeList.cpp
@@ -8,10 +8,10 @@
 
//===----------------------------------------------------------------------===//
 
 #include "lldb/API/SBAddressRangeList.h"
+#include "Utils.h"
 #include "lldb/API/SBAddressRange.h"
 #include "lldb/Core/AddressRange.h"
 #include "lldb/Utility/Instrumentation.h"
-#include "Utils.h"
 
 using namespace lldb;
 using namespace lldb_private;
@@ -72,16 +72,15 @@ SBAddressRangeList::SBAddressRangeList()
   LLDB_INSTRUMENT_VA(this);
 }
 
-SBAddressRangeList::SBAddressRangeList(
-    const SBAddressRangeList &rhs)
+SBAddressRangeList::SBAddressRangeList(const SBAddressRangeList &rhs)
     : m_opaque_up(new AddressRangeListImpl(*rhs.m_opaque_up)) {
   LLDB_INSTRUMENT_VA(this, rhs);
 }
 
 SBAddressRangeList::~SBAddressRangeList() = default;
 
-const SBAddressRangeList &SBAddressRangeList::
-operator=(const SBAddressRangeList &rhs) {
+const SBAddressRangeList &
+SBAddressRangeList::operator=(const SBAddressRangeList &rhs) {
   LLDB_INSTRUMENT_VA(this, rhs);
 
   if (this != &rhs) {
@@ -96,8 +95,8 @@ uint32_t SBAddressRangeList::GetSize() const {
   return m_opaque_up->GetSize();
 }
 
-bool SBAddressRangeList::GetAddressRangeAtIndex(
-    uint64_t idx, SBAddressRange &addr_range) {
+bool SBAddressRangeList::GetAddressRangeAtIndex(uint64_t idx,
+                                                SBAddressRange &addr_range) {
   LLDB_INSTRUMENT_VA(this, idx, addr_range);
 
   return m_opaque_up->GetAddressRangeAtIndex(idx, addr_range.ref());
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp
index 4f91635737..74bd7eab08 100644
--- a/lldb/source/API/SBFunction.cpp
+++ b/lldb/source/API/SBFunction.cpp
@@ -162,7 +162,7 @@ SBAddress SBFunction::GetEndAddress() {
 
 lldb::SBAddressRange SBFunction::GetRange() {
   LLDB_INSTRUMENT_VA(this);
-  
+
   lldb::SBAddressRange range;
   if (m_opaque_ptr) {
     range.ref() = m_opaque_ptr->GetAddressRange();
diff --git a/lldb/test/API/python_api/address_range/main.cpp 
b/lldb/test/API/python_api/address_range/main.cpp
index cdd6db20bf..e8230f71e4 100644
--- a/lldb/test/API/python_api/address_range/main.cpp
+++ b/lldb/test/API/python_api/address_range/main.cpp
@@ -1,5 +1,3 @@
 #include <iostream>
 
-int main() {
-    std::cout << "Hello World!" << std::endl;    
-}
+int main() { std::cout << "Hello World!" << std::endl; }

``````````

</details>


https://github.com/llvm/llvm-project/pull/92014
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to