File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ get_thread_count () {
1313
1414if [ " $( uname) " == " Darwin" ]; then
1515 patch_file () { sed -i ' ' -E " $@ " ; }
16+ _DEFAULT_LLVM_LOCATION=" /opt/homebrew/opt/llvm@21"
1617else
1718 patch_file () { sed -i -E " $@ " ; }
19+ _DEFAULT_LLVM_LOCATION=" /usr/lib/llvm-21"
1820fi
1921
2022J=$( get_thread_count)
5557# export CLANG_TIDY_LLVM_INSTALL_DIR=/opt/homebrew/opt/llvm@21
5658
5759if [ -z " $CLANG_TIDY_LLVM_INSTALL_DIR " ]; then
58- echo " CLANG_TIDY_LLVM_INSTALL_DIR must point to an LLVM installation dir for this script."
59- exit
60+ if [ -d " ${_DEFAULT_LLVM_LOCATION} " ]; then
61+ CLANG_TIDY_LLVM_INSTALL_DIR=" ${_DEFAULT_LLVM_LOCATION} "
62+ else
63+ echo " CLANG_TIDY_LLVM_INSTALL_DIR must point to an LLVM installation dir for this script."
64+ exit
65+ fi
6066fi
6167
6268echo " CLANG_TIDY_LLVM_INSTALL_DIR = ${CLANG_TIDY_LLVM_INSTALL_DIR} "
6369
6470VERSION=$( " ${CLANG_TIDY_LLVM_INSTALL_DIR} /bin/clang-tidy" --version)
65- if [[ ${VERSION} =~ .* version\ 21.* ]]
66- then
71+ if [[ ${VERSION} =~ .* version\ 21.* ]]; then
6772 echo " clang-tidy version 21 found."
6873else
6974 echo " CLANG_TIDY_LLVM_INSTALL_DIR must point to an LLVM 21 install!"
You can’t perform that action at this time.
0 commit comments