1- # please use clang-format version 8 or later
1+ # please use clang-format version 16 or later
22
3- Standard : Cpp11
3+ Standard : c++17
44AccessModifierOffset : -8
55AlignAfterOpenBracket : Align
66AlignConsecutiveAssignments : false
77AlignConsecutiveDeclarations : false
88AlignEscapedNewlines : Left
99AlignOperands : true
1010AlignTrailingComments : true
11- # AllowAllArgumentsOnNextLine: false # requires clang-format 9
12- # AllowAllConstructorInitializersOnNextLine: false # requires clang-format 9
11+ AllowAllArgumentsOnNextLine : false
12+ AllowAllConstructorInitializersOnNextLine : false
1313AllowAllParametersOfDeclarationOnNextLine : false
1414AllowShortBlocksOnASingleLine : false
1515AllowShortCaseLabelsOnASingleLine : false
1616AllowShortFunctionsOnASingleLine : Inline
1717AllowShortIfStatementsOnASingleLine : false
18- # AllowShortLambdasOnASingleLine: Inline # requires clang-format 9
18+ AllowShortLambdasOnASingleLine : Inline
1919AllowShortLoopsOnASingleLine : false
2020AlwaysBreakAfterDefinitionReturnType : None
2121AlwaysBreakAfterReturnType : None
@@ -44,19 +44,20 @@ BreakBeforeBraces: Custom
4444BreakBeforeTernaryOperators : true
4545BreakConstructorInitializers : BeforeColon
4646BreakStringLiterals : false # apparently unpredictable
47- ColumnLimit : 80
47+ ColumnLimit : 120
4848CompactNamespaces : false
4949ConstructorInitializerAllOnOneLineOrOnePerLine : true
5050ConstructorInitializerIndentWidth : 8
5151ContinuationIndentWidth : 8
5252Cpp11BracedListStyle : true
5353DerivePointerAlignment : false
5454DisableFormat : false
55- FixNamespaceComments : false
56- ForEachMacros :
55+ FixNamespaceComments : true
56+ ForEachMacros :
5757 - ' json_object_foreach'
5858 - ' json_object_foreach_safe'
5959 - ' json_array_foreach'
60+ - ' HASH_ITER'
6061IncludeBlocks : Preserve
6162IndentCaseLabels : false
6263IndentPPDirectives : None
@@ -65,7 +66,7 @@ IndentWrappedFunctionNames: false
6566KeepEmptyLinesAtTheStartOfBlocks : true
6667MaxEmptyLinesToKeep : 1
6768NamespaceIndentation : None
68- # ObjCBinPackProtocolList: Auto # requires clang-format 7
69+ ObjCBinPackProtocolList : Auto
6970ObjCBlockIndentWidth : 8
7071ObjCSpaceAfterProperty : true
7172ObjCSpaceBeforeProtocolList : true
@@ -83,25 +84,125 @@ ReflowComments: false
8384SortIncludes : false
8485SortUsingDeclarations : false
8586SpaceAfterCStyleCast : false
86- # SpaceAfterLogicalNot: false # requires clang-format 9
87+ SpaceAfterLogicalNot : false
8788SpaceAfterTemplateKeyword : false
8889SpaceBeforeAssignmentOperators : true
89- # SpaceBeforeCtorInitializerColon: true # requires clang-format 7
90- # SpaceBeforeInheritanceColon: true # requires clang-format 7
90+ SpaceBeforeCtorInitializerColon : true
91+ SpaceBeforeInheritanceColon : true
9192SpaceBeforeParens : ControlStatements
92- # SpaceBeforeRangeBasedForLoopColon: true # requires clang-format 7
93+ SpaceBeforeRangeBasedForLoopColon : true
9394SpaceInEmptyParentheses : false
9495SpacesBeforeTrailingComments : 1
9596SpacesInAngles : false
9697SpacesInCStyleCastParentheses : false
9798SpacesInContainerLiterals : false
9899SpacesInParentheses : false
99100SpacesInSquareBrackets : false
100- # StatementMacros: # requires clang-format 8
101- # - 'Q_OBJECT'
101+ StatementMacros :
102+ - ' Q_OBJECT'
102103TabWidth : 8
103- # TypenameMacros: # requires clang-format 9
104- # - 'DARRAY'
104+ TypenameMacros :
105+ - ' DARRAY'
105106UseTab : ForContinuationAndIndentation
106107---
107108Language : 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