[Lldb-commits] [lldb] [API] add GetSyntheticValue (PR #95959)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 20 17:27:13 PDT 2024


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 d8091522664248a4ba73d8d1e7fa6ac57bfcf67c...e0ed752849486f67d9fddbef3767a1756afd1ab2 lldb/test/API/python_api/formatters/TestFormattersSBAPI.py lldb/test/API/python_api/formatters/synth.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- synth.py	2024-06-21 00:23:31.000000 +0000
+++ synth.py	2024-06-21 00:26:49.436805 +0000
@@ -37,11 +37,13 @@
     sbvalue = sbvalue.GetSyntheticValue()
     # This tests that the SBValue.GetNonSyntheticValue() actually returns a
     # synthetic value. If it does, then sbvalue.GetChildMemberWithName("a")
     # in the following statement will call the 'get_child_index' method of the
     # synthetic child provider CCCSynthProvider below (which return the "b" field").
-    return "CCC object with leading synthetic value " + str(sbvalue.GetChildMemberWithName("a"))
+    return "CCC object with leading synthetic value " + str(
+        sbvalue.GetChildMemberWithName("a")
+    )
 
 
 class CCCSynthProvider(object):
     def __init__(self, sbvalue, internal_dict):
         self._sbvalue = sbvalue

``````````

</details>


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


More information about the lldb-commits mailing list