Switch to explicit find in modernize script

This commit is contained in:
Daniel J. Hofmann 2016-01-18 16:54:13 +01:00
parent 491b1d9c96
commit a877f8abf0

View File

@ -3,4 +3,17 @@
# Runs the Clang Modernizer in parallel on the code base. # Runs the Clang Modernizer 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' | xargs -I{} -P $(nproc) clang-modernize -p build -final-syntax-check -format -style=file -summary -for-compilers=clang-3.4,gcc-4.8 -include . -exclude third_party {} find src include unit_tests -type f -name '*.hpp' -o -name '*.cpp' \
| xargs \
-I{} \
-P $(nproc) \
clang-modernize \
-p build \
-final-syntax-check \
-format \
-style=file \
-summary \
-for-compilers=clang-3.4,gcc-4.8 \
-include . \
-exclude third_party \
{}