[libcxx-commits] [libcxx] [libc++] Clang-tidy operator& hijacker. (PR #128366)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Mar 18 10:24:24 PDT 2025
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 168177a0bd009269bec4d752b8096c63c492af76...bc68ee10bf7f6109bb3a8fd850365eafbd4d29ac libcxx/test/libcxx/clang_tidy.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang_tidy.gen.py 2025-03-18 17:20:23.000000 +0000
+++ clang_tidy.gen.py 2025-03-18 17:23:45.968016 +0000
@@ -17,11 +17,12 @@
import sys
sys.path.append(sys.argv[1])
from libcxx.header_information import lit_header_restrictions, lit_header_undeprecations, public_headers
for header in public_headers:
- print(f"""\
+ print(
+ f"""\
//--- {header}.sh.cpp
// REQUIRES: has-clang-tidy
// The frozen headers should not be updated to the latest libc++ style, so don't test.
@@ -35,6 +36,7 @@
// TODO: run clang-tidy with modules enabled once they are supported
// RUN: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --config-file=%{{libcxx-dir}}/.clang-tidy --load=%{{test-tools-dir}}/clang_tidy_checks/libcxx-tidy.plugin -- -Wweak-vtables %{{compile_flags}} -fno-modules
#include <{header}>
-""")
+"""
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/128366
More information about the libcxx-commits
mailing list