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/Core/Module.h lldb/include/lldb/Target/Statistics.h
lldb/source/Core/Module.cpp
lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
lldb/source/Target/Statistics.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/include/lldb/Core/Module.h b/lldb/include/lldb/Core/Module.h
index bb0723466..ed5b2b262 100644
--- a/lldb/include/lldb/Core/Module.h
+++ b/lldb/include/lldb/Core/Module.h
@@ -164,8 +164,7 @@ public:
//
// Get a module spec for this module. If the process is specified valid
// the load address of the module can be filled in as well.
- lldb_private::ModuleSpec
- GetModuleSpec(const lldb::ProcessSP &process_sp);
+ lldb_private::ModuleSpec GetModuleSpec(const lldb::ProcessSP &process_sp);
/// Set the load address for all sections in a module to be the file address
/// plus \a slide.
diff --git
a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
index 5ccdd7606..40119792a 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
@@ -998,7 +998,7 @@ void DynamicLoaderPOSIXDYLD::ResolveExecutableModule(
ModuleSpec module_spec(process_info.GetExecutableFile(),
process_info.GetArchitecture());
// See if the process has UUID info for the executable. If this is a core
- // file we really want the UUID in the module spec so we don't load a
+ // file we really want the UUID in the module spec so we don't load a
// random executable with the same name and ignore the required UUID.
m_process->FindModuleUUID(module_spec);
if (module_sp && module_sp->MatchesModuleSpec(module_spec))
``````````
</details>
https://github.com/llvm/llvm-project/pull/206853
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits