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-tools-extra/clang-tidy/add_new_check.py 
clang-tools-extra/clang-tidy/rename_check.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
--- rename_check.py     2026-11-19 21:20:52.000000 +0000
+++ rename_check.py     2026-11-19 21:52:47.190397 +0000
@@ -273,11 +273,13 @@
     ]
     header_guard_new = (new_module + "_" + new_check_name_camel).upper()
 
     old_module_path = os.path.join(clang_tidy_path, old_module)
     new_module_path = os.path.join(clang_tidy_path, new_module)
-    checkers_path = os.path.join(clang_tidy_path, "..", "test", "clang-tidy", 
"checkers")
+    checkers_path = os.path.join(
+        clang_tidy_path, "..", "test", "clang-tidy", "checkers"
+    )
     old_test_dir = os.path.join(checkers_path, old_module, old_name)
     new_test_dir = os.path.join(checkers_path, new_module, new_name)
     move_test_dir = old_test_dir != new_test_dir and 
os.path.isdir(old_test_dir)
     if move_test_dir and os.path.lexists(new_test_dir):
         sys.exit(f"Cannot move tests to {new_test_dir}: the path already 
exists.")

``````````

</details>


https://github.com/llvm/llvm-project/pull/244400
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to