2015-09-11 11:14:36 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-10-18 17:05:20 -04:00
|
|
|
set -o errexit
|
|
|
|
set -o pipefail
|
|
|
|
set -o nounset
|
|
|
|
|
2015-09-11 11:14:36 -04:00
|
|
|
# Runs the Clang Tidy Tool in parallel on the code base.
|
|
|
|
# Requires a compilation database in the build directory.
|
|
|
|
|
2016-01-19 08:28:09 -05:00
|
|
|
|
|
|
|
find src include unit_tests -type f -name '*.hpp' -o -name '*.cpp' \
|
|
|
|
| xargs \
|
|
|
|
-I{} \
|
|
|
|
-P $(nproc) \
|
|
|
|
clang-tidy \
|
|
|
|
-p build \
|
|
|
|
-header-filter='.*' \
|
|
|
|
{}
|