mirror of
https://github.com/depp/syncfiles.git
synced 2024-12-22 17:30:30 +00:00
43cb03c572
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.
25 lines
566 B
YAML
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
|