syncfiles/.clang-format
Dietrich Epp dd96385d7c Style: Use trailing commas for enums
The trailing comma is supported in MPW and GCC. It fixes the formatting
issue with clang-format and makes cleaner diffs, so trailing commas have
been added to enums and clang-format has been run over the sources.
2022-04-10 03:51:59 -04:00

24 lines
530 B
YAML

---
BasedOnStyle: Google
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: 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