diff --git a/build-scripts/clang-tidy.sh b/build-scripts/clang-tidy.sh index 413659d37cd6d..1e30f86a297ba 100755 --- a/build-scripts/clang-tidy.sh +++ b/build-scripts/clang-tidy.sh @@ -121,14 +121,16 @@ else fi fi +printf "Subset to analyze: %s\n" "$CATA_CLANG_TIDY_SUBSET" + # We might need to analyze only a subset of the files if they have been split # into multiple jobs for efficiency case "$CATA_CLANG_TIDY_SUBSET" in ( src ) - tidyable_cpp_files=$(printf '%s\n' "$tidyable_cpp_files" | grep '^src/') + tidyable_cpp_files=$(printf '%s\n' "$tidyable_cpp_files" | grep '/src/') ;; ( other ) - tidyable_cpp_files=$(printf '%s\n' "$tidyable_cpp_files" | grep -v '^src/') + tidyable_cpp_files=$(printf '%s\n' "$tidyable_cpp_files" | grep -v '/src/') ;; esac