diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 11:55:00 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 12:20:08 +0300 |
commit | b00e6fc7e1ad56f2295aa819b9e7cb8abb2d5382 (patch) | |
tree | 9e62031500c7d61831cb0233507f5137425afae7 /scripts | |
parent | b9702ef41a4cfdd0ab3107cfe5cec16ba3a4c230 (diff) | |
download | qtlocation-mapboxgl-b00e6fc7e1ad56f2295aa819b9e7cb8abb2d5382.tar.gz |
[tidy] Install mason clang-tidy if CLANG_TIDY is not set
Also added HeaderFilterRegex to .clang-tidy.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clang-tidy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh index cd61a5c48e..ad86ed3f12 100755 --- a/scripts/clang-tidy.sh +++ b/scripts/clang-tidy.sh @@ -18,7 +18,7 @@ command -v ${CLANG_TIDY} >/dev/null 2>&1 || { cd $1 function check_tidy() { - OUTPUT=$(${CLANG_TIDY} $0 -p=. -header-filter='mbgl' 2>/dev/null) + OUTPUT=$(${CLANG_TIDY} -p=$PWD $0 2>/dev/null) if [[ -n $OUTPUT ]]; then echo "Error: A clang-tidy warning/error happened:" echo -e "$OUTPUT" |