Fix clang-format binary selection

Also fix spaces to tabs
master
Loïc Blot 2017-04-06 10:01:09 +02:00
parent 4b15f76ed1
commit 48ce9c9b30
1 changed files with 38 additions and 34 deletions

View File

@ -1,7 +1,11 @@
#! /bin/bash
function perform_lint() {
echo "Performing LINT..."
if hash clang-format-3.9 2>/dev/null; then
CLANG_FORMAT=clang-format-3.9
else
CLANG_FORMAT=clang-format
fi
CLANG_FORMAT_WHITELIST="util/travis/clang-format-whitelist.txt"
if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then