1
- # please use clang-format version 8 or later
1
+ # please use clang-format version 16 or later
2
2
3
- Standard : Cpp11
3
+ Standard : c++17
4
4
AccessModifierOffset : -8
5
5
AlignAfterOpenBracket : Align
6
6
AlignConsecutiveAssignments : false
7
7
AlignConsecutiveDeclarations : false
8
8
AlignEscapedNewlines : Left
9
9
AlignOperands : true
10
10
AlignTrailingComments : true
11
- # AllowAllArgumentsOnNextLine: false # requires clang-format 9
12
- # AllowAllConstructorInitializersOnNextLine: false # requires clang-format 9
11
+ AllowAllArgumentsOnNextLine : false
12
+ AllowAllConstructorInitializersOnNextLine : false
13
13
AllowAllParametersOfDeclarationOnNextLine : false
14
14
AllowShortBlocksOnASingleLine : false
15
15
AllowShortCaseLabelsOnASingleLine : false
16
16
AllowShortFunctionsOnASingleLine : Inline
17
17
AllowShortIfStatementsOnASingleLine : false
18
- # AllowShortLambdasOnASingleLine: Inline # requires clang-format 9
18
+ AllowShortLambdasOnASingleLine : Inline
19
19
AllowShortLoopsOnASingleLine : false
20
20
AlwaysBreakAfterDefinitionReturnType : None
21
21
AlwaysBreakAfterReturnType : None
@@ -53,10 +53,11 @@ Cpp11BracedListStyle: true
53
53
DerivePointerAlignment : false
54
54
DisableFormat : false
55
55
FixNamespaceComments : false
56
- ForEachMacros :
56
+ ForEachMacros :
57
57
- ' json_object_foreach'
58
58
- ' json_object_foreach_safe'
59
59
- ' json_array_foreach'
60
+ - ' HASH_ITER'
60
61
IncludeBlocks : Preserve
61
62
IndentCaseLabels : false
62
63
IndentPPDirectives : None
@@ -65,7 +66,7 @@ IndentWrappedFunctionNames: false
65
66
KeepEmptyLinesAtTheStartOfBlocks : true
66
67
MaxEmptyLinesToKeep : 1
67
68
NamespaceIndentation : All
68
- # ObjCBinPackProtocolList: Auto # requires clang-format 7
69
+ ObjCBinPackProtocolList : Auto
69
70
ObjCBlockIndentWidth : 8
70
71
ObjCSpaceAfterProperty : true
71
72
ObjCSpaceBeforeProtocolList : true
@@ -83,25 +84,125 @@ ReflowComments: false
83
84
SortIncludes : false
84
85
SortUsingDeclarations : false
85
86
SpaceAfterCStyleCast : false
86
- # SpaceAfterLogicalNot: false # requires clang-format 9
87
+ SpaceAfterLogicalNot : false
87
88
SpaceAfterTemplateKeyword : false
88
89
SpaceBeforeAssignmentOperators : true
89
- # SpaceBeforeCtorInitializerColon: true # requires clang-format 7
90
- # SpaceBeforeInheritanceColon: true # requires clang-format 7
90
+ SpaceBeforeCtorInitializerColon : true
91
+ SpaceBeforeInheritanceColon : true
91
92
SpaceBeforeParens : ControlStatements
92
- # SpaceBeforeRangeBasedForLoopColon: true # requires clang-format 7
93
+ SpaceBeforeRangeBasedForLoopColon : true
93
94
SpaceInEmptyParentheses : false
94
95
SpacesBeforeTrailingComments : 1
95
96
SpacesInAngles : false
96
97
SpacesInCStyleCastParentheses : false
97
98
SpacesInContainerLiterals : false
98
99
SpacesInParentheses : false
99
100
SpacesInSquareBrackets : false
100
- # StatementMacros: # requires clang-format 8
101
- # - 'Q_OBJECT'
101
+ StatementMacros :
102
+ - ' Q_OBJECT'
102
103
TabWidth : 8
103
- # TypenameMacros: # requires clang-format 9
104
- # - 'DARRAY'
104
+ TypenameMacros :
105
+ - ' DARRAY'
105
106
UseTab : ForContinuationAndIndentation
106
107
---
107
108
Language : ObjC
109
+ AccessModifierOffset : 2
110
+ AlignArrayOfStructures : Right
111
+ AlignConsecutiveAssignments : None
112
+ AlignConsecutiveBitFields : None
113
+ AlignConsecutiveDeclarations : None
114
+ AlignConsecutiveMacros :
115
+ Enabled : true
116
+ AcrossEmptyLines : false
117
+ AcrossComments : true
118
+ AllowShortBlocksOnASingleLine : Never
119
+ AllowShortEnumsOnASingleLine : false
120
+ AllowShortFunctionsOnASingleLine : Empty
121
+ AllowShortIfStatementsOnASingleLine : Never
122
+ AllowShortLambdasOnASingleLine : None
123
+ AttributeMacros : ['__unused', '__autoreleasing', '_Nonnull', '__bridge']
124
+ BitFieldColonSpacing : Both
125
+ # BreakBeforeBraces: Webkit
126
+ BreakBeforeBraces : Custom
127
+ BraceWrapping :
128
+ AfterCaseLabel : false
129
+ AfterClass : true
130
+ AfterControlStatement : Never
131
+ AfterEnum : false
132
+ AfterFunction : true
133
+ AfterNamespace : false
134
+ AfterObjCDeclaration : false
135
+ AfterStruct : false
136
+ AfterUnion : false
137
+ AfterExternBlock : false
138
+ BeforeCatch : false
139
+ BeforeElse : false
140
+ BeforeLambdaBody : false
141
+ BeforeWhile : false
142
+ IndentBraces : false
143
+ SplitEmptyFunction : false
144
+ SplitEmptyRecord : false
145
+ SplitEmptyNamespace : true
146
+ BreakAfterAttributes : Never
147
+ BreakArrays : false
148
+ BreakBeforeConceptDeclarations : Allowed
149
+ BreakBeforeInlineASMColon : OnlyMultiline
150
+ BreakConstructorInitializers : AfterColon
151
+ BreakInheritanceList : AfterComma
152
+ ColumnLimit : 120
153
+ ConstructorInitializerIndentWidth : 4
154
+ ContinuationIndentWidth : 4
155
+ EmptyLineAfterAccessModifier : Never
156
+ EmptyLineBeforeAccessModifier : LogicalBlock
157
+ ExperimentalAutoDetectBinPacking : false
158
+ FixNamespaceComments : true
159
+ IndentAccessModifiers : false
160
+ IndentCaseBlocks : false
161
+ IndentCaseLabels : true
162
+ IndentExternBlock : Indent
163
+ IndentGotoLabels : false
164
+ IndentRequiresClause : true
165
+ IndentWidth : 4
166
+ IndentWrappedFunctionNames : true
167
+ InsertBraces : false
168
+ InsertNewlineAtEOF : true
169
+ KeepEmptyLinesAtTheStartOfBlocks : false
170
+ LambdaBodyIndentation : Signature
171
+ NamespaceIndentation : All
172
+ ObjCBinPackProtocolList : Auto
173
+ ObjCBlockIndentWidth : 4
174
+ ObjCBreakBeforeNestedBlockParam : false
175
+ ObjCSpaceAfterProperty : true
176
+ ObjCSpaceBeforeProtocolList : true
177
+ PPIndentWidth : -1
178
+ PackConstructorInitializers : NextLine
179
+ QualifierAlignment : Leave
180
+ ReferenceAlignment : Right
181
+ RemoveSemicolon : false
182
+ RequiresClausePosition : WithPreceding
183
+ RequiresExpressionIndentation : OuterScope
184
+ SeparateDefinitionBlocks : Always
185
+ ShortNamespaceLines : 1
186
+ SortIncludes : false
187
+ # SortUsingDeclarations: LexicographicNumeric
188
+ SortUsingDeclarations : true
189
+ SpaceAfterCStyleCast : true
190
+ SpaceAfterLogicalNot : false
191
+ SpaceAroundPointerQualifiers : Default
192
+ SpaceBeforeCaseColon : false
193
+ SpaceBeforeCpp11BracedList : true
194
+ SpaceBeforeCtorInitializerColon : true
195
+ SpaceBeforeInheritanceColon : true
196
+ SpaceBeforeParens : ControlStatements
197
+ SpaceBeforeRangeBasedForLoopColon : true
198
+ SpaceBeforeSquareBrackets : false
199
+ SpaceInEmptyBlock : false
200
+ SpaceInEmptyParentheses : false
201
+ SpacesBeforeTrailingComments : 2
202
+ SpacesInConditionalStatement : false
203
+ SpacesInLineCommentPrefix :
204
+ Minimum : 1
205
+ Maximum : -1
206
+ Standard : c++17
207
+ TabWidth : 4
208
+ UseTab : Never
0 commit comments