| 1 |
# The following tries to match the current code style, is imperfect for now |
| 2 |
# but good for new codes be added |
| 3 |
|
| 4 |
IndentWidth: 2 |
| 5 |
TabWidth: 8 |
| 6 |
UseTab: Always |
| 7 |
SpaceBeforeParens: Always |
| 8 |
AllowShortLoopsOnASingleLine: true |
| 9 |
BreakBeforeBraces: Custom |
| 10 |
BraceWrapping: |
| 11 |
AfterEnum: true |
| 12 |
AfterStruct: true |
| 13 |
SplitEmptyFunction: false |
| 14 |
AfterClass: true |
| 15 |
AfterControlStatement: true |
| 16 |
AfterFunction: true |
| 17 |
AfterNamespace: false |
| 18 |
AfterUnion: true |
| 19 |
BeforeElse: true |
| 20 |
AlwaysBreakTemplateDeclarations: true |
| 21 |
AlignTrailingComments: true |
| 22 |
AlignEscapedNewlines: Left |
| 23 |
AllowShortBlocksOnASingleLine: true |
| 24 |
SpaceAfterCStyleCast: true |
| 25 |
AlwaysBreakAfterDefinitionReturnType: TopLevel |
| 26 |
BinPackParameters: false |
| 27 |
AllowShortFunctionsOnASingleLine: Inline |
| 28 |
AccessModifierOffset: 0 |
| 29 |
AllowShortIfStatementsOnASingleLine: true |
| 30 |
AlignAfterOpenBracket: Align |
| 31 |
AlignOperands: true |
| 32 |
AllowShortCaseLabelsOnASingleLine: true |
| 33 |
|
| 34 |
# We like to have this only for function parameters and structs fields, not always |
| 35 |
# AlignConsecutiveDeclarations: true |