kythe.io@v0.0.68-0.20240422202219-7225dbc01741/tools/clang_tidy/clang_tidy.sh (about) 1 #!/bin/bash 2 set -e 3 4 if [ -z "${CLANG_TIDY:=$(command -v clang-tidy)}" ]; then 5 echo "Unable to find clang-tidy" 1>&2 6 exit 1 7 fi 8 9 (cd "$(dirname "${BASH_SOURCE[0]}")"; bazel run //:refresh_compile_commands) 10 11 12 "$CLANG_TIDY" "$@"