Use and recommend clang-format-11, not clang-format-10
Also: - Fix the numbered list formatting in the README.md - Describe the -DVULKAN_HPP_RUN_GENERATOR=ON option Fixes: #1116
This commit is contained in:
@@ -43,12 +43,12 @@ if(CLANG_FORMAT_EXECUTABLE)
|
||||
else ()
|
||||
message(STATUS " Found clang-format version <" ${clangFormatVersion} ">.")
|
||||
add_definitions(-DCLANG_FORMAT_EXECUTABLE="${CLANG_FORMAT_EXECUTABLE}")
|
||||
if (clangFormatVersion VERSION_LESS 10.0.0)
|
||||
if (clangFormatVersion VERSION_LESS 11.0.0)
|
||||
message(STATUS " Using .clang-format version 7." )
|
||||
file(READ ".clang-format_7" clangFormat)
|
||||
else ()
|
||||
message(STATUS " Using .clang-format version 10." )
|
||||
file(READ ".clang-format_10" clangFormat)
|
||||
message(STATUS " Using .clang-format version 11." )
|
||||
file(READ ".clang-format_11" clangFormat)
|
||||
endif ()
|
||||
file(WRITE ".clang-format" ${clangFormat})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user