diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-23 17:19:07 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-23 17:36:20 -0700 |
commit | 58cd5cae12ede01f8cc8d837ecb1870419e7967a (patch) | |
tree | d3dfe994d0e4969f2a3be4148d5a7870aecd24fe /scripts/clang-tidy.sh | |
parent | c6256de2e8471e8f93fcefada5ec4b073277c2da (diff) | |
download | qtlocation-mapboxgl-58cd5cae12ede01f8cc8d837ecb1870419e7967a.tar.gz |
[build] Avoid variable name coupling between main.mk and clang-tidy.sh
Diffstat (limited to 'scripts/clang-tidy.sh')
-rwxr-xr-x | scripts/clang-tidy.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh index ee3c1193ea..9420518747 100755 --- a/scripts/clang-tidy.sh +++ b/scripts/clang-tidy.sh @@ -3,6 +3,8 @@ set -e set -o pipefail +directory=$1 + export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason" command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || { @@ -13,7 +15,7 @@ command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || { exit 1 } -cd build/${PLATFORM}-${SUBPLATFORM}/${BUILDTYPE} +cd "${directory}" git ls-files '../../../src/mbgl/*.cpp' '../../../platform/*.cpp' '../../../test/*.cpp' | \ xargs -I{} -P ${JOBS} ${CLANG_TIDY:-clang-tidy} -header-filter='\/mbgl\/' {} |