[libcxx-commits] [libcxx] [libc++][NFC] Wrap line endings for clang-tidy tests (PR #171688)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 10 13:20:20 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Louis Dionne (ldionne)
<details>
<summary>Changes</summary>
Otherwise, the lines are extremely long and basically impossible to read.
---
Full diff: https://github.com/llvm/llvm-project/pull/171688.diff
2 Files Affected:
- (modified) libcxx/test/libcxx/clang_tidy.gen.py (+5-1)
- (modified) libcxx/test/libcxx/clang_tidy.sh.py (+5-1)
``````````diff
diff --git a/libcxx/test/libcxx/clang_tidy.gen.py b/libcxx/test/libcxx/clang_tidy.gen.py
index 16c90c3ef7130..614df2e5992f0 100644
--- a/libcxx/test/libcxx/clang_tidy.gen.py
+++ b/libcxx/test/libcxx/clang_tidy.gen.py
@@ -27,7 +27,11 @@
{lit_header_undeprecations.get(header, '')}
// 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
+// RUN: %{{clang-tidy}} %s --warnings-as-errors=* \\
+// RUN: -header-filter=.* \\
+// RUN: --config-file=%{{libcxx-dir}}/.clang-tidy \\
+// RUN: --load=%{{test-tools-dir}}/clang_tidy_checks/libcxx-tidy.plugin \\
+// RUN: -- -Wweak-vtables %{{compile_flags}} -fno-modules
#include <{header}>
""")
diff --git a/libcxx/test/libcxx/clang_tidy.sh.py b/libcxx/test/libcxx/clang_tidy.sh.py
index 46f281f359209..630428564597d 100644
--- a/libcxx/test/libcxx/clang_tidy.sh.py
+++ b/libcxx/test/libcxx/clang_tidy.sh.py
@@ -8,4 +8,8 @@
# REQUIRES: has-clang-tidy
-# RUN: %{python} %{libcxx-dir}/../clang-tools-extra/clang-tidy/tool/run-clang-tidy.py -clang-tidy-binary %{clang-tidy} -warnings-as-errors "*" -source-filter=".*libcxx/src.*" -quiet -p %{bin-dir}/..
+# RUN: %{python} %{libcxx-dir}/../clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
+# RUN: -clang-tidy-binary %{clang-tidy} \
+# RUN: -warnings-as-errors "*" \
+# RUN: -source-filter=".*libcxx/src.*" \
+# RUN: -quiet -p %{bin-dir}/..
``````````
</details>
https://github.com/llvm/llvm-project/pull/171688
More information about the libcxx-commits
mailing list