syncfiles/.clang-format
Dietrich Epp 43cb03c572 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.
2022-03-23 01:24:16 -04:00

25 lines
566 B
YAML

---
BasedOnStyle: Google
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
DerivePointerAlignment: false
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^".*'
Priority: 1
- Regex: '^<.*\.h>'
Priority: 3
- Regex: '^<.*'
Priority: 2
IndentCaseLabels: false
IndentWidth: 4
PointerAlignment: Right
SpacesBeforeTrailingComments: 1
Standard: Cpp11
TabWidth: 4
UseTab: AlignWithSpaces
BreakBeforeBraces: Linux