[Lldb-commits] [lldb] [lldb-dap] Add an option to provide a format for stack frames (PR #71843)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 13 17:52:44 PST 2023


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 0e1a52f556a90cc7b7ce7666fc476c99cf7bfb02..9dab558339346e15149bb59da4dc2d58070dafa2 lldb/test/API/python_api/format/TestFormat.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py lldb/test/API/tools/lldb-dap/stackTrace/TestDAP_stackTrace.py
``````````

</details>

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

``````````diff
--- test/API/python_api/format/TestFormat.py	2023-11-14 01:50:00.000000 +0000
+++ test/API/python_api/format/TestFormat.py	2023-11-14 01:52:37.635813 +0000
@@ -13,11 +13,11 @@
         self.assertFalse(format)
 
         error = lldb.SBError()
         format = lldb.SBFormat("${bad}", error)
         self.assertIn("invalid top level item 'bad'", error.GetCString())
-        self.assertFalse(format) # We expect an invalid object back if we have an error
+        self.assertFalse(format)  # We expect an invalid object back if we have an error
         self.assertTrue(error.Fail())
 
         format = lldb.SBFormat("${frame.index}", error)
         self.assertIs(error.GetCString(), None)
         self.assertTrue(format)

``````````

</details>


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


More information about the lldb-commits mailing list