[Lldb-commits] [lldb] [lldb] Add print-braces setting for ValueObject printing (PR #193812)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 23 10:59:08 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/functionalities/data-formatter/print-braces/TestPrintBraces.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
--- TestPrintBraces.py	2026-04-23 17:57:43.000000 +0000
+++ TestPrintBraces.py	2026-04-23 17:58:37.799964 +0000
@@ -12,9 +12,7 @@
 
     def test_no_braces(self):
         self.build()
         self.runCmd("settings set target.print-braces false")
         lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
-        self.expect(
-            "frame variable s", matching=False, substrs=["{", "}"]
-        )
+        self.expect("frame variable s", matching=False, substrs=["{", "}"])
         self.expect("frame variable s", substrs=["x = 1", "y = 2", "z = 3"])

``````````

</details>


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


More information about the lldb-commits mailing list