[Lldb-commits] [lldb] [lldb] Implement a formatter bytecode interpreter in C++ (PR #114333)

via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 9 16:22:31 PST 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 337936a83bc9ffaba67658245a8c9bef159584a3...4e7eb4780a82e0896e6e8daaff741d3e62051f0a lldb/test/API/functionalities/data-formatter/bytecode-summary/TestBytecodeSummary.py lldb/test/API/functionalities/data-formatter/embedded-summary/TestEmbeddedTypeSummary.py
``````````

</details>

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

``````````diff
--- bytecode-summary/TestBytecodeSummary.py	2024-12-10 00:18:15.000000 +0000
+++ bytecode-summary/TestBytecodeSummary.py	2024-12-10 00:22:01.970840 +0000
@@ -7,9 +7,11 @@
 class TestCase(TestBase):
     @skipUnlessDarwin
     def test(self):
         self.build()
         if self.TraceOn():
-            self.expect('log enable -v lldb formatters')
-        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.cpp"))
-        self.expect("v x", substrs=['(MyOptional<int>) x = None'])
-        self.expect("v y", substrs=['(MyOptional<int>) y = 42'])
+            self.expect("log enable -v lldb formatters")
+        lldbutil.run_to_source_breakpoint(
+            self, "break here", lldb.SBFileSpec("main.cpp")
+        )
+        self.expect("v x", substrs=["(MyOptional<int>) x = None"])
+        self.expect("v y", substrs=["(MyOptional<int>) y = 42"])

``````````

</details>


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


More information about the lldb-commits mailing list