We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5d959 commit 121041fCopy full SHA for 121041f
clang_tidy/run_clang_tidy.sh
@@ -17,10 +17,6 @@ shift
17
touch $OUTPUT
18
truncate -s 0 $OUTPUT
19
20
-# if $CONFIG is provided by some external workspace, we need to
21
-# place it in the current directory
22
-test -e .clang-tidy || ln -s -f $CONFIG .clang-tidy
23
-
24
# Print output on failure only
25
logfile="$(mktemp)"
26
trap 'if (($?)); then cat "$logfile" 1>&2; fi; rm "$logfile"' EXIT
@@ -38,6 +34,6 @@ set -- \
38
34
"$@"
39
35
40
36
{
41
- "${CLANG_TIDY_BIN}" --quiet --verify-config \
42
- && "${CLANG_TIDY_BIN}" "$@"
37
+ "${CLANG_TIDY_BIN}" --config-file=$CONFIG --quiet --verify-config &&
+ "${CLANG_TIDY_BIN}" --config-file=$CONFIG "$@"
43
} >"$logfile" 2>&1
0 commit comments