Skip to content

Commit 54b62d7

Browse files
authored
[libc++][NFC] Wrap line endings for clang-tidy tests (#171688)
Otherwise, the lines are extremely long and basically impossible to read.
1 parent a3aaa1a commit 54b62d7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

libcxx/test/libcxx/clang_tidy.gen.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
{lit_header_undeprecations.get(header, '')}
2828
2929
// TODO: run clang-tidy with modules enabled once they are supported
30-
// 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
30+
// RUN: %{{clang-tidy}} %s --warnings-as-errors=* \\
31+
// RUN: -header-filter=.* \\
32+
// RUN: --config-file=%{{libcxx-dir}}/.clang-tidy \\
33+
// RUN: --load=%{{test-tools-dir}}/clang_tidy_checks/libcxx-tidy.plugin \\
34+
// RUN: -- -Wweak-vtables %{{compile_flags}} -fno-modules
3135
3236
#include <{header}>
3337
""")

libcxx/test/libcxx/clang_tidy.sh.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88

99
# REQUIRES: has-clang-tidy
1010

11-
# 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}/..
11+
# RUN: %{python} %{libcxx-dir}/../clang-tools-extra/clang-tidy/tool/run-clang-tidy.py \
12+
# RUN: -clang-tidy-binary %{clang-tidy} \
13+
# RUN: -warnings-as-errors "*" \
14+
# RUN: -source-filter=".*libcxx/src.*" \
15+
# RUN: -quiet -p %{bin-dir}/..

0 commit comments

Comments
 (0)