Switch to explicit find in tidy script

This commit is contained in:
Daniel J. Hofmann 2016-01-19 14:28:09 +01:00 committed by Patrick Niklaus
parent 42942bb1e0
commit 5d743bb0a3

View File

@ -3,4 +3,12 @@
# Runs the Clang Tidy Tool in parallel on the code base.
# Requires a compilation database in the build directory.
git ls-files '*.cpp' | grep -v third_party | xargs -I{} -P $(nproc) clang-tidy -p build -header-filter='.*' {}
find src include unit_tests -type f -name '*.hpp' -o -name '*.cpp' \
| xargs \
-I{} \
-P $(nproc) \
clang-tidy \
-p build \
-header-filter='.*' \
{}