Files
MapLibreParticleLab/scripts/clang-tidy.sh
2015-12-03 12:06:51 +01:00

20 lines
572 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || {
echo "Can't find ${CLANG_TIDY:-clang-tidy} in PATH."
if [ -z ${CLANG_TIDY} ]; then
echo "Alternatively, you can set CLANG_TIDY to point to clang-tidy."
fi
exit 1
}
cd build/${HOST}-${HOST_VERSION}/${BUILDTYPE}
git ls-files '../../../src/mbgl/*.cpp' '../../../platform/*.cpp' '../../../test/*.cpp' | \
xargs -I{} -P ${JOBS} ${CLANG_TIDY:-clang-tidy} -header-filter='\/mbgl\/' {}