-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy path.clang-format
58 lines (57 loc) · 1.55 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
---
Language: Cpp
BasedOnStyle: Mozilla
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Stroustrup
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
ColumnLimit: 120
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"[^"]+"$'
Priority: 2
SortPriority: 2
- Regex: '^<[0-9A-Za-z_/]+>$'
Priority: 3
SortPriority: 3
- Regex: '^<[Ww]indows.h>$'
Priority: 4
SortPriority: 4
- Regex: '^<boost/[^>]+\.(h|hh|hpp)>$'
Priority: 5
SortPriority: 5
- Regex: '^<(gtest|gmock)/[^>]+\.(h|hh|hpp)>$'
Priority: 6
SortPriority: 6
- Regex: '^<[^>]+\.(h|hh|hpp)>$'
Priority: 7
SortPriority: 7
IndentWidth: 4
NamespaceIndentation: All
ObjCBlockIndentWidth: 4
PointerAlignment: Middle
ReflowComments: false
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceBeforeCpp11BracedList: true
Standard: c++17
TabWidth: 4
UseTab: Never
...