[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: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD lldb/test/API/python_api/find_symbol_contexts/TestFindSymbolContexts.py lldb/test/API/python_api/sblineentry/TestSBLineEntry.py
``````````
: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 darker here.
</summary>
``````````diff
--- find_symbol_contexts/TestFindSymbolContexts.py 2026-09-16 19:56:05.000000 +0000
+++ find_symbol_contexts/TestFindSymbolContexts.py 2026-09-16 19:59:56.592754 +0000
@@ -93,13 +93,11 @@
# Default SBLineSpec.
empty_spec = lldb.SBLineSpec()
self.assertFalse(empty_spec.IsValid())
self.assertEqual(target.FindSymbolContexts(empty_spec).GetSize(), 0)
- empty_result = target.FindSymbolContexts(
- lldb.SBLineSpec(lldb.SBFileSpec(), 1)
- )
+ empty_result = target.FindSymbolContexts(lldb.SBLineSpec(lldb.SBFileSpec(), 1))
self.assertEqual(empty_result.GetSize(), 0)
missing_line = lldb.SBLineSpec(lldb.SBFileSpec("main.cpp"))
missing_result = target.FindSymbolContexts(missing_line)
self.assertEqual(missing_result.GetSize(), 0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/223808
More information about the llvm-commits
mailing list