blob: 259427cb0e33e532001e087225657df63d0ea7c9 [file] [log] [blame]
Ebrahim Byagowi5110f3d2019-01-09 16:01:11 +03301# The following tries to match the current code style, is imperfect for now
2# but good for new codes be added
3
4IndentWidth: 2
5TabWidth: 8
6UseTab: Always
7SpaceBeforeParens: Always
8AllowShortLoopsOnASingleLine: true
9BreakBeforeBraces: Custom
10BraceWrapping:
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
22AlwaysBreakTemplateDeclarations: true
23AlignTrailingComments: true
24AlignEscapedNewlines: Left
25AllowShortBlocksOnASingleLine: true
26SpaceAfterCStyleCast: true
27AlwaysBreakAfterDefinitionReturnType: TopLevel
28BinPackParameters: false
29AllowShortFunctionsOnASingleLine: Inline
30AccessModifierOffset: 0
31AlignTrailingComments: true
32AllowShortIfStatementsOnASingleLine: true
33AlignAfterOpenBracket: Align
34AlignOperands: true
35AllowShortCaseLabelsOnASingleLine: true
36
37# We like to have this only for function parameters and structs fields, not always
38# AlignConsecutiveDeclarations: true