|
1 | | -# Prefer a locally installed LLVM 17 run-clang-tidy (e.g. via brew install llvm@17) |
| 1 | +# Prefer a locally installed LLVM 19 run-clang-tidy (e.g. via brew install llvm@19) |
2 | 2 | # over the Docker-based wrapper, since native execution avoids SDK incompatibilities. |
3 | | -set(_LLVM17_BIN /opt/homebrew/opt/llvm@17/bin) |
4 | | -set(_LLVM17_TIDY ${_LLVM17_BIN}/run-clang-tidy) |
| 3 | +set(_LLVM19_BIN /opt/homebrew/opt/llvm@19/bin) |
| 4 | +set(_LLVM19_TIDY ${_LLVM19_BIN}/run-clang-tidy) |
5 | 5 | set(CLANG_TIDY_BINARY_OPT "") |
6 | | -if(EXISTS ${_LLVM17_TIDY}) |
7 | | - set(CLANG_TIDY ${_LLVM17_TIDY}) |
8 | | - set(CLANG_TIDY_BINARY_OPT -clang-tidy-binary ${_LLVM17_BIN}/clang-tidy) |
9 | | - message(STATUS "Using Homebrew LLVM 17 run-clang-tidy: ${CLANG_TIDY}") |
| 6 | +if(EXISTS ${_LLVM19_TIDY}) |
| 7 | + set(CLANG_TIDY ${_LLVM19_TIDY}) |
| 8 | + set(CLANG_TIDY_BINARY_OPT -clang-tidy-binary ${_LLVM19_BIN}/clang-tidy) |
| 9 | + message(STATUS "Using Homebrew LLVM 19 run-clang-tidy: ${CLANG_TIDY}") |
10 | 10 | else() |
11 | | - find_program(_RCT_VERSIONED run-clang-tidy-17) |
| 11 | + find_program(_RCT_VERSIONED run-clang-tidy-19) |
12 | 12 | if(NOT _RCT_VERSIONED STREQUAL _RCT_VERSIONED-NOTFOUND) |
13 | 13 | set(CLANG_TIDY ${_RCT_VERSIONED}) |
14 | | - find_program(_CT_VERSIONED clang-tidy-17) |
| 14 | + find_program(_CT_VERSIONED clang-tidy-19) |
15 | 15 | if(NOT _CT_VERSIONED STREQUAL _CT_VERSIONED-NOTFOUND) |
16 | 16 | set(CLANG_TIDY_BINARY_OPT -clang-tidy-binary ${_CT_VERSIONED}) |
17 | 17 | endif() |
|
37 | 37 | if(NOT CLANG_TIDY) |
38 | 38 | set(CLANG_TIDY ${CMAKE_CURRENT_LIST_DIR}/clang-tools/run-clang-tidy) |
39 | 39 | if(NOT EXISTS ${CLANG_TIDY}) |
40 | | - message(STATUS "Cannot find clang-tidy version 17, either set CLANG_TIDY or make it discoverable") |
| 40 | + message(STATUS "Cannot find clang-tidy version 19, either set CLANG_TIDY or make it discoverable") |
41 | 41 | return() |
42 | 42 | endif() |
43 | 43 | message(STATUS "Using Docker-based run-clang-tidy wrapper: ${CLANG_TIDY}") |
|
0 commit comments