[Lldb-commits] [lldb] [lldb] Fix a regression in SBValue::GetObjectDescription() (PR #117242)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 21 13:21:05 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 29afbd5893fbf68a2b64321bee0c82233b8b852e...b01b2a158a3449904e210186b0cbfae3f51f6c7e lldb/test/API/commands/expression/diagnostics/TestExprDiagnostics.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestExprDiagnostics.py 2024-11-21 21:14:29.000000 +0000
+++ TestExprDiagnostics.py 2024-11-21 21:20:36.806667 +0000
@@ -192,16 +192,15 @@
self, "// Break here", self.main_source_spec
)
frame = thread.GetFrameAtIndex(0)
value = frame.EvaluateExpression('#error("I am error.")')
error = value.GetError()
- self.assertEqual(error.GetType(), lldb.eErrorTypeExpression);
- value = frame.FindVariable('f')
- self.assertTrue(value.IsValid());
+ self.assertEqual(error.GetType(), lldb.eErrorTypeExpression)
+ value = frame.FindVariable("f")
+ self.assertTrue(value.IsValid())
desc = value.GetObjectDescription()
- self.assertEqual(desc, None);
-
+ self.assertEqual(desc, None)
def test_command_expr_sbdata(self):
"""Test the structured diagnostics data"""
self.build()
``````````
</details>
https://github.com/llvm/llvm-project/pull/117242
More information about the lldb-commits
mailing list