Поиск Clang 10

This commit is contained in:
Andrei Astafev 2019-10-02 10:48:16 +03:00
parent 98e9784863
commit e26a4ecb96
2 changed files with 12 additions and 2 deletions

View File

@ -5,7 +5,12 @@ function(add_clang_analyze_check)
option(CLANG_ANALYZE_FIX "Perform fixes for Clang-Check" OFF)
find_program(CLANG_CHECK_EXE
NAMES clang-check-9 clang-check-8 clang-check-7 clang-check-6.0 clang-check)
NAMES clang-check-10
clang-check-9
clang-check-8
clang-check-7
clang-check-6.0
clang-check)
if(CLANG_CHECK_EXE)
if(CLANG_CHECK_FIX)
list(APPEND _args "-fix")

View File

@ -5,7 +5,12 @@ function(add_clang_tidy_check)
option(CLANG_TIDY_FIX "Perform fixes for Clang-Tidy" OFF)
find_program(CLANG_TIDY_EXE
NAMES clang-tidy-9 clang-tidy-8 clang-tidy-7 clang-tidy-6.0 clang-tidy)
NAMES clang-tidy-10
clang-tidy-9
clang-tidy-8
clang-tidy-7
clang-tidy-6.0
clang-tidy)
if(CLANG_TIDY_EXE)
if(CLANG_TIDY_FIX)
list(APPEND _args "-fix")