Updated clang_format options

This commit is contained in:
asuessenbach
2022-03-09 11:20:05 +01:00
parent c3546368b7
commit 611365b986
11 changed files with 3433 additions and 1707 deletions

View File

@@ -47,8 +47,13 @@ if(CLANG_FORMAT_EXECUTABLE)
message(STATUS " Using .clang-format version 7." )
file(READ ".clang-format_7" clangFormat)
else ()
message(STATUS " Using .clang-format version 11." )
file(READ ".clang-format_11" clangFormat)
if ( clangFormatVersion VERSION_LESS 12.0.0)
message(STATUS " Using .clang-format version 11." )
file(READ ".clang-format_11" clangFormat)
else ()
message(STATUS " Using .clang-format version 12." )
file(READ ".clang-format_12" clangFormat)
endif ()
endif ()
file(WRITE ".clang-format" ${clangFormat})
endif()