[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Added a check for the specialization existence (PR #154123)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 7 03:45:31 PDT 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/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp lldb/unittests/SymbolFile/DWARF/DWARFASTParserClangTests.cpp
``````````
: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/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
index 1b0a36c67..77f2e5f24 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -1912,10 +1912,10 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
class_template_decl->AddSpecialization(class_specialization_decl,
InsertPos);
else {
- module_sp->ReportError(
- "SymbolFileDWARF({0:p}) - Specialization for "
- "clang::ClassTemplateDecl({1:p}) already exists.",
- static_cast<void *>(this), static_cast<void *>(class_template_decl));
+ module_sp->ReportError("SymbolFileDWARF({0:p}) - Specialization for "
+ "clang::ClassTemplateDecl({1:p}) already exists.",
+ static_cast<void *>(this),
+ static_cast<void *>(class_template_decl));
return TypeSP();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/154123
More information about the lldb-commits
mailing list