[libcxx] [llvm] [libc++][CI] Reenables clang-tidy. (PR #90077)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 4 09:42:22 PDT 2024
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 754072e9a5c0785560953e237229d0fbdd504d04...aa593ba5f4f4cf09ada4ffdc6ea13862550450ef libcxx/test/libcxx/clang_tidy.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang_tidy.gen.py 2024-05-04 16:38:57.000000 +0000
+++ clang_tidy.gen.py 2024-05-04 16:41:59.378978 +0000
@@ -13,12 +13,15 @@
import sys
sys.path.append(sys.argv[1])
from libcxx.header_information import lit_header_restrictions, public_headers
for header in public_headers:
- BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script
- print(f"""\
+ BLOCKLIT = (
+ "" # block Lit from interpreting a RUN/XFAIL/etc inside the generation script
+ )
+ print(
+ f"""\
//--- {header}.sh.cpp
// REQUIRES{BLOCKLIT}: has-clang-tidy
// The GCC compiler flags are not always compatible with clang-tidy.
@@ -32,6 +35,7 @@
// TODO: run clang-tidy with modules enabled once they are supported
// RUN{BLOCKLIT}: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --checks='-*,libcpp-*' --load=%{{test-tools-dir}}/clang_tidy_checks/libcxx-tidy.plugin -- %{{compile_flags}} -fno-modules
// RUN{BLOCKLIT}: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --config-file=%{{libcxx-dir}}/.clang-tidy -- -Wweak-vtables %{{compile_flags}} -fno-modules
#include <{header}>
-""")
+"""
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/90077
More information about the llvm-commits
mailing list