2.0.11
This commit is contained in:
@ -14,7 +14,9 @@ find_program(CLANG_CHECK_EXE NAMES ${CLANG_CHECK_NAMES})
|
||||
unset(CLANG_CHECK_NAMES)
|
||||
|
||||
function(myxx_analyze_clang_check TARGET_NAME)
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT CLANG_CHECK_EXE)
|
||||
message(STATUS "MyxCMake: Clang Check analyzer is not found")
|
||||
|
@ -14,7 +14,9 @@ find_program(CLANG_TIDY_EXE NAMES ${CLANG_TIDY_NAMES})
|
||||
unset(CLANG_TIDY_NAMES)
|
||||
|
||||
function(myxx_analyze_clang_tidy TARGET_NAME)
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT CLANG_TIDY_EXE)
|
||||
message(STATUS "MyxxCMake: Clang Tidy analyzer is not found")
|
||||
@ -55,7 +57,9 @@ endfunction()
|
||||
|
||||
|
||||
function(myxx_analyze_clang_tidy_naming TARGET_NAME)
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT CLANG_TIDY_EXE)
|
||||
message(STATUS "MyxxCMake: Clang Tidy analyzer is not found")
|
||||
@ -82,10 +86,10 @@ function(myxx_analyze_clang_tidy_naming TARGET_NAME)
|
||||
|
||||
set(__cmd_args -extra-arg="-Wno-unknown-warning-option ${ARG_EXTRA_ARGS}")
|
||||
get_target_property(__sources ${TARGET_NAME} SOURCES)
|
||||
foreach(iter ${__sources})
|
||||
string(FIND ${iter} ${CMAKE_BINARY_DIR} pos)
|
||||
if(pos EQUAL -1)
|
||||
list(APPEND __filtered_sources ${iter})
|
||||
foreach(__iter ${__sources})
|
||||
string(FIND ${__iter} ${CMAKE_BINARY_DIR} __pos)
|
||||
if(__pos EQUAL -1)
|
||||
list(APPEND __filtered_sources ${__iter})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
@ -7,7 +7,9 @@ if(CLAZY_EXE AND CLANG_APPLY_REPLACEMENTS_EXE)
|
||||
endif()
|
||||
|
||||
function(myxx_analyze_clazy TARGET_NAME)
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT CLAZY_EXE)
|
||||
message(STATUS "MyxCMake: Clazy standalone analyzer is not found")
|
||||
@ -36,10 +38,10 @@ function(myxx_analyze_clazy TARGET_NAME)
|
||||
-extra-arg=-Wno-unknown-warning-option
|
||||
-export-fixes=clazy-fixes-file.yaml)
|
||||
get_target_property(__sources ${TARGET_NAME} SOURCES)
|
||||
foreach(iter ${__sources})
|
||||
string(FIND ${iter} ${CMAKE_BINARY_DIR} pos)
|
||||
if(pos EQUAL -1)
|
||||
list(APPEND __filtered_sources ${iter})
|
||||
foreach(__iter ${__sources})
|
||||
string(FIND ${__iter} ${CMAKE_BINARY_DIR} __pos)
|
||||
if(__pos EQUAL -1)
|
||||
list(APPEND __filtered_sources ${__iter})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
@ -10,7 +10,9 @@ function(myxx_analyze_pvs_studio TARGET_NAME)
|
||||
set(CMAKE_CURRENT_FUNCTION_LIST_DIR ${MYXX_CMAKE_LIB_PVS_DIR_BACKPORT})
|
||||
endif()
|
||||
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(NOT PVS_STUDIO_ANALYZER_EXE)
|
||||
message(STATUS "MyxxCMake: pvs-studio-analyzer not found.")
|
||||
@ -37,11 +39,11 @@ function(myxx_analyze_pvs_studio TARGET_NAME)
|
||||
set(ARG_MODE "GA:1,2,3;64:1,2;OP:1,2,3;CS:1,2;OWASP:1,2")
|
||||
endif()
|
||||
|
||||
get_target_property(sources ${TARGET_NAME} SOURCES)
|
||||
foreach(iter ${sources})
|
||||
string(FIND ${iter} ${CMAKE_BINARY_DIR} pos)
|
||||
if(pos EQUAL -1)
|
||||
list(APPEND srcs ${iter})
|
||||
get_target_property(__target_sources ${TARGET_NAME} SOURCES)
|
||||
foreach(__iter ${__target_sources})
|
||||
string(FIND ${__iter} ${CMAKE_BINARY_DIR} __pos)
|
||||
if(__pos EQUAL -1)
|
||||
list(APPEND __filtered_sources ${__iter})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
@ -9,7 +9,10 @@ function(myxx_code_coverage TARGET_NAME)
|
||||
if(NOT MYXX_CODE_COVERAGE)
|
||||
return()
|
||||
endif()
|
||||
myx_skip_external_target(${TARGET_NAME})
|
||||
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(options)
|
||||
set(oneValueArgs)
|
||||
|
@ -50,6 +50,10 @@ function(sanitizer_add_blacklist_file FILE)
|
||||
endfunction()
|
||||
|
||||
function(myxx_add_sanitizers ...)
|
||||
if(NOT ${PROJECT_BINARY_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
return()
|
||||
endif()
|
||||
|
||||
# If no sanitizer is enabled, return immediately.
|
||||
if(NOT
|
||||
(SANITIZE_ADDRESS
|
||||
|
Reference in New Issue
Block a user