Last active
November 13, 2024 15:39
-
-
Save kristopherjohnson/bcc4a336d68032c9a98922f85fd95102 to your computer and use it in GitHub Desktop.
bash/zsh alias for running clang-tidy from Homebrew llvm formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if type brew &>/dev/null; then | |
if brew list llvm &>/dev/null; then | |
alias clang-tidy="$(ls -1 $(brew --cellar llvm) | sort -V | tail -n 1 | xargs -I {} echo $(brew --cellar llvm)/{}/bin/clang-tidy)" | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment