[tidy] Install mason clang-tidy if CLANG_TIDY is not set

Also added HeaderFilterRegex to .clang-tidy.
This commit is contained in:
Bruno de Oliveira Abinader
2016-06-14 11:55:00 +03:00
parent b9702ef41a
commit b00e6fc7e1
4 changed files with 4 additions and 2 deletions

View File

@@ -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"