commit 9c58f374dcc4ea758cb933a9bc409cc8a398dc6f
parent 8f23f3e512d0d0ea9570d3a424522215cc3300f9
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date: Sat, 8 Jun 2024 21:51:46 +0200
Update clang-format to fix dangling else
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.clang-format b/.clang-format
@@ -34,11 +34,11 @@ AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: false
-AllowShortBlocksOnASingleLine: false
+AllowShortBlocksOnASingleLine: Always
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortLambdasOnASingleLine: All
-AllowShortIfStatementsOnASingleLine: Always
+AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None