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
``````````
: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
--- add_new_check.py 2026-07-19 06:24:43.000000 +0000
+++ add_new_check.py 2026-07-19 06:26:09.861170 +0000
@@ -619,17 +619,20 @@
module_path, "../../docs/clang-tidy/checks/", module,
f"{check_name}.md"
)
)
print(f"Creating {filename}...")
with open(filename, "w", encoding="utf8", newline="\n") as f:
- f.write("""```{title} clang-tidy - %(check_name_dashes)s
+ f.write(
+ """```{title} clang-tidy - %(check_name_dashes)s
```
# %(check_name_dashes)s
FIXME: Describe what patterns does the check detect and why. Give examples.
-""" % {"check_name_dashes": check_name_dashes})
+"""
+ % {"check_name_dashes": check_name_dashes}
+ )
def get_camel_name(check_name: str) -> str:
return "".join(map(lambda elem: elem.capitalize(), check_name.split("-")))
``````````
</details>
https://github.com/llvm/llvm-project/pull/210574
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits