Fix clang format (#854)

Fix invocation of clang-format in CMakeLists and apply clang-format.
This commit is contained in:
Ian Taylor
2020-04-29 10:40:33 -04:00
committed by GitHub
parent 7083db28b3
commit 9f2781b527
16 changed files with 29 additions and 26 deletions

View File

@@ -156,6 +156,7 @@ endif()
if (YAML_CPP_CLANG_FORMAT_EXE)
add_custom_target(format
COMMAND clang-format --style=file -i $<TARGET_PROPERTY:yaml-cpp,SOURCES>
COMMAND_EXPAND_LISTS
COMMENT "Running clang-format"
VERBATIM)
endif()