-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
45 lines (40 loc) · 1.2 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
---
BasedOnStyle: WebKit
BraceWrapping:
AfterControlStatement: MultiLine
IndentBraces: true
AlignAfterOpenBracket: AlwaysBreak
AllowShortFunctionsOnASingleLine: None
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
ColumnLimit: 90
AllowAllConstructorInitializersOnNextLine: true
AllowAllArgumentsOnNextLine: true
FixNamespaceComments: true
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^".+\.(h|hh|hpp|hxx)"$'
Priority: 1
- Regex: '^<.+\.(h|hh|hpp|hxx)>$'
Priority: 2
- Regex: '^<[^.]+>$'
Priority: 3
IncludeIsMainRegex: '(_unittest)?$'
Cpp11BracedListStyle: true
NamespaceIndentation: None
SpaceAfterTemplateKeyword: false
SpaceBeforeCpp11BracedList: false
PenaltyReturnTypeOnItsOwnLine: 999
SpaceBeforeCtorInitializerColon: true
ConstructorInitializerIndentWidth: 4
BreakBeforeInheritanceComma: false
BreakInheritanceList: AfterColon
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
IndentWidth: 2
ObjCBlockIndentWidth: 2
ContinuationIndentWidth: 2
AllowAllParametersOfDeclarationOnNextLine: false
...