Skip to content

Instantly share code, notes, and snippets.

View pinebright's full-sized avatar

Kosuke MATSUOKA pinebright

View GitHub Profile
@pinebright
pinebright / MACOS_CLANG_TIDY.md
Last active August 7, 2022 14:39 — forked from sleepdefic1t/MACOS_CLANG_TIDY.md
brew clang-tidy on macOS
brew install llvm
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format"
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy"

use cmake file

  find_program(CLANG_TIDY_BIN clang-tidy)
 find_program(RUN_CLANG_TIDY_BIN /usr/local/Cellar/llvm/10.0.0_3/share/clang/run-clang-tidy.py)