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/tests/cindex/test_constexpr.py
clang/bindings/python/clang/cindex.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_constexpr.py 2026-03-27 10:59:40.000000 +0000
+++ tests/cindex/test_constexpr.py 2026-03-27 11:06:50.221119 +0000
@@ -1,7 +1,8 @@
import unittest
from .util import get_cursor, get_tu
+
class TestConstexpr(unittest.TestCase):
def test_is_constexpr(self):
source = """
constexpr int f1() {
@@ -20,11 +21,11 @@
constexpr int m3() const { return 6; }
int m4() const { return 7; }
};
"""
tu = get_tu(source, lang="cpp")
-
+
f1 = get_cursor(tu, "f1")
f2 = get_cursor(tu, "f2")
self.assertIsNotNone(f1)
self.assertTrue(f1.is_constexpr)
self.assertFalse(f2.is_constexpr)
@@ -32,11 +33,11 @@
v1 = get_cursor(tu, "v1")
v2 = get_cursor(tu, "v2")
self.assertIsNotNone(v1)
self.assertTrue(v1.is_constexpr)
self.assertFalse(v2.is_constexpr)
-
+
local_v1 = get_cursor(f1, "local_v1")
local_v2 = get_cursor(f1, "local_v2")
self.assertIsNotNone(local_v1)
self.assertTrue(local_v1.is_constexpr)
self.assertFalse(local_v2.is_constexpr)
@@ -44,11 +45,11 @@
S = get_cursor(tu, "S")
m1 = get_cursor(S, "m1")
m2 = get_cursor(S, "m2")
m3 = get_cursor(S, "m3")
m4 = get_cursor(S, "m4")
-
+
self.assertIsNotNone(m1)
self.assertTrue(m1.is_constexpr)
self.assertFalse(m2.is_constexpr)
self.assertTrue(m3.is_constexpr)
self.assertFalse(m4.is_constexpr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/188965
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits