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/Host/HostInfoBase.h 
lldb/include/lldb/Host/macosx/HostInfoMacOSX.h 
lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp 
lldb/source/Plugins/Platform/MacOSX/PlatformDarwinDevice.cpp 
lldb/source/Plugins/SymbolLocator/DebugSymbols/SymbolLocatorDebugSymbols.cpp 
lldb/unittests/ObjectFile/MachO/TestObjectFileMachO.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/unittests/ObjectFile/MachO/TestObjectFileMachO.cpp 
b/lldb/unittests/ObjectFile/MachO/TestObjectFileMachO.cpp
index a761b5598..8c7e0d6a4 100644
--- a/lldb/unittests/ObjectFile/MachO/TestObjectFileMachO.cpp
+++ b/lldb/unittests/ObjectFile/MachO/TestObjectFileMachO.cpp
@@ -41,8 +41,7 @@ TEST_F(ObjectFileMachOTest, ModuleFromSharedCacheInfo) {
 
   ModuleSpec mod_spec;
   mod_spec.GetFileSpec() = FileSpec("/usr/lib/libobjc.A.dylib");
-  SharedCacheImageInfo image_info =
-      HostInfo::GetSharedCacheImageInfo(mod_spec);
+  SharedCacheImageInfo image_info = 
HostInfo::GetSharedCacheImageInfo(mod_spec);
   EXPECT_TRUE(image_info.GetUUID());
   EXPECT_TRUE(image_info.GetExtractor());
 
@@ -90,9 +89,9 @@ TEST_F(ObjectFileMachOTest, ModuleFromSharedCacheInfo) {
 
 TEST_F(ObjectFileMachOTest, IndirectSymbolsInTheSharedCache) {
   ModuleSpec mod_spec;
-  mod_spec.GetFileSpec() = 
FileSpec("/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit");
-  SharedCacheImageInfo image_info = HostInfo::GetSharedCacheImageInfo(
-      mod_spec);
+  mod_spec.GetFileSpec() =
+      
FileSpec("/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit");
+  SharedCacheImageInfo image_info = 
HostInfo::GetSharedCacheImageInfo(mod_spec);
   ModuleSpec spec(FileSpec(), UUID(), image_info.GetExtractor());
   lldb::ModuleSP module = std::make_shared<Module>(spec);
 

``````````

</details>


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

Reply via email to