[Lldb-commits] [lldb] [lldb][SymbolFileDWARF] CompleteType: Lookup type in the declaration … (PR #120569)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 19 04:46:56 PST 2024


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 3769fcb3e78eba5f3e34d1c2dfa994625edb005a 9aa49efdcde5887e8de6bcd6cfbb08c0a499e24b --extensions cpp,h -- lldb/test/API/lang/cpp/typedef-to-outer-fwd/lib.cpp lldb/test/API/lang/cpp/typedef-to-outer-fwd/lib.h lldb/test/API/lang/cpp/typedef-to-outer-fwd/main.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index 936a44865b..7e5841c890 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -1594,7 +1594,7 @@ bool SymbolFileDWARF::CompleteType(CompilerType &compiler_type) {
   if (!dwarf_ast)
     return false;
   Type *type = decl_die.GetDWARF()->GetDIEToType().lookup(decl_die.GetDIE());
-  assert (type);
+  assert(type);
 
   if (decl_die != def_die) {
     GetDIEToType()[def_die.GetDIE()] = type;

``````````

</details>


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


More information about the lldb-commits mailing list