Skip to content
Snippets Groups Projects
Commit f839d5ba authored by Florian Walch's avatar Florian Walch
Browse files

Add -fix for clang-tidy

parent a0c99191
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ function(add_tidy_target _target)
cmake_parse_arguments(ARG "" "" "FILES;DEPENDS" ${ARGN})
add_custom_target(tidy-${_target}
COMMAND ${CLANG_TIDY_PROG} -p=${CMAKE_BINARY_DIR} ${ARG_FILES}
COMMAND ${CLANG_TIDY_PROG} -fix -p=${CMAKE_BINARY_DIR} ${ARG_FILES}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/..
DEPENDS ${ARG_DEPENDS}
COMMENT "Running clang-tidy for ${_target}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment