-
Notifications
You must be signed in to change notification settings - Fork 7
/
.clang-format
55 lines (46 loc) · 1.26 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
BasedOnStyle: Google
AccessModifierOffset: -4
IndentWidth: 4
ColumnLimit: 100
MaxEmptyLinesToKeep: 1
Standard: Cpp11
Cpp11BracedListStyle: true
BreakConstructorInitializersBeforeComma: true
BreakBeforeInheritanceComma: true
AlwaysBreakTemplateDeclarations: true
ConstructorInitializerAllOnOneLineOrOnePerLine: false
FixNamespaceComments: true
NamespaceIndentation: None
SpacesBeforeTrailingComments: 1
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortBlocksOnASingleLine: false
BinPackParameters: false
BinPackArguments: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
AlignAfterOpenBracket: AlwaysBreak
AlignTrailingComments: false
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<.*'
Priority: 1
- Regex: '.*'
Priority: 2
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyExcessCharacter: 6
DerivePointerAlignment: false
PointerAlignment: Left
IndentCaseLabels: false