[Lldb-commits] [lldb] [lldb] Refactor away UB in SBValue::GetLoadAddress (PR #141799)
via lldb-commits
lldb-commits at lists.llvm.org
Wed May 28 09:37:12 PDT 2025
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 HEAD~1...HEAD lldb/test/API/python_api/value/TestValueAPI.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestValueAPI.py 2025-05-28 16:25:46.000000 +0000
+++ TestValueAPI.py 2025-05-28 16:36:39.846614 +0000
@@ -268,13 +268,15 @@
self.assertEqual(
frame0.FindVariable("another_fixed_int_ptr").GetValue(),
"0xaa",
)
a_null_int_ptr = frame0.FindVariable("a_null_int_ptr")
- self.assertEqual( a_null_int_ptr.GetValue(), "0x0")
+ self.assertEqual(a_null_int_ptr.GetValue(), "0x0")
# Check that dereferencing a null pointer produces reasonable results
# (does not crash).
- self.assertEqual(a_null_int_ptr.Dereference().GetError().GetCString(),
- "parent is NULL")
- self.assertEqual(a_null_int_ptr.Dereference().GetLoadAddress(),
- lldb.LLDB_INVALID_ADDRESS)
+ self.assertEqual(
+ a_null_int_ptr.Dereference().GetError().GetCString(), "parent is NULL"
+ )
+ self.assertEqual(
+ a_null_int_ptr.Dereference().GetLoadAddress(), lldb.LLDB_INVALID_ADDRESS
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/141799
More information about the lldb-commits
mailing list