osrm-backend/scripts/tidy.sh
2016-01-19 17:42:49 +01:00

15 lines
329 B
Bash
Executable File

#!/usr/bin/env bash
# Runs the Clang Tidy Tool in parallel on the code base.
# Requires a compilation database in the build directory.
find src include unit_tests -type f -name '*.hpp' -o -name '*.cpp' \
| xargs \
-I{} \
-P $(nproc) \
clang-tidy \
-p build \
-header-filter='.*' \
{}