mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
add launcher
This commit is contained in:
@@ -27,6 +27,18 @@ function(include_what_you_use target dirs)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(include_what_you_use_with_mappings target dirs mappings)
|
||||
if (CLANG AND ("${target}" IN_LIST KYTY_IWYU))
|
||||
find_program (CLANG_IWYU_EXE NAMES "include-what-you-use")
|
||||
if (CLANG_IWYU_EXE)
|
||||
foreach(map ${mappings})
|
||||
list(APPEND mapdirs ";-Xiwyu;--mapping_file=${map}")
|
||||
endforeach()
|
||||
set_target_properties(${target} PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${CLANG_IWYU_EXE};${mapdirs};-Xiwyu;--cxx17ns;-Qunused-arguments;-Werror")
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(clang_tidy_check target config headers dirs)
|
||||
if (CLANG AND ("${target}" IN_LIST KYTY_CLANG_TYDY) AND NOT MSVC)
|
||||
find_program (CLANG_TIDY_EXE NAMES "clang-tidy")
|
||||
|
||||
Reference in New Issue
Block a user