Skip to content

Commit

Permalink
FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway committed Apr 23, 2023
1 parent 8d8104c commit 68e7c57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-scripts/clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 68e7c57

Please sign in to comment.