1
- # Source: https://github.com/arduino/tooling-project-assets/tree/main/other/clang-format-configuration
1
+ # Clang format version: 18.1.3
2
2
---
3
+ BasedOnStyle : LLVM
3
4
AccessModifierOffset : -2
4
- AlignAfterOpenBracket : Align
5
+ AlignAfterOpenBracket : BlockIndent
5
6
AlignArrayOfStructures : None
6
- AlignConsecutiveAssignments : None
7
- AlignConsecutiveBitFields : None
8
- AlignConsecutiveDeclarations : None
9
- AlignConsecutiveMacros : None
10
- AlignEscapedNewlines : DontAlign
7
+ AlignConsecutiveAssignments :
8
+ Enabled : false
9
+ AcrossEmptyLines : false
10
+ AcrossComments : false
11
+ AlignCompound : false
12
+ AlignFunctionPointers : false
13
+ PadOperators : true
14
+ AlignConsecutiveBitFields :
15
+ Enabled : true
16
+ AcrossEmptyLines : false
17
+ AcrossComments : false
18
+ AlignCompound : false
19
+ AlignFunctionPointers : false
20
+ PadOperators : false
21
+ AlignConsecutiveDeclarations :
22
+ Enabled : false
23
+ AcrossEmptyLines : false
24
+ AcrossComments : false
25
+ AlignCompound : false
26
+ AlignFunctionPointers : false
27
+ PadOperators : false
28
+ AlignConsecutiveMacros :
29
+ Enabled : true
30
+ AcrossEmptyLines : false
31
+ AcrossComments : false
32
+ AlignCompound : false
33
+ AlignFunctionPointers : false
34
+ PadOperators : false
35
+ AlignConsecutiveShortCaseStatements :
36
+ Enabled : true
37
+ AcrossEmptyLines : false
38
+ AcrossComments : false
39
+ AlignCaseColons : false
40
+ AlignEscapedNewlines : Left
11
41
AlignOperands : Align
12
- AlignTrailingComments : true
42
+ AlignTrailingComments :
43
+ Kind : Always
44
+ OverEmptyLines : 0
13
45
AllowAllArgumentsOnNextLine : true
14
- AllowAllConstructorInitializersOnNextLine : true
15
46
AllowAllParametersOfDeclarationOnNextLine : true
16
- AllowShortBlocksOnASingleLine : Always
47
+ AllowBreakBeforeNoexceptSpecifier : Never
48
+ AllowShortBlocksOnASingleLine : Empty
17
49
AllowShortCaseLabelsOnASingleLine : true
18
- AllowShortEnumsOnASingleLine : true
50
+ AllowShortCompoundRequirementOnASingleLine : true
51
+ AllowShortEnumsOnASingleLine : false
19
52
AllowShortFunctionsOnASingleLine : Empty
20
- AllowShortIfStatementsOnASingleLine : AllIfsAndElse
53
+ AllowShortIfStatementsOnASingleLine : Never
21
54
AllowShortLambdasOnASingleLine : Empty
22
55
AllowShortLoopsOnASingleLine : true
23
56
AlwaysBreakAfterDefinitionReturnType : None
24
57
AlwaysBreakAfterReturnType : None
25
58
AlwaysBreakBeforeMultilineStrings : false
26
- AlwaysBreakTemplateDeclarations : No
59
+ AlwaysBreakTemplateDeclarations : MultiLine
27
60
AttributeMacros :
28
61
- __capability
29
- BasedOnStyle : LLVM
30
62
BinPackArguments : true
31
63
BinPackParameters : true
32
64
BitFieldColonSpacing : Both
33
65
BraceWrapping :
34
- AfterCaseLabel : false
66
+ AfterCaseLabel : true
35
67
AfterClass : false
36
68
AfterControlStatement : Never
37
69
AfterEnum : false
@@ -46,33 +78,33 @@ BraceWrapping:
46
78
BeforeLambdaBody : false
47
79
BeforeWhile : false
48
80
IndentBraces : false
49
- SplitEmptyFunction : true
81
+ SplitEmptyFunction : false
50
82
SplitEmptyRecord : true
51
83
SplitEmptyNamespace : true
84
+ BreakAdjacentStringLiterals : true
85
+ BreakAfterAttributes : Always
52
86
BreakAfterJavaFieldAnnotations : false
87
+ BreakArrays : false
53
88
BreakBeforeBinaryOperators : NonAssignment
54
- BreakBeforeBraces : Attach
55
- BreakBeforeConceptDeclarations : false
56
- BreakBeforeInheritanceComma : false
89
+ BreakBeforeBraces : Custom
90
+ BreakBeforeConceptDeclarations : Always
91
+ BreakBeforeInlineASMColon : OnlyMultiline
57
92
BreakBeforeTernaryOperators : true
58
93
BreakConstructorInitializers : BeforeColon
59
- BreakConstructorInitializersBeforeComma : false
60
94
BreakInheritanceList : BeforeColon
61
- BreakStringLiterals : false
62
- ColumnLimit : 0
63
- CommentPragmas : ' '
95
+ BreakStringLiterals : true
96
+ ColumnLimit : 120
97
+ CommentPragmas : " "
64
98
CompactNamespaces : false
65
- ConstructorInitializerAllOnOneLineOrOnePerLine : false
66
99
ConstructorInitializerIndentWidth : 2
67
100
ContinuationIndentWidth : 2
68
- Cpp11BracedListStyle : false
69
- DeriveLineEnding : true
70
- DerivePointerAlignment : true
101
+ Cpp11BracedListStyle : true
102
+ DerivePointerAlignment : false
71
103
DisableFormat : false
72
- EmptyLineAfterAccessModifier : Leave
73
- EmptyLineBeforeAccessModifier : Leave
104
+ EmptyLineAfterAccessModifier : Never
105
+ EmptyLineBeforeAccessModifier : LogicalBlock
74
106
ExperimentalAutoDetectBinPacking : false
75
- FixNamespaceComments : false
107
+ FixNamespaceComments : true
76
108
ForEachMacros :
77
109
- foreach
78
110
- Q_FOREACH
@@ -81,38 +113,49 @@ IfMacros:
81
113
- KJ_IF_MAYBE
82
114
IncludeBlocks : Preserve
83
115
IncludeCategories :
84
- - Regex : ' ^"(llvm|llvm-c|clang|clang-c)/'
116
+ - Regex : ^"(llvm|llvm-c|clang|clang-c)/
85
117
Priority : 2
86
118
SortPriority : 0
87
119
CaseSensitive : false
88
- - Regex : ' ^(<|"(gtest|gmock|isl|json)/)'
120
+ - Regex : ^(<|"(gtest|gmock|isl|json)/)
89
121
Priority : 3
90
122
SortPriority : 0
91
123
CaseSensitive : false
92
- - Regex : ' .* '
124
+ - Regex : .*
93
125
Priority : 1
94
126
SortPriority : 0
95
127
CaseSensitive : false
96
- IncludeIsMainRegex : ' '
97
- IncludeIsMainSourceRegex : ' '
128
+ IncludeIsMainRegex : " "
129
+ IncludeIsMainSourceRegex : " "
98
130
IndentAccessModifiers : false
99
- IndentCaseBlocks : true
131
+ IndentCaseBlocks : false
100
132
IndentCaseLabels : true
101
- IndentExternBlock : Indent
133
+ IndentExternBlock : NoIndent
102
134
IndentGotoLabels : false
103
135
IndentPPDirectives : None
104
- IndentRequires : true
136
+ IndentRequiresClause : false
105
137
IndentWidth : 2
106
- IndentWrappedFunctionNames : false
138
+ IndentWrappedFunctionNames : true
139
+ InsertBraces : true
140
+ InsertNewlineAtEOF : true
107
141
InsertTrailingCommas : None
142
+ IntegerLiteralSeparator :
143
+ Binary : 0
144
+ BinaryMinDigits : 0
145
+ Decimal : 0
146
+ DecimalMinDigits : 0
147
+ Hex : 0
148
+ HexMinDigits : 0
108
149
JavaScriptQuotes : Leave
109
150
JavaScriptWrapImports : true
151
+ KeepEmptyLinesAtEOF : false
110
152
KeepEmptyLinesAtTheStartOfBlocks : true
111
153
LambdaBodyIndentation : Signature
112
154
Language : Cpp
113
- MacroBlockBegin : ' '
114
- MacroBlockEnd : ' '
115
- MaxEmptyLinesToKeep : 100000
155
+ LineEnding : LF
156
+ MacroBlockBegin : " "
157
+ MacroBlockEnd : " "
158
+ MaxEmptyLinesToKeep : 1
116
159
NamespaceIndentation : None
117
160
ObjCBinPackProtocolList : Auto
118
161
ObjCBlockIndentWidth : 2
@@ -121,26 +164,32 @@ ObjCSpaceAfterProperty: false
121
164
ObjCSpaceBeforeProtocolList : true
122
165
PPIndentWidth : -1
123
166
PackConstructorInitializers : BinPack
124
- PenaltyBreakAssignment : 1
125
- PenaltyBreakBeforeFirstCallParameter : 1
126
- PenaltyBreakComment : 1
127
- PenaltyBreakFirstLessLess : 1
128
- PenaltyBreakOpenParenthesis : 1
129
- PenaltyBreakString : 1
130
- PenaltyBreakTemplateDeclaration : 1
131
- PenaltyExcessCharacter : 1
132
- PenaltyIndentedWhitespace : 1
133
- PenaltyReturnTypeOnItsOwnLine : 1
167
+ PenaltyBreakAssignment : 2
168
+ PenaltyBreakBeforeFirstCallParameter : 19
169
+ PenaltyBreakComment : 300
170
+ PenaltyBreakFirstLessLess : 120
171
+ PenaltyBreakOpenParenthesis : 0
172
+ PenaltyBreakScopeResolution : 500
173
+ PenaltyBreakString : 1000
174
+ PenaltyBreakTemplateDeclaration : 10
175
+ PenaltyExcessCharacter : 1000000
176
+ PenaltyIndentedWhitespace : 0
177
+ PenaltyReturnTypeOnItsOwnLine : 60
134
178
PointerAlignment : Right
135
179
QualifierAlignment : Leave
136
180
ReferenceAlignment : Pointer
137
181
ReflowComments : false
138
182
RemoveBracesLLVM : false
183
+ RemoveParentheses : Leave
184
+ RemoveSemicolon : false
185
+ RequiresClausePosition : OwnLine
186
+ RequiresExpressionIndentation : OuterScope
139
187
SeparateDefinitionBlocks : Leave
140
- ShortNamespaceLines : 0
188
+ ShortNamespaceLines : 1
189
+ SkipMacroDefinitionBody : false
141
190
SortIncludes : Never
142
191
SortJavaStaticImport : Before
143
- SortUsingDeclarations : false
192
+ SortUsingDeclarations : LexicographicNumeric
144
193
SpaceAfterCStyleCast : false
145
194
SpaceAfterLogicalNot : false
146
195
SpaceAfterTemplateKeyword : false
@@ -150,28 +199,34 @@ SpaceBeforeCaseColon: false
150
199
SpaceBeforeCpp11BracedList : false
151
200
SpaceBeforeCtorInitializerColon : true
152
201
SpaceBeforeInheritanceColon : true
202
+ SpaceBeforeJsonColon : false
153
203
SpaceBeforeParens : ControlStatements
154
204
SpaceBeforeParensOptions :
155
205
AfterControlStatements : true
156
206
AfterForeachMacros : true
157
- AfterFunctionDefinitionName : false
158
207
AfterFunctionDeclarationName : false
208
+ AfterFunctionDefinitionName : false
159
209
AfterIfMacros : true
160
- AfterOverloadedOperator : false
210
+ AfterOverloadedOperator : true
211
+ AfterPlacementOperator : true
212
+ AfterRequiresInClause : false
213
+ AfterRequiresInExpression : false
161
214
BeforeNonEmptyParentheses : false
162
215
SpaceBeforeRangeBasedForLoopColon : true
163
216
SpaceBeforeSquareBrackets : false
164
217
SpaceInEmptyBlock : false
165
- SpaceInEmptyParentheses : false
166
218
SpacesBeforeTrailingComments : 2
167
- SpacesInAngles : Leave
168
- SpacesInCStyleCastParentheses : false
169
- SpacesInConditionalStatement : false
219
+ SpacesInAngles : Never
170
220
SpacesInContainerLiterals : false
171
221
SpacesInLineCommentPrefix :
172
- Minimum : 0
222
+ Minimum : 1
173
223
Maximum : -1
174
- SpacesInParentheses : false
224
+ SpacesInParens : Never
225
+ SpacesInParensOptions :
226
+ InConditionalStatements : false
227
+ InCStyleCasts : false
228
+ InEmptyParentheses : false
229
+ Other : false
175
230
SpacesInSquareBrackets : false
176
231
Standard : Auto
177
232
StatementAttributeLikeMacros :
@@ -180,11 +235,12 @@ StatementMacros:
180
235
- Q_UNUSED
181
236
- QT_REQUIRE_VERSION
182
237
TabWidth : 2
183
- UseCRLF : false
184
238
UseTab : Never
239
+ VerilogBreakBetweenInstancePorts : true
185
240
WhitespaceSensitiveMacros :
186
- - STRINGIZE
187
- - PP_STRINGIZE
188
241
- BOOST_PP_STRINGIZE
189
- - NS_SWIFT_NAME
190
242
- CF_SWIFT_NAME
243
+ - NS_SWIFT_NAME
244
+ - PP_STRINGIZE
245
+ - STRINGIZE
246
+ BracedInitializerIndentWidth : 2
0 commit comments