summaryrefslogtreecommitdiff
path: root/scripts/clang-tidy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clang-tidy.sh')
-rwxr-xr-xscripts/clang-tidy.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh
deleted file mode 100755
index 7665180cf7..0000000000
--- a/scripts/clang-tidy.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -o pipefail
-
-export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
-
-CLANG_TIDY=${CLANG_TIDY:-$(mason prefix clang-tidy 3.8.0)/bin/clang-tidy}
-
-command -v ${CLANG_TIDY} >/dev/null 2>&1 || {
- echo "Can't find ${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 $1
-
-function check_tidy() {
- echo "Checking $0..."
- OUTPUT=$(${CLANG_TIDY} -p=$PWD $0 2>/dev/null)
- if [[ -n $OUTPUT ]]; then
- echo "Caught clang-tidy warning/error:"
- echo -e "$OUTPUT"
- exit 1
- fi
-}
-
-export CLANG_TIDY
-export -f check_tidy
-
-echo "Running clang-tidy checks... (this might take a while)"
-git ls-files '../../../src/mbgl/*.cpp' '../../../platform/*.cpp' '../../../test/*.cpp' | \
- xargs -I{} -P ${JOBS} bash -c 'check_tidy' {}