Don't reformat catch2 with make clang-format
.
This commit is contained in:
parent
b06f658ebf
commit
4dcfaff73a
|
@ -17,6 +17,9 @@ endforeach()
|
|||
|
||||
file(GLOB_RECURSE ClangFormat_SRCS ${ClangFormat_CXX_PATTERN})
|
||||
|
||||
# Remove catch2 from format sources
|
||||
list(REMOVE_ITEM ClangFormat_SRCS ${CMAKE_SOURCE_DIR}/tests/catch2/catch.hpp)
|
||||
|
||||
add_custom_target(clang-format
|
||||
COMMAND ${ClangFormat_BIN} -style=file -i
|
||||
${ClangFormat_SRCS})
|
||||
|
|
Loading…
Reference in New Issue
Block a user