Adjust clang-format settings

The main intent is to not allow enums to get condensed to a single line,
but this has the side effect of making clang-format stop attaching
braces to the start of the enum. I felt it made sense to use a different
brace style everywhere rather than live with just enums with braces on a
separate line.
This commit is contained in:
Dietrich Epp 2022-03-23 01:24:16 -04:00
parent 6ec3549cd7
commit 43cb03c572

View File

@ -4,6 +4,7 @@ AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Inline AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
DerivePointerAlignment: false DerivePointerAlignment: false
IncludeBlocks: Preserve IncludeBlocks: Preserve
IncludeCategories: IncludeCategories:
@ -20,3 +21,4 @@ SpacesBeforeTrailingComments: 1
Standard: Cpp11 Standard: Cpp11
TabWidth: 4 TabWidth: 4
UseTab: AlignWithSpaces UseTab: AlignWithSpaces
BreakBeforeBraces: Linux