-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-format
69 lines (69 loc) · 1.93 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
61
62
63
64
65
66
67
68
69
# run on whole project with:
# find src/ test/ -name "*.hpp" -o -name "*.cpp" | xargs clang-format -i --style=file
---
Language: Cpp
BasedOnStyle: LLVM
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeInheritanceComma: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
ColumnLimit: 120
CommentPragmas: \/\/!
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
DeriveLineEnding: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<(sys/)?[a-z_]+(\.h)?>$'
Priority: 1
- Regex: '^<parallel_hashmap/'
Priority: 4
- Regex: '^<paw/'
Priority: 6
- Regex: '^<weaver/'
Priority: 10
- Regex: '^"[a-z_]+\.hpp"$'
Priority: 12
- Regex: '.*'
Priority: 100
IndentExternBlock: false
IndentGotoLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Middle
ReflowComments: true
Standard: c++17
TabWidth: 2