Цели для PVS-Studio

This commit is contained in:
Andrei Astafev 2024-04-08 23:35:00 +03:00
parent 3b9e0373b5
commit e735546b2d

View File

@ -48,28 +48,40 @@ function(myxx)
get_target_property(__target_type ${__iter} TYPE)
if((NOT ${__target_type} STREQUAL "UTILITY") AND
(NOT ${__target_type} STREQUAL "INTERFACE_LIBRARY") AND
(NOT ${__iter} MATCHES ".*_shared$" ) AND
(NOT ${__iter} MATCHES ".*_static$" )
)
myxx_code_coverage(${__iter})
)
myxx_analyze_pvs_studio(${__iter})
if(MYXX_CMAKE_CLANG_TIDY_FIX)
myxx_analyze_clang_tidy(${__iter} FIX)
else()
myxx_analyze_clang_tidy(${__iter})
endif()
if(MYXX_CMAKE_CLANG_TIDY_NAMING_FIX)
myxx_analyze_clang_tidy_naming(${__iter} FIX)
else()
myxx_analyze_clang_tidy_naming(${__iter})
endif()
if(MYXX_CMAKE_CLANG_CHECK_FIX)
myxx_analyze_clang_check(${__iter} FIX)
else()
myxx_analyze_clang_check(${__iter})
endif()
if(MYXX_CMAKE_CLAZY_FIX)
myxx_analyze_clazy(${__iter} FIX)
else()
myxx_analyze_clazy(${__iter})
endif()
myxx_analyze_pvs_studio(${__iter})
myxx_add_sanitizers(${__iter})
if(NOT ${__target_type} STREQUAL "INTERFACE_LIBRARY")
myxx_code_coverage(${__iter})
myxx_add_sanitizers(${__iter})
endif()
endif()
endforeach()
endfunction(myxx)