Switch to explicit find in tidy script
This commit is contained in:
parent
42942bb1e0
commit
5d743bb0a3
@ -3,4 +3,12 @@
|
|||||||
# Runs the Clang Tidy Tool in parallel on the code base.
|
# Runs the Clang Tidy Tool in parallel on the code base.
|
||||||
# Requires a compilation database in the build directory.
|
# 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='.*' \
|
||||||
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user