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 840d0b7e03045c30b052dce8d0bb82f3fa0c5d6d 6b41e8ccaf7c3daf787cb7f7399ba815c5fe5b77 -- lldb/include/lldb/Symbol/Function.h lldb/include/lldb/Symbol/SymbolFile.h lldb/include/lldb/Symbol/Type.h lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h lldb/source/Symbol/Function.cpp lldb/source/Symbol/Type.cpp lldb/test/Shell/SymbolFile/DWARF/x86/find-basic-function.cpp lldb/tools/lldb-test/lldb-test.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp index b5bfa31a40a8..1f9524f8add9 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp @@ -407,7 +407,7 @@ std::vector<lldb_private::CompilerContext> DWARFDIE::GetDeclContext() const { push_ctx(CompilerContextKind::Function, GetPubname()); break; case DW_TAG_variable: -push_ctx(CompilerContextKind::Variable, GetPubname()); + push_ctx(CompilerContextKind::Variable, GetPubname()); break; case DW_TAG_typedef: push_ctx(CompilerContextKind::Typedef, GetName()); diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp index fa758bae5023..cfdbc18b6c5a 100644 --- a/lldb/tools/lldb-test/lldb-test.cpp +++ b/lldb/tools/lldb-test/lldb-test.cpp @@ -818,8 +818,6 @@ Expected<Error (*)(lldb_private::Module &)> opts::symbols::getAction() { "Specify search type (-find) to use search options."); return dumpModule; - - case FindType::Function: if (!File.empty() + (Line != 0) == 1) return make_string_error("Both file name and line number must be " `````````` </details> https://github.com/llvm/llvm-project/pull/69981 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits