Allow single line enums

Although clang-format doesn't seem to be following the rule.
This commit is contained in:
Rodrigo Arias 2023-04-20 10:53:11 +02:00
parent 7262133782
commit 3b51902713

View File

@ -7,6 +7,7 @@ BasedOnStyle: LLVM
AlignAfterOpenBracket: DontAlign AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: None AlignConsecutiveAssignments: None
AllowShortBlocksOnASingleLine: false AllowShortBlocksOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: true AlwaysBreakAfterDefinitionReturnType: true
@ -15,6 +16,7 @@ BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
BraceWrapping: BraceWrapping:
AfterControlStatement: false AfterControlStatement: false
AfterEnum: false
AfterFunction: true AfterFunction: true
AfterStruct: false AfterStruct: false
AfterUnion: false AfterUnion: false