Commit c02cd20352bb5aa421968176ec333775c64f5aeb

Sam Lantinga 2022-05-27T15:16:02

Revert "Disable formatting not supported by Visual Studio 2019" This reverts commit 26a75add31c219f0a9368b474b8a0691b937a465. It turns out Visual Studio doesn't support a lot of the formatting used here.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/.clang-format b/.clang-format
index c7eb0a3..01d4945 100644
--- a/.clang-format
+++ b/.clang-format
@@ -13,7 +13,7 @@ AllowShortEnumsOnASingleLine: true
 AllowShortBlocksOnASingleLine: Never
 AllowShortCaseLabelsOnASingleLine: false
 AllowShortFunctionsOnASingleLine: All
-#AllowShortIfStatementsOnASingleLine: AllIfsAndElse
+AllowShortIfStatementsOnASingleLine: AllIfsAndElse
 AllowShortLoopsOnASingleLine: false
 
 AlwaysBreakAfterDefinitionReturnType: All