[ci] enable clang-tidy for ci builds
This commit is contained in:
parent
98daeb812e
commit
aa9a9564ac
@ -4,3 +4,40 @@ set (WITH_SERVER ON CACHE BOOL "qa default")
|
||||
set (WITH_SAMPLE ON CACHE BOOL "qa default")
|
||||
set (WITH_VERBOSE_WINPR_ASSERT OFF CACHE BOOL "qa default")
|
||||
set (BUILD_SHARED_LIBS OFF CACHE BOOL "qa default")
|
||||
|
||||
set (BUILD_WITH_CLANG_TIDY OFF CACHE BOOL "qa default")
|
||||
find_program(CLANG_EXE
|
||||
NAMES
|
||||
clang-20
|
||||
clang-19
|
||||
clang-18
|
||||
clang-17
|
||||
clang-16
|
||||
clang-15
|
||||
clang-14
|
||||
clang-13
|
||||
clang-12
|
||||
clang-11
|
||||
clang-10
|
||||
clang
|
||||
REQUIRED
|
||||
)
|
||||
set (CMAKE_C_COMPILER "${CLANG_EXE}" CACHE STRING "qa default")
|
||||
|
||||
find_program(CLANG_XX_EXE
|
||||
NAMES
|
||||
clang++-20
|
||||
clang++-19
|
||||
clang++-18
|
||||
clang++-17
|
||||
clang++-16
|
||||
clang++-15
|
||||
clang++-14
|
||||
clang++-13
|
||||
clang++-12
|
||||
clang++-11
|
||||
clang++-10
|
||||
clang++
|
||||
REQUIRED
|
||||
)
|
||||
set (CMAKE_CXX_COMPILER "${CLANG_XX_EXE}" CACHE STRING "qa default")
|
||||
|
@ -14,5 +14,40 @@ set (WITH_FFMPEG ON CACHE BOOL "qa default")
|
||||
set (WITH_SANITIZE_ADDRESS ON CACHE BOOL "qa default")
|
||||
set (CMAKE_C_FLAGS "-Weverything -Wno-exit-time-destructors -Wno-cast-align -Wno-documentation -Wno-documentation-unknown-command -Wno-padded -Wno-covered-switch-default -Wno-declaration-after-statement" CACHE STRING "qa default")
|
||||
set (CMAKE_CXX_FLAGS "-Weverything -Wno-exit-time-destructors -Wno-cast-align -Wno-documentation -Wno-documentation-unknown-command -Wno-padded -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-covered-switch-default -Wno-declaration-after-statement" CACHE STRING "qa default")
|
||||
set (CMAKE_C_COMPILER "/usr/bin/clang-10" CACHE STRING "qa default")
|
||||
set (CMAKE_CXX_COMPILER "/usr/bin/clang++-10" CACHE STRING "qa default")
|
||||
|
||||
set (BUILD_WITH_CLANG_TIDY ON CACHE BOOL "qa default")
|
||||
find_program(CLANG_EXE
|
||||
NAMES
|
||||
clang-20
|
||||
clang-19
|
||||
clang-18
|
||||
clang-17
|
||||
clang-16
|
||||
clang-15
|
||||
clang-14
|
||||
clang-13
|
||||
clang-12
|
||||
clang-11
|
||||
clang-10
|
||||
clang
|
||||
REQUIRED
|
||||
)
|
||||
set (CMAKE_C_COMPILER "${CLANG_EXE}" CACHE STRING "qa default")
|
||||
|
||||
find_program(CLANG_XX_EXE
|
||||
NAMES
|
||||
clang++-20
|
||||
clang++-19
|
||||
clang++-18
|
||||
clang++-17
|
||||
clang++-16
|
||||
clang++-15
|
||||
clang++-14
|
||||
clang++-13
|
||||
clang++-12
|
||||
clang++-11
|
||||
clang++-10
|
||||
clang++
|
||||
REQUIRED
|
||||
)
|
||||
set (CMAKE_CXX_COMPILER "${CLANG_XX_EXE}" CACHE STRING "qa default")
|
||||
|
Loading…
Reference in New Issue
Block a user