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
clang/bindings/python/clang/cindex.py
clang/bindings/python/tests/cindex/test_cursor.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
--- tests/cindex/test_cursor.py 2026-02-25 14:31:39.000000 +0000
+++ tests/cindex/test_cursor.py 2026-02-25 14:45:45.173291 +0000
@@ -182,11 +182,13 @@
self.assertEqual(len(cursors), 3)
self.assertEqual(cursors[1].canonical, cursors[2].canonical)
def test_is_const_method(self):
"""Ensure Cursor.is_const_method works."""
- source = "class X { void foo() const; void bar(); void baz() const
volatile; };"
+ source = (
+ "class X { void foo() const; void bar(); void baz() const
volatile; };"
+ )
tu = get_tu(source, lang="cpp")
cls = get_cursor(tu, "X")
foo = get_cursor(tu, "foo")
bar = get_cursor(tu, "bar")
@@ -200,11 +202,13 @@
self.assertFalse(bar.is_const_method())
self.assertTrue(baz.is_const_method())
def test_is_volatile_method(self):
"""Ensure Cursor.is_volatile_method works."""
- source = "class X { void foo() volatile; void bar(); void baz() const
volatile; };"
+ source = (
+ "class X { void foo() volatile; void bar(); void baz() const
volatile; };"
+ )
tu = get_tu(source, lang="cpp")
foo = get_cursor(tu, "foo")
bar = get_cursor(tu, "bar")
baz = get_cursor(tu, "baz")
``````````
</details>
https://github.com/llvm/llvm-project/pull/183305
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits