[Lldb-commits] [lldb] [lldb][Module] Only call LoadScriptingResourceInTarget via ModuleList (PR #190136)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 2 23:56:00 PDT 2026


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/Core/ModuleList.h lldb/source/Commands/CommandObjectTarget.cpp lldb/source/Core/Module.cpp lldb/source/Core/ModuleList.cpp lldb/source/Target/Target.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/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index 4712095c3..67ebe58cd 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -1342,7 +1342,7 @@ static bool LoadScriptingModule(const FileSpec &scripting_fspec,
   LoadScriptOptions options;
   return script_interpreter.LoadScriptingModule(
       scripting_stream.GetData(), options, error,
-      /*module_sp*/nullptr, /*extra_path*/{}, target.shared_from_this());
+      /*module_sp*/ nullptr, /*extra_path*/ {}, target.shared_from_this());
 }
 
 bool ModuleList::LoadScriptingResourceInTargetForModule(Module &module,

``````````

</details>


https://github.com/llvm/llvm-project/pull/190136


More information about the lldb-commits mailing list