[build] Update compdb & tidy for Linux & OS X

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-10 17:34:08 +03:00
parent 07da939a76
commit 83a3c18bdb
2 changed files with 22 additions and 3 deletions

View File

@@ -12,6 +12,11 @@ command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || {
if [ -z ${CLANG_TIDY} ]; then
echo "Alternatively, you can set CLANG_TIDY to point to clang-tidy."
fi
if [ `uname -s` = 'Linux' ]; then
echo "On Debian-based distros, you can install them via 'apt-get install clang-tidy'"
elif [ `uname -s` = 'Darwin' ]; then
echo "On OS X, you can install them via 'brew install llvm --with-clang --with-clang-extra-tools'"
fi
exit 1
}