[lldb] [clang] fixing issue #64441 (PR #74814)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 7 23:54:36 PST 2023


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 58bdef2be75263a9b6bf93faf3baccc76e31e082 c137cd0ba81f82dbca2feb01bb8d088e42f0c524 -- clang/test/Index/usrs.cpp lldb/test/API/lang/cpp/namespace/main.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/test/API/lang/cpp/namespace/main.cpp b/lldb/test/API/lang/cpp/namespace/main.cpp
index 28d5421e1d..8d45477516 100644
--- a/lldb/test/API/lang/cpp/namespace/main.cpp
+++ b/lldb/test/API/lang/cpp/namespace/main.cpp
@@ -34,7 +34,7 @@ namespace A {
         int myfunc (int a);
         int myfunc2(int a)
         {
-                return a + 2; //just changing tab not much
+          return a + 2; // just changing tab not much
         }
         float myfunc (float f)
         {
@@ -56,14 +56,14 @@ namespace Foo = A::B;   // namespace alias
 
 using Foo::myfunc;      // using declaration
 
-//removing namespace foo; for quality naming 
+// removing namespace foo; for quality naming
 
 namespace fo::A {
-    namespace foo::B {
-        using namespace Y;
-        int k;
-    }
-}
+namespace foo::B {
+using namespace Y;
+int k;
+} // namespace foo::B
+} // namespace fo::A
 
 namespace ns1 {
     int value = 100;
@@ -140,5 +140,5 @@ main (int argc, char const *argv[])
     ::B::Bar bb;
     A::B::Bar ab;
     return Foo::myfunc(12) + bb.x() + ab.y() + NS1::NS2::Foo{}.bar() +
-            NS2::Foo{}.bar();
+           NS2::Foo{}.bar();
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/74814


More information about the cfe-commits mailing list