[ci] enable clang-tidy for ci builds

This commit is contained in:
akallabeth 2024-01-23 14:57:26 +01:00 committed by Martin Fleisz
parent 98daeb812e
commit aa9a9564ac
2 changed files with 74 additions and 2 deletions

View File

@ -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")

View File

@ -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")