Parcourir la source

Disable formatting not supported by Visual Studio 2019

Sam Lantinga il y a 2 ans
Parent
commit
001d2e2f65
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      .clang-format

+ 5 - 2
.clang-format

@@ -13,7 +13,7 @@ AllowShortEnumsOnASingleLine: true
 AllowShortBlocksOnASingleLine: Never
 AllowShortCaseLabelsOnASingleLine: false
 AllowShortFunctionsOnASingleLine: All
-AllowShortIfStatementsOnASingleLine: AllIfsAndElse
+AllowShortIfStatementsOnASingleLine: Never
 AllowShortLoopsOnASingleLine: false
 
 AlwaysBreakAfterDefinitionReturnType: All
@@ -45,7 +45,10 @@ Cpp11BracedListStyle: false
 
 # Never format includes
 IncludeBlocks: Preserve
-SortIncludes: Never
+# clang-format version 4.0 through 12.0:
+#SortIncludes: false
+# clang-format version 13.0+:
+#SortIncludes: Never
 
 # No length limit, in case it breaks macros, you can
 # disable it with /* clang-format off/on */ comments