-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
98 lines (78 loc) · 2.18 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
IndentWidth: '2'
TabWidth: '2'
UseTab: Never
ColumnLimit: '80'
---
Language: Cpp
Standard: c++20
Cpp11BracedListStyle: false
AccessModifierOffset: '-2'
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignEscapedNewlines: Right
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BraceWrapping:
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
EmptyLineAfterAccessModifier: Always
EmptyLineBeforeAccessModifier: Always
IncludeBlocks: Preserve
IncludeIsMainRegex: (Test)?$
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
IndentExternBlock: NoIndent
IndentPPDirectives: AfterHash
IndentRequires: true
IndentCaseLabels: true
PenaltyBreakAssignment: '2'
PenaltyBreakBeforeFirstCallParameter: '19'
PenaltyBreakComment: '300'
PenaltyBreakFirstLessLess: '120'
PenaltyBreakString: '1000'
PenaltyBreakTemplateDeclaration: '10'
PenaltyExcessCharacter: '1000000'
PenaltyReturnTypeOnItsOwnLine: '60'
PointerAlignment: Left
ReferenceAlignment: Pointer
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SpaceBeforeCpp11BracedList: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpacesBeforeTrailingComments: '1'
SpaceAfterTemplateKeyword: false
SpacesInAngles: false
SpacesInParentheses: true
SpacesInSquareBrackets: true
# clang-format 15
#RequiresClausePosition: OwnLine
# clang-format 14
#QualifierOrder: [ 'inline', 'static', 'const', 'constexpr', 'volatile', 'type' ]
...