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/ObjectFile/Mach-O/ObjectFileMachO.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/ObjectFile/Mach-O/ObjectFileMachO.cpp 
b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
index deacff0ec..4c0561401 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
@@ -2844,9 +2844,9 @@ void ObjectFileMachO::ParseSymtab(Symtab &symtab) {
                                 type)) {
                           demangled_is_synthesized = true;
                         } else if (nlist.n_value != 0)
-                            symbol_section = section_info.GetSection(
-                                nlist.n_sect, nlist.n_value);
-                          type = eSymbolTypeData;
+                          symbol_section = section_info.GetSection(
+                              nlist.n_sect, nlist.n_value);
+                        type = eSymbolTypeData;
                         }
                         break;
 
@@ -3644,9 +3644,9 @@ void ObjectFileMachO::ParseSymtab(Symtab &symtab) {
                                            symbol_name_non_abi_mangled, type)) 
{
             demangled_is_synthesized = true;
           } else if (nlist.n_value != 0)
-              symbol_section =
-                  section_info.GetSection(nlist.n_sect, nlist.n_value);
-            type = eSymbolTypeData;
+            symbol_section =
+                section_info.GetSection(nlist.n_sect, nlist.n_value);
+          type = eSymbolTypeData;
           }
         } break;
 

``````````

</details>


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

Reply via email to