Skip to content

Commit 121041f

Browse files
mattlangforderenon
authored andcommitted
Explicitly pass --config-file
1 parent 7a5d959 commit 121041f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

clang_tidy/run_clang_tidy.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ shift
1717
touch $OUTPUT
1818
truncate -s 0 $OUTPUT
1919

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-
2420
# Print output on failure only
2521
logfile="$(mktemp)"
2622
trap 'if (($?)); then cat "$logfile" 1>&2; fi; rm "$logfile"' EXIT
@@ -38,6 +34,6 @@ set -- \
3834
"$@"
3935

4036
{
41-
"${CLANG_TIDY_BIN}" --quiet --verify-config \
42-
&& "${CLANG_TIDY_BIN}" "$@"
37+
"${CLANG_TIDY_BIN}" --config-file=$CONFIG --quiet --verify-config &&
38+
"${CLANG_TIDY_BIN}" --config-file=$CONFIG "$@"
4339
} >"$logfile" 2>&1

0 commit comments

Comments
 (0)