[Lldb-commits] [lldb] [lldb][test] Add basic API tests for DW_TAG_template_alias (PR #170804)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 4 22:43:34 PST 2025


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 origin/main HEAD --extensions cpp -- lldb/test/API/lang/cpp/template-alias/main.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/lldb/test/API/lang/cpp/template-alias/main.cpp b/lldb/test/API/lang/cpp/template-alias/main.cpp
index 2a2fefe08..af6c9792a 100644
--- a/lldb/test/API/lang/cpp/template-alias/main.cpp
+++ b/lldb/test/API/lang/cpp/template-alias/main.cpp
@@ -1,19 +1,16 @@
-template<typename T>
-using Foo = T;
+template <typename T> using Foo = T;
 
-template<typename T>
-using Bar = Foo<T>;
+template <typename T> using Bar = Foo<T>;
 
-template<typename T>
-struct Container {};
+template <typename T> struct Container {};
 
 int main() {
-    Foo<int> f1;
-    Foo<double> f2;
-    Bar<int> b1;
-    Bar<double> b2;
-    Bar<Foo<int>> bf1;
-    Bar<Foo<double>> bf2;
-    Container<Bar<Foo<int>>> cbf1;
-    return 0;
+  Foo<int> f1;
+  Foo<double> f2;
+  Bar<int> b1;
+  Bar<double> b2;
+  Bar<Foo<int>> bf1;
+  Bar<Foo<double>> bf2;
+  Container<Bar<Foo<int>>> cbf1;
+  return 0;
 }

``````````

</details>


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


More information about the lldb-commits mailing list