1
1
---
2
- # Don't try to format any languages not described by this file
3
- DisableFormat : true
4
- BasedOnStyle : LLVM
2
+ Language : Cpp
5
3
AccessModifierOffset : -4
6
4
AlignAfterOpenBracket : Align
7
- AlignConsecutiveMacros : false
8
- AlignConsecutiveAssignments : false
9
- AlignConsecutiveDeclarations : false
5
+ AlignArrayOfStructures : None
6
+ AlignConsecutiveMacros : None
7
+ AlignConsecutiveAssignments : None
8
+ AlignConsecutiveBitFields : None
9
+ AlignConsecutiveDeclarations : None
10
10
AlignEscapedNewlines : Right
11
- AlignOperands : true
11
+ AlignOperands : Align
12
12
AlignTrailingComments : true
13
13
AllowAllArgumentsOnNextLine : true
14
- AllowAllConstructorInitializersOnNextLine : true
15
14
AllowAllParametersOfDeclarationOnNextLine : true
16
- AllowShortBlocksOnASingleLine : false
15
+ AllowShortEnumsOnASingleLine : true
16
+ AllowShortBlocksOnASingleLine : Never
17
17
AllowShortCaseLabelsOnASingleLine : false
18
18
AllowShortFunctionsOnASingleLine : Empty
19
19
AllowShortLambdasOnASingleLine : Empty
@@ -23,12 +23,14 @@ AlwaysBreakAfterDefinitionReturnType: None
23
23
AlwaysBreakAfterReturnType : None
24
24
AlwaysBreakBeforeMultilineStrings : false
25
25
AlwaysBreakTemplateDeclarations : Yes
26
+ AttributeMacros :
27
+ - __capability
26
28
BinPackArguments : true
27
29
BinPackParameters : true
28
30
BraceWrapping :
29
31
AfterCaseLabel : false
30
32
AfterClass : false
31
- AfterControlStatement : false
33
+ AfterControlStatement : Never
32
34
AfterEnum : false
33
35
AfterFunction : true
34
36
AfterNamespace : false
@@ -38,27 +40,39 @@ BraceWrapping:
38
40
AfterExternBlock : false
39
41
BeforeCatch : true
40
42
BeforeElse : true
43
+ BeforeLambdaBody : false
44
+ BeforeWhile : false
41
45
IndentBraces : false
42
46
SplitEmptyFunction : true
43
47
SplitEmptyRecord : true
44
48
SplitEmptyNamespace : true
45
49
BreakBeforeBinaryOperators : None
50
+ BreakBeforeConceptDeclarations : true
46
51
BreakBeforeBraces : Custom
47
52
BreakBeforeInheritanceComma : false
48
53
BreakInheritanceList : BeforeColon
49
54
BreakBeforeTernaryOperators : true
55
+ BreakConstructorInitializersBeforeComma : false
50
56
BreakConstructorInitializers : BeforeComma
51
57
BreakAfterJavaFieldAnnotations : false
52
58
BreakStringLiterals : true
53
59
ColumnLimit : 118
54
60
CommentPragmas : ' ^ IWYU pragma:'
61
+ QualifierAlignment : Leave
55
62
CompactNamespaces : false
56
- ConstructorInitializerAllOnOneLineOrOnePerLine : false
57
63
ConstructorInitializerIndentWidth : 4
58
64
ContinuationIndentWidth : 4
59
65
Cpp11BracedListStyle : true
66
+ DeriveLineEnding : true
60
67
DerivePointerAlignment : false
68
+ DisableFormat : false
69
+ EmptyLineAfterAccessModifier : Never
70
+ EmptyLineBeforeAccessModifier : LogicalBlock
61
71
ExperimentalAutoDetectBinPacking : false
72
+ PackConstructorInitializers : BinPack
73
+ BasedOnStyle : ' '
74
+ ConstructorInitializerAllOnOneLineOrOnePerLine : false
75
+ AllowAllConstructorInitializersOnNextLine : true
62
76
FixNamespaceComments : true
63
77
ForEachMacros :
64
78
- foreach
@@ -68,68 +82,114 @@ ForEachMacros:
68
82
- TEST_CASE
69
83
- DYNAMIC_SECTION
70
84
- BENCHMARK
85
+ IfMacros :
86
+ - KJ_IF_MAYBE
71
87
IncludeBlocks : Preserve
72
88
IncludeCategories :
73
89
- Regex : ' ^"(llvm|llvm-c|clang|clang-c)/'
74
90
Priority : 2
91
+ SortPriority : 0
92
+ CaseSensitive : false
75
93
- Regex : ' ^(<|"(gtest|isl|json)/)'
76
94
Priority : 3
95
+ SortPriority : 0
96
+ CaseSensitive : false
77
97
- Regex : ' .*'
78
98
Priority : 1
99
+ SortPriority : 0
100
+ CaseSensitive : false
79
101
IncludeIsMainRegex : ' (Test)?$'
102
+ IncludeIsMainSourceRegex : ' '
103
+ IndentAccessModifiers : false
80
104
IndentCaseLabels : true
105
+ IndentCaseBlocks : false
106
+ IndentGotoLabels : true
81
107
IndentPPDirectives : None
108
+ IndentExternBlock : AfterExternBlock
109
+ IndentRequires : false
82
110
IndentWidth : 4
83
111
IndentWrappedFunctionNames : false
112
+ InsertTrailingCommas : None
84
113
JavaScriptQuotes : Leave
85
114
JavaScriptWrapImports : true
86
115
KeepEmptyLinesAtTheStartOfBlocks : true
116
+ LambdaBodyIndentation : Signature
87
117
MacroBlockBegin : ' '
88
118
MacroBlockEnd : ' '
89
119
MaxEmptyLinesToKeep : 2
90
120
NamespaceIndentation : None
91
121
ObjCBinPackProtocolList : Auto
92
122
ObjCBlockIndentWidth : 4
123
+ ObjCBreakBeforeNestedBlockParam : true
93
124
ObjCSpaceAfterProperty : false
94
125
ObjCSpaceBeforeProtocolList : true
95
126
PenaltyBreakAssignment : 2
96
127
PenaltyBreakBeforeFirstCallParameter : 19
97
128
PenaltyBreakComment : 300
98
129
PenaltyBreakFirstLessLess : 120
130
+ PenaltyBreakOpenParenthesis : 0
99
131
PenaltyBreakString : 1000
100
132
PenaltyBreakTemplateDeclaration : 10
101
133
PenaltyExcessCharacter : 1000000
102
134
PenaltyReturnTypeOnItsOwnLine : 60
135
+ PenaltyIndentedWhitespace : 0
103
136
PointerAlignment : Left
137
+ PPIndentWidth : -1
138
+ ReferenceAlignment : Left
104
139
ReflowComments : true
105
- SortIncludes : false
106
- SortUsingDeclarations : true
140
+ RemoveBracesLLVM : false
141
+ SeparateDefinitionBlocks : Leave
142
+ ShortNamespaceLines : 1
143
+ SortIncludes : Never
144
+ SortJavaStaticImport : Before
145
+ SortUsingDeclarations : false
107
146
SpaceAfterCStyleCast : false
108
147
SpaceAfterLogicalNot : false
109
148
SpaceAfterTemplateKeyword : true
110
149
SpaceBeforeAssignmentOperators : true
150
+ SpaceBeforeCaseColon : false
111
151
SpaceBeforeCpp11BracedList : false
112
152
SpaceBeforeCtorInitializerColon : true
113
153
SpaceBeforeInheritanceColon : true
114
- SpaceBeforeParens : ControlStatementsExceptForEachMacros
154
+ SpaceBeforeParens : ControlStatementsExceptControlMacros
155
+ SpaceBeforeParensOptions :
156
+ AfterControlStatements : true
157
+ AfterForeachMacros : false
158
+ AfterFunctionDefinitionName : false
159
+ AfterFunctionDeclarationName : false
160
+ AfterIfMacros : false
161
+ AfterOverloadedOperator : false
162
+ BeforeNonEmptyParentheses : false
163
+ SpaceAroundPointerQualifiers : Default
115
164
SpaceBeforeRangeBasedForLoopColon : true
165
+ SpaceInEmptyBlock : false
116
166
SpaceInEmptyParentheses : false
117
167
SpacesBeforeTrailingComments : 1
118
- SpacesInAngles : false
168
+ SpacesInAngles : Never
169
+ SpacesInConditionalStatement : false
119
170
SpacesInContainerLiterals : true
120
171
SpacesInCStyleCastParentheses : false
172
+ SpacesInLineCommentPrefix :
173
+ Minimum : 1
174
+ Maximum : -1
121
175
SpacesInParentheses : false
122
176
SpacesInSquareBrackets : false
123
- Standard : Cpp11
177
+ SpaceBeforeSquareBrackets : false
178
+ BitFieldColonSpacing : Both
179
+ Standard : Latest
180
+ StatementAttributeLikeMacros :
181
+ - Q_EMIT
124
182
StatementMacros :
125
183
- Q_UNUSED
126
184
- QT_REQUIRE_VERSION
127
185
TabWidth : 4
186
+ UseCRLF : false
128
187
UseTab : Never
129
- ---
130
- Language : Cpp
131
- DisableFormat : false
132
- ---
133
- Language : ObjC
134
- DisableFormat : false
188
+ WhitespaceSensitiveMacros :
189
+ - STRINGIZE
190
+ - PP_STRINGIZE
191
+ - BOOST_PP_STRINGIZE
192
+ - NS_SWIFT_NAME
193
+ - CF_SWIFT_NAME
135
194
...
195
+
0 commit comments