-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.clang-format
53 lines (44 loc) · 1.19 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
BasedOnStyle: WebKit
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: NonAssignment
FixNamespaceComments: true
SortIncludes: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '<[[:alnum:]._]+>'
Priority: 1
- Regex: '^(<|"(gtest|gmock|json|asio|network/uri|antlr))'
Priority: 2
- Regex: '.*'
Priority: 3
IndentCaseLabels: true
NamespaceIndentation: None
IndentPPDirectives: AfterHash
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 3
SpaceAfterTemplateKeyword: false
Standard: c++20
ColumnLimit: 120
BinPackArguments: false
BinPackParameters: false
SpaceInEmptyBlock: false
AlwaysBreakTemplateDeclarations: Yes
RequiresClausePosition: SingleLine