[clang-format] Set AllowShortCaseLabelsOnASingleLine=true

Allows "case value: stmt; break;" in one line if it's short enough.
This commit is contained in:
David Capello 2024-12-12 20:02:36 -03:00
parent d38565f64e
commit f19cbe8a37

View File

@ -60,7 +60,7 @@ AllowAllParametersOfDeclarationOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: Never AllowBreakBeforeNoexceptSpecifier: Never
AllowShortBlocksOnASingleLine: Never AllowShortBlocksOnASingleLine: Never
AllowShortCaseExpressionOnASingleLine: true AllowShortCaseExpressionOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: true
AllowShortCompoundRequirementOnASingleLine: true AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly AllowShortFunctionsOnASingleLine: InlineOnly