cmake: use clang-tidy with extra-arg '-std=c++20'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-24 10:31:16 +01:00
parent a3251a7c8b
commit 7d856dab8e
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -67,7 +67,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
if(TIDY)
message(STATUS "TIDY=ON, running clang-tidy")
set(CMAKE_CXX_CLANG_TIDY clang-tidy -p ${CMAKE_CURRENT_BINARY_DIR} --checks=-*,clang-diagnostic-*,bugprone-assert-side-effect,bugprone-inaccurate-erase,performance-move-const-arg --header-filter=.,-./lib --use-color=true)
set(CMAKE_CXX_CLANG_TIDY clang-tidy -p ${CMAKE_CURRENT_BINARY_DIR} --checks=-*,clang-diagnostic-*,bugprone-assert-side-effect,bugprone-inaccurate-erase,performance-move-const-arg --header-filter=.,-./lib --use-color=true -extra-arg=-std=c++20)
message(STATUS "CMAKE_CXX_CLANG_TIDY: ${CMAKE_CXX_CLANG_TIDY}")
endif()