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 h,cpp -- 
lldb/include/lldb/Symbol/Symbol.h 
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h 
lldb/source/Symbol/Symbol.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/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp 
b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index ad668f936..14092fc49 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -2691,8 +2691,7 @@ ObjectFileELF::ParseSymbols(Symtab *symtab, user_id_t 
start_id,
         symbol.st_size == 0 && symbol.getBinding() != STB_LOCAL &&
         symbol_section_sp) {
       dc_symbol.SetReExportedSymbolName(ConstString(symbol_bare));
-      dc_symbol.SetReExportedSymbolSharedLibrary(
-          filtees.GetFileSpecAtIndex(0));
+      
dc_symbol.SetReExportedSymbolSharedLibrary(filtees.GetFileSpecAtIndex(0));
     }
     symtab->AddSymbol(dc_symbol);
   }
diff --git a/lldb/source/Symbol/Symbol.cpp b/lldb/source/Symbol/Symbol.cpp
index 83c1d363c..f51f896db 100644
--- a/lldb/source/Symbol/Symbol.cpp
+++ b/lldb/source/Symbol/Symbol.cpp
@@ -511,8 +511,7 @@ Symbol *Symbol::ResolveReExportedSymbol(
   // search above so no library is searched twice.
   if (containing_module_sp) {
     if (ObjectFile *object_file = containing_module_sp->GetObjectFile()) {
-      FileSpecList reexported_libraries =
-          object_file->GetReExportedLibraries();
+      FileSpecList reexported_libraries = 
object_file->GetReExportedLibraries();
       const size_t count = reexported_libraries.GetSize();
       for (size_t idx = 0; idx < count; ++idx) {
         ModuleSpec reexported_module_spec;

``````````

</details>


https://github.com/llvm/llvm-project/pull/208905
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to