[Lldb-commits] [lldb] Ensure that the Synthetic children of a ValueObject are managed by their parents ClusterManager (PR #192561)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 16 15:48:11 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/packages/Python/lldbsuite/test/lldbtest.py lldb/test/API/commands/expression/issue_11588/Test11588.py lldb/test/API/functionalities/data-formatter/callback-matching/TestDataFormatterCallbackMatching.py lldb/test/API/functionalities/data-formatter/data-formatter-python-synth/ftsp.py lldb/test/API/functionalities/data-formatter/type-synth-wants-deref/provider.py lldb/test/API/python_api/formatters/synth.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
--- test/API/functionalities/data-formatter/data-formatter-python-synth/ftsp.py 2026-04-16 21:48:59.000000 +0000
+++ test/API/functionalities/data-formatter/data-formatter-python-synth/ftsp.py 2026-04-16 22:47:44.049271 +0000
@@ -19,13 +19,11 @@
if index == 0:
return self.x.Cast(self.char)
if index == 4:
data = lldb.SBData.CreateDataFromInt(self.count)
type = self.valobj.target.FindFirstType("char")
- return self.valobj.CreateValueFromData(
- str(index), data, type
- )
+ return self.valobj.CreateValueFromData(str(index), data, type)
return self.x.CreateChildAtOffset(str(index), index, self.char)
def update(self):
self.x = self.valobj.GetChildMemberWithName("x")
self.char = self.valobj.GetType().GetBasicType(lldb.eBasicTypeChar)
--- test/API/functionalities/data-formatter/type-synth-wants-deref/provider.py 2026-04-16 21:48:59.000000 +0000
+++ test/API/functionalities/data-formatter/type-synth-wants-deref/provider.py 2026-04-16 22:47:44.067261 +0000
@@ -1,6 +1,7 @@
import lldb
+
class WrapperSynthProvider:
def __init__(self, valobj, internal_dict):
self.valobj = valobj
self.sum_value = None
--- test/API/python_api/formatters/synth.py 2026-04-16 21:48:59.000000 +0000
+++ test/API/python_api/formatters/synth.py 2026-04-16 22:47:44.110914 +0000
@@ -12,10 +12,11 @@
child = None
if index == 0:
child = self.valobj.GetChildMemberWithName("A")
if index == 1:
import lldb
+
data = lldb.SBData.CreateDataFromInt(1)
type = self.valobj.target.FindFirstType("int")
child = self.valobj.CreateValueFromData("X", data, type)
return child
``````````
</details>
https://github.com/llvm/llvm-project/pull/192561
More information about the lldb-commits
mailing list