-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
60 lines (60 loc) · 1.65 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
56
57
58
59
60
---
BasedOnStyle: WebKit
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AllowShortEnumsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterFunction: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
BeforeCatch: true
BreakBeforeBraces: Custom
BreakBeforeBinaryOperators: None
BreakInheritanceList: AfterComma
ColumnLimit: 120
ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
NamespaceIndentation: None
PenaltyBreakBeforeFirstCallParameter: 0
PenaltyReturnTypeOnItsOwnLine: 1000
PenaltyBreakAssignment: 10
SpaceBeforeCpp11BracedList: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpaceAfterTemplateKeyword: false
SpacesInLineCommentPrefix:
Minimum: 0
Maximum: -1
FixNamespaceComments: true
UseCRLF: false
IncludeCategories:
# Headers in <> without extension.
- Regex: '<[[:alnum:]\-_]+>'
Priority: 6
# Headers in <> from specific external libraries.
- Regex: '<(gtest|gmock|boost|gsl)\/'
Priority: 5
# Headers in <> with subdirectory.
- Regex: '<[[:alnum:]\-_]+\/'
Priority: 4
# Headers in <> with extension.
- Regex: '<[[:alnum:].\-_]+>'
Priority: 3
# Headers in "" with subdirectory.
- Regex: '"[[:alnum:]\-_]+\/'
Priority: 2
# Headers in "" with extension.
- Regex: '"[[:alnum:].\-_]+"'
Priority: 1
...