blob: d4aa39223268eec60e6c5f10da39e9211bdda60b [file] [log] [blame]
#!/bin/bash
set -e
if [ -z "${CLANG_TIDY:=$(command -v clang-tidy)}" ]; then
echo "Unable to find clang-tidy" 1>&2
exit 1
fi
"$(dirname "${BASH_SOURCE[0]}")/../cpp/generate_compilation_database.sh"
"$CLANG_TIDY" -p "$(bazel info execution_root)" "$@"