diff --git a/CMLibCodeAnalysisClazy.cmake b/CMLibCodeAnalysisClazy.cmake index 77d1264..0166d69 100644 --- a/CMLibCodeAnalysisClazy.cmake +++ b/CMLibCodeAnalysisClazy.cmake @@ -1,3 +1,5 @@ +set(clazy_checks container-inside-loop,heap-allocated-small-trivial-type,inefficient-qlist,isempty-vs-count,qt-keywords,unneeded-cast) + function(add_clazy_check) list(GET ARGN 0 _target) set(_sources ${ARGN}) @@ -11,7 +13,7 @@ function(add_clazy_check) add_custom_target(clazy-check-${_target} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${CLAZY_EXE} - -checks=level2 + -checks=level2,${clazy_checks} -extra-arg="-Wno-unknown-warning-option" -p ${CMAKE_BINARY_DIR}