Ebrahim Byagowi | 5110f3d | 2019-01-09 16:01:11 +0330 | [diff] [blame] | 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: false |
| 13 | SplitEmptyFunction: false |
| 14 | AfterClass: true |
| 15 | AfterControlStatement: true |
| 16 | AfterEnum: false |
| 17 | AfterFunction: true |
| 18 | AfterNamespace: false |
| 19 | AfterStruct: true |
| 20 | AfterUnion: true |
| 21 | BeforeElse: true |
| 22 | AlwaysBreakTemplateDeclarations: true |
| 23 | AlignTrailingComments: true |
| 24 | AlignEscapedNewlines: Left |
| 25 | AllowShortBlocksOnASingleLine: true |
| 26 | SpaceAfterCStyleCast: true |
| 27 | AlwaysBreakAfterDefinitionReturnType: TopLevel |
| 28 | BinPackParameters: false |
| 29 | AllowShortFunctionsOnASingleLine: Inline |
| 30 | AccessModifierOffset: 0 |
| 31 | AlignTrailingComments: true |
| 32 | AllowShortIfStatementsOnASingleLine: true |
| 33 | AlignAfterOpenBracket: Align |
| 34 | AlignOperands: true |
| 35 | AllowShortCaseLabelsOnASingleLine: true |
| 36 | |
| 37 | # We like to have this only for function parameters and structs fields, not always |
| 38 | # AlignConsecutiveDeclarations: true |