summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-01-11 14:45:53 -0800
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-01-13 14:53:39 +0200
commita3e9c74dc6f28a25e508c4ce7e0e5424b9d646f4 (patch)
treef1407a752827355451e73565ae35d4f2abc8ce29 /scripts
parent00bacf59517668227412aa35041417372489394c (diff)
downloadqtlocation-mapboxgl-a3e9c74dc6f28a25e508c4ce7e0e5424b9d646f4.tar.gz
[build] Upgrade clang-tidy and clang-format
Version 3.8.0 was removed from mason.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clang-tools.sh4
-rwxr-xr-xscripts/tidy.sh17
2 files changed, 2 insertions, 19 deletions
diff --git a/scripts/clang-tools.sh b/scripts/clang-tools.sh
index b49aadf520..ae3a5fa0e7 100755
--- a/scripts/clang-tools.sh
+++ b/scripts/clang-tools.sh
@@ -5,8 +5,8 @@ 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}
-CLANG_FORMAT=${CLANG_FORMAT:-$(mason prefix clang-format 3.8.0)/bin/clang-format}
+CLANG_TIDY=${CLANG_TIDY:-$(mason prefix clang-tidy 3.9.1)/bin/clang-tidy}
+CLANG_FORMAT=${CLANG_FORMAT:-$(mason prefix clang-format 3.9.1)/bin/clang-format}
command -v ${CLANG_TIDY} >/dev/null 2>&1 || {
echo "Can't find ${CLANG_TIDY} in PATH."
diff --git a/scripts/tidy.sh b/scripts/tidy.sh
deleted file mode 100755
index 424c82c3cd..0000000000
--- a/scripts/tidy.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-set -o pipefail
-
-# Ensure mason is on the PATH
-export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
-
-BUILDTYPE=${BUILDTYPE:-Release}
-
-export CLANG_TIDY=clang-tidy-3.8
-
-mapbox_time "config" \
-make config
-
-mapbox_time "tidy" \
-make tidy