mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Clang-tidy requires assertions
This commit is contained in:
parent
61dee8c056
commit
a486bc8558
@ -16,6 +16,10 @@ if (ENABLE_CLANG_TIDY)
|
|||||||
|
|
||||||
set (USE_CLANG_TIDY ON)
|
set (USE_CLANG_TIDY ON)
|
||||||
|
|
||||||
|
# clang-tidy requires assertions to guide the analysis
|
||||||
|
# Note that NDEBUG is set implicitly by CMake for non-debug builds
|
||||||
|
set(COMPILER_FLAGS "${COMPILER_FLAGS} -UNDEBUG")
|
||||||
|
|
||||||
# The variable CMAKE_CXX_CLANG_TIDY will be set inside src and base directories with non third-party code.
|
# The variable CMAKE_CXX_CLANG_TIDY will be set inside src and base directories with non third-party code.
|
||||||
# set (CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH}")
|
# set (CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH}")
|
||||||
elseif (FAIL_ON_UNSUPPORTED_OPTIONS_COMBINATION)
|
elseif (FAIL_ON_UNSUPPORTED_OPTIONS_COMBINATION)
|
||||||
|
Loading…
Reference in New Issue
Block a user