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 origin/main...HEAD
lldb/test/API/commands/frame/var-dil/expr/Casts/TestFrameVarDILCast.py
lldb/test/API/commands/frame/var-dil/basics/LocalVars/TestFrameVarDILLocalVars.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- expr/Casts/TestFrameVarDILCast.py 2025-12-21 16:34:27.000000 +0000
+++ expr/Casts/TestFrameVarDILCast.py 2025-12-21 16:36:29.590570 +0000
@@ -197,23 +197,27 @@
self.expect_var_path("(void *)0", type="void *",
value="0x0000000000000000")
self.expect(
"frame variable '(int)std_nullptr_t'",
error=True,
- substrs=["cast from pointer to smaller type 'int' loses
information"]
- )
-
- if Is32Bit:
- self.expect_var_path("(void*)std_nullptr_t", type="void *",
- value="0x00000000")
- self.expect_var_path("(char*)std_nullptr_t", type="char *",
- value="0x00000000")
- else:
- self.expect_var_path("(void*)std_nullptr_t", type="void *",
- value="0x0000000000000000")
- self.expect_var_path("(char*)std_nullptr_t", type="char *",
- value="0x0000000000000000")
+ substrs=["cast from pointer to smaller type 'int' loses
information"],
+ )
+
+ if Is32Bit:
+ self.expect_var_path(
+ "(void*)std_nullptr_t", type="void *", value="0x00000000"
+ )
+ self.expect_var_path(
+ "(char*)std_nullptr_t", type="char *", value="0x00000000"
+ )
+ else:
+ self.expect_var_path(
+ "(void*)std_nullptr_t", type="void *",
value="0x0000000000000000"
+ )
+ self.expect_var_path(
+ "(char*)std_nullptr_t", type="char *",
value="0x0000000000000000"
+ )
# TestCastArray
self.expect_var_path("(int*)arr_1d", type="int *")
self.expect_var_path("(char*)arr_1d", type="char *")
self.expect_var_path("((char*)arr_1d)[0]", type="char",
value="'\\x01'")
``````````
</details>
https://github.com/llvm/llvm-project/pull/170332
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits