forked from pettni/smooth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
71 lines (56 loc) · 1.53 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
70
71
Language: Cpp
Standard: c++20
UseTab: Never
IndentWidth: 2
ContinuationIndentWidth: 2
AlignAfterOpenBracket: AlwaysBreak
# AlignArrayOfStructures: None
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: true
BeforeElse: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeConceptDeclarations: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
EmptyLineBeforeAccessModifier: Always
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: "^<[a-z_]*>$" # system headers
Priority: 1
- Regex: "^<.*>" # third-party headers
Priority: 2
- Regex: '".*"' # local headers
Priority: 3
IndentCaseLabels: false
IndentRequires: true
InsertTrailingCommas: Wrapped
ColumnLimit: 120
SortUsingDeclarations: true
SortIncludes: true
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2
PointerAlignment: Middle