[libcxx-commits] [libcxx] [libc++] Re-enable Clang-tidy checks in the CI (PR #110026)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Nov 29 12:07:04 PST 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 820403c4e04db1f4adc8528bec33d393a5be3856...191a05b548ed149f355642216bbcfe331845593b libcxx/test/libcxx/clang_tidy.gen.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- clang_tidy.gen.py 2024-11-29 20:03:37.000000 +0000
+++ clang_tidy.gen.py 2024-11-29 20:06:35.079072 +0000
@@ -13,14 +13,19 @@
# block Lit from interpreting a RUN/XFAIL/etc inside the generation script
# END.
import sys
sys.path.append(sys.argv[1])
-from libcxx.header_information import lit_header_restrictions, lit_header_undeprecations, public_headers
+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 GCC compiler flags are not always compatible with clang-tidy.
@@ -35,6 +40,7 @@
// TODO: run clang-tidy with modules enabled once they are supported
// RUN: %{{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: %{{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/110026
More information about the libcxx-commits
mailing list