[lldb] [llvm] [lldb][SBAPI] Add (SBTarget/SBModule)::FindSymbolContexts (PR #223808)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 13:00:32 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/API/SBLineSpec.h lldb/source/API/SBLineSpec.cpp lldb/test/API/python_api/find_symbol_contexts/inlined.h lldb/test/API/python_api/find_symbol_contexts/main.cpp lldb/unittests/API/SBLineSpecTest.cpp lldb/include/lldb/API/LLDB.h lldb/include/lldb/API/SBDefines.h lldb/include/lldb/API/SBFileSpec.h lldb/include/lldb/API/SBLineEntry.h lldb/include/lldb/API/SBModule.h lldb/include/lldb/API/SBTarget.h lldb/source/API/SBLineEntry.cpp lldb/source/API/SBModule.cpp lldb/source/API/SBTarget.cpp lldb/unittests/API/SBLineEntryTest.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/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index 027fd3672..1947024d3 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -291,8 +291,7 @@ SBSymbolContextList SBModule::FindCompileUnits(const SBFileSpec &sb_file_spec) {
return sb_sc_list;
}
-SBSymbolContextList
-SBModule::FindSymbolContexts(const SBLineSpec &line_spec) {
+SBSymbolContextList SBModule::FindSymbolContexts(const SBLineSpec &line_spec) {
LLDB_INSTRUMENT_VA(this, line_spec);
SBSymbolContextList sc_list;
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 09ea1c281..1d04c0bc2 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -1689,8 +1689,7 @@ SBSymbolContextList SBTarget::FindCompileUnits(const SBFileSpec &sb_file_spec) {
return sb_sc_list;
}
-SBSymbolContextList
-SBTarget::FindSymbolContexts(const SBLineSpec &line_spec) {
+SBSymbolContextList SBTarget::FindSymbolContexts(const SBLineSpec &line_spec) {
LLDB_INSTRUMENT_VA(this, line_spec);
SBSymbolContextList sc_list;
``````````
</details>
https://github.com/llvm/llvm-project/pull/223808
More information about the llvm-commits
mailing list