[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Treat DW_TAG_template_alias like we do DW_TAG_typedef (PR #170135)

via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 1 23:06:12 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,h -- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp lldb/unittests/Symbol/TestClangASTImporter.cpp lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.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/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp b/lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
index 5d2d7ae6d..a1e593567 100644
--- a/lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
+++ b/lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
@@ -1998,9 +1998,11 @@ DWARF:
   EXPECT_EQ(type_sp->GetForwardCompilerType().GetTypeName(), "Foo<int>");
 }
 
-TEST_F(DWARFASTParserClangTests, TestTemplateAlias_InStruct_NoSimpleTemplateNames) {
-  // Tests that we correctly parse the DW_TAG_template_alias scoped inside a DW_TAG_structure_type
-  // *declaration* generated by -gno-simple-template-names.
+TEST_F(DWARFASTParserClangTests,
+       TestTemplateAlias_InStruct_NoSimpleTemplateNames) {
+  // Tests that we correctly parse the DW_TAG_template_alias scoped inside a
+  // DW_TAG_structure_type *declaration* generated by
+  // -gno-simple-template-names.
 
   const char *yamldata = R"(
 --- !ELF

``````````

</details>


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


More information about the lldb-commits mailing list