[Lldb-commits] [lldb] [lldb][Formatters] Do not recursively dereference pointer type when creating formatter candicates list. (PR #124048)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 22 18:57:29 PST 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 dd860bcfb57df429c0a1ad2e2d869ff3b795bc4d...1948805894e006d84fbb78299574b3c7618959d8 lldb/test/API/functionalities/data-formatter/ptr_ref_typedef/TestPtrRef2Typedef.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestPtrRef2Typedef.py 2025-01-23 02:32:11.000000 +0000
+++ TestPtrRef2Typedef.py 2025-01-23 02:57:00.503348 +0000
@@ -53,11 +53,11 @@
# the match.
self.expect("frame variable y", substrs=["(Foo &", ") y = 0x", "IntLRef"])
self.expect("frame variable z", substrs=["(Foo &&", ") z = 0x", "IntRRef"])
# Test lldb doesn't dereference pointer more than once.
- # xp has type Foo**, so it can only uses summary for Foo* or int*, not
+ # xp has type Foo**, so it can only uses summary for Foo* or int*, not
# summary for Foo or int.
self.expect("frame variable xp", substrs=["(Foo **) xp = 0x", "IntPointer"])
self.runCmd('type summary delete "int *"')
self.runCmd('type summary add --cascade true -s "MyInt" "int"')
``````````
</details>
https://github.com/llvm/llvm-project/pull/124048
More information about the lldb-commits
mailing list