1
1
# Commented out parameters are those with the same value as base LLVM style.
2
2
# We can uncomment them if we want to change their value, or enforce the
3
- # chosen value in case the base style changes (last sync: Clang 14.0).
4
- ---
5
- # ## General config, applies to all languages ###
6
- BasedOnStyle : LLVM
3
+ # chosen value in case the base style changes (last sync: Clang 17.0.6).
4
+ BasedOnStyle : LLVM
7
5
AccessModifierOffset : -4
8
6
AlignAfterOpenBracket : DontAlign
9
7
# AlignArrayOfStructures: None
10
- # AlignConsecutiveMacros: None
11
- # AlignConsecutiveAssignments: None
12
- # AlignConsecutiveBitFields: None
13
- # AlignConsecutiveDeclarations: None
8
+ # AlignConsecutiveAssignments:
9
+ # Enabled: false
10
+ # AcrossEmptyLines: false
11
+ # AcrossComments: false
12
+ # AlignCompound: false
13
+ # PadOperators: true
14
+ # AlignConsecutiveBitFields:
15
+ # Enabled: false
16
+ # AcrossEmptyLines: false
17
+ # AcrossComments: false
18
+ # AlignCompound: false
19
+ # PadOperators: false
20
+ # AlignConsecutiveDeclarations:
21
+ # Enabled: false
22
+ # AcrossEmptyLines: false
23
+ # AcrossComments: false
24
+ # AlignCompound: false
25
+ # PadOperators: false
26
+ # AlignConsecutiveMacros:
27
+ # Enabled: false
28
+ # AcrossEmptyLines: false
29
+ # AcrossComments: false
30
+ # AlignCompound: false
31
+ # PadOperators: false
32
+ # AlignConsecutiveShortCaseStatements:
33
+ # Enabled: false
34
+ # AcrossEmptyLines: false
35
+ # AcrossComments: false
36
+ # AlignCaseColons: false
14
37
# AlignEscapedNewlines: Right
15
- AlignOperands : DontAlign
16
- AlignTrailingComments : false
38
+ AlignOperands : DontAlign
39
+ AlignTrailingComments :
40
+ Kind : Never
41
+ OverEmptyLines : 0
17
42
# AllowAllArgumentsOnNextLine: true
18
43
AllowAllParametersOfDeclarationOnNextLine : false
19
- # AllowShortEnumsOnASingleLine: true
20
44
# AllowShortBlocksOnASingleLine: Never
21
45
# AllowShortCaseLabelsOnASingleLine: false
22
- # AllowShortFunctionsOnASingleLine: All
23
- # AllowShortLambdasOnASingleLine: All
46
+ # AllowShortEnumsOnASingleLine: true
47
+ AllowShortFunctionsOnASingleLine : Inline
24
48
# AllowShortIfStatementsOnASingleLine: Never
49
+ # AllowShortLambdasOnASingleLine: All
25
50
# AllowShortLoopsOnASingleLine: false
26
51
# AlwaysBreakAfterDefinitionReturnType: None
27
52
# AlwaysBreakAfterReturnType: None
28
53
# AlwaysBreakBeforeMultilineStrings: false
29
54
# AlwaysBreakTemplateDeclarations: MultiLine
30
- # AttributeMacros:
31
- # - __capability
55
+ AttributeMacros :
56
+ - _ALWAYS_INLINE_
57
+ - _FORCE_INLINE_
58
+ - _NO_INLINE_
32
59
# BinPackArguments: true
33
60
# BinPackParameters: true
61
+ # BitFieldColonSpacing: Both
34
62
# BraceWrapping:
35
- # AfterCaseLabel: false
36
- # AfterClass: false
63
+ # AfterCaseLabel: false
64
+ # AfterClass: false
37
65
# AfterControlStatement: Never
38
- # AfterEnum: false
39
- # AfterFunction: false
40
- # AfterNamespace: false
66
+ # AfterEnum: false
67
+ # AfterFunction: false
68
+ # AfterNamespace: false
41
69
# AfterObjCDeclaration: false
42
- # AfterStruct: false
43
- # AfterUnion: false
70
+ # AfterStruct: false
71
+ # AfterUnion: false
44
72
# AfterExternBlock: false
45
- # BeforeCatch: false
46
- # BeforeElse: false
73
+ # BeforeCatch: false
74
+ # BeforeElse: false
47
75
# BeforeLambdaBody: false
48
- # BeforeWhile: false
49
- # IndentBraces: false
76
+ # BeforeWhile: false
77
+ # IndentBraces: false
50
78
# SplitEmptyFunction: true
51
79
# SplitEmptyRecord: true
52
80
# SplitEmptyNamespace: true
81
+ # BreakAfterAttributes: Never
82
+ # BreakAfterJavaFieldAnnotations: false
83
+ # BreakArrays: true
53
84
# BreakBeforeBinaryOperators: None
54
- # BreakBeforeConceptDeclarations: true
55
85
# BreakBeforeBraces: Attach
56
- # BreakBeforeInheritanceComma: false
57
- # BreakInheritanceList: BeforeColon
86
+ # BreakBeforeConceptDeclarations: Always
87
+ # BreakBeforeInlineASMColon: OnlyMultiline
58
88
# BreakBeforeTernaryOperators: true
59
- # BreakConstructorInitializersBeforeComma: false
60
89
BreakConstructorInitializers : AfterColon
90
+ # BreakInheritanceList: BeforeColon
61
91
# BreakStringLiterals: true
62
- ColumnLimit : 0
63
- # CommentPragmas: '^ IWYU pragma:'
64
- # QualifierAlignment: Leave
92
+ ColumnLimit : 0
93
+ # CommentPragmas: "^ IWYU pragma:"
65
94
# CompactNamespaces: false
66
95
ConstructorInitializerIndentWidth : 8
67
96
ContinuationIndentWidth : 8
68
97
Cpp11BracedListStyle : false
69
- # DeriveLineEnding: true
70
98
# DerivePointerAlignment: false
71
- # DisableFormat: false
99
+ # DisableFormat: false
72
100
# EmptyLineAfterAccessModifier: Never
73
101
# EmptyLineBeforeAccessModifier: LogicalBlock
74
102
# ExperimentalAutoDetectBinPacking: false
75
- # PackConstructorInitializers: BinPack
76
- ConstructorInitializerAllOnOneLineOrOnePerLine : true
77
- # AllowAllConstructorInitializersOnNextLine: true
78
103
# FixNamespaceComments: true
79
104
# ForEachMacros:
80
105
# - foreach
81
106
# - Q_FOREACH
82
107
# - BOOST_FOREACH
83
108
# IfMacros:
84
109
# - KJ_IF_MAYBE
85
- # IncludeBlocks: Preserve
110
+ # IncludeBlocks: Preserve
86
111
IncludeCategories :
87
- - Regex : ' ".*"'
88
- Priority : 1
89
- - Regex : ' ^<.*\.h>'
90
- Priority : 2
91
- - Regex : ' ^<.*'
92
- Priority : 3
93
- # IncludeIsMainRegex: ' (Test)?$'
94
- # IncludeIsMainSourceRegex: ''
112
+ - Regex : ^ ".*"$
113
+ Priority : 1
114
+ - Regex : ^<.*\.h>$
115
+ Priority : 2
116
+ - Regex : ^<.*>$
117
+ Priority : 3
118
+ # IncludeIsMainRegex: (Test)?$
119
+ # IncludeIsMainSourceRegex: ""
95
120
# IndentAccessModifiers: false
96
- IndentCaseLabels : true
97
121
# IndentCaseBlocks: false
122
+ IndentCaseLabels : true
123
+ # IndentExternBlock: AfterExternBlock
98
124
# IndentGotoLabels: true
99
125
# IndentPPDirectives: None
100
- # IndentExternBlock: AfterExternBlock
101
- # IndentRequires: false
102
- IndentWidth : 4
126
+ # IndentRequiresClause: true
127
+ IndentWidth : 4
103
128
# IndentWrappedFunctionNames: false
129
+ InsertBraces : true
130
+ # InsertNewlineAtEOF: false
104
131
# InsertTrailingCommas: None
132
+ # IntegerLiteralSeparator:
133
+ # Binary: 0
134
+ # BinaryMinDigits: 0
135
+ # Decimal: 0
136
+ # DecimalMinDigits: 0
137
+ # Hex: 0
138
+ # HexMinDigits: 0
139
+ JavaImportGroups :
140
+ - org.godotengine
141
+ - android
142
+ - androidx
143
+ - com.android
144
+ - com.google
145
+ - java
146
+ - javax
105
147
# JavaScriptQuotes: Leave
106
148
# JavaScriptWrapImports: true
149
+ # KeepEmptyLinesAtEOF: false
107
150
KeepEmptyLinesAtTheStartOfBlocks : false
108
151
# LambdaBodyIndentation: Signature
109
- # MacroBlockBegin: ''
110
- # MacroBlockEnd: ''
152
+ # Language: Cpp
153
+ # LineEnding: DeriveLF
154
+ # MacroBlockBegin: ""
155
+ # MacroBlockEnd: ""
111
156
# MaxEmptyLinesToKeep: 1
112
157
# NamespaceIndentation: None
158
+ # ObjCBinPackProtocolList: Auto
159
+ ObjCBlockIndentWidth : 4
160
+ # ObjCBreakBeforeNestedBlockParam: true
161
+ # ObjCSpaceAfterProperty: false
162
+ # ObjCSpaceBeforeProtocolList: true
163
+ # PPIndentWidth: -1
164
+ PackConstructorInitializers : NextLine
113
165
# PenaltyBreakAssignment: 2
114
166
# PenaltyBreakBeforeFirstCallParameter: 19
115
167
# PenaltyBreakComment: 300
@@ -118,82 +170,71 @@ KeepEmptyLinesAtTheStartOfBlocks: false
118
170
# PenaltyBreakString: 1000
119
171
# PenaltyBreakTemplateDeclaration: 10
120
172
# PenaltyExcessCharacter: 1000000
121
- # PenaltyReturnTypeOnItsOwnLine: 60
122
173
# PenaltyIndentedWhitespace: 0
174
+ # PenaltyReturnTypeOnItsOwnLine: 60
123
175
# PointerAlignment: Right
124
- # PPIndentWidth: -1
176
+ # QualifierAlignment: Leave
125
177
# ReferenceAlignment: Pointer
126
- # ReflowComments: true
178
+ # ReflowComments: true
127
179
# RemoveBracesLLVM: false
180
+ # RemoveParentheses: Leave
181
+ RemoveSemicolon : true
182
+ # RequiresClausePosition: OwnLine
183
+ # RequiresExpressionIndentation: OuterScope
128
184
# SeparateDefinitionBlocks: Leave
129
185
# ShortNamespaceLines: 1
130
- # SortIncludes: CaseSensitive
186
+ # SortIncludes: CaseSensitive
131
187
# SortJavaStaticImport: Before
132
- # SortUsingDeclarations: true
188
+ # SortUsingDeclarations: LexicographicNumeric
133
189
# SpaceAfterCStyleCast: false
134
190
# SpaceAfterLogicalNot: false
135
191
# SpaceAfterTemplateKeyword: true
192
+ # SpaceAroundPointerQualifiers: Default
136
193
# SpaceBeforeAssignmentOperators: true
137
194
# SpaceBeforeCaseColon: false
138
195
# SpaceBeforeCpp11BracedList: false
139
196
# SpaceBeforeCtorInitializerColon: true
140
197
# SpaceBeforeInheritanceColon: true
198
+ # SpaceBeforeJsonColon: false
141
199
# SpaceBeforeParens: ControlStatements
142
200
# SpaceBeforeParensOptions:
143
201
# AfterControlStatements: true
144
202
# AfterForeachMacros: true
145
- # AfterFunctionDefinitionName: false
146
203
# AfterFunctionDeclarationName: false
147
- # AfterIfMacros: true
204
+ # AfterFunctionDefinitionName: false
205
+ # AfterIfMacros: true
148
206
# AfterOverloadedOperator: false
207
+ # AfterRequiresInClause: false
208
+ # AfterRequiresInExpression: false
149
209
# BeforeNonEmptyParentheses: false
150
- # SpaceAroundPointerQualifiers: Default
151
210
# SpaceBeforeRangeBasedForLoopColon: true
211
+ # SpaceBeforeSquareBrackets: false
152
212
# SpaceInEmptyBlock: false
153
- # SpaceInEmptyParentheses: false
154
213
# SpacesBeforeTrailingComments: 1
155
- # SpacesInAngles: Never
156
- # SpacesInConditionalStatement: false
214
+ # SpacesInAngles: Never
157
215
# SpacesInContainerLiterals: true
158
- # SpacesInCStyleCastParentheses: false
159
- # # Godot TODO: We'll want to use a min of 1, but we need to see how to fix
160
- # # our comment capitalization at the same time.
161
216
SpacesInLineCommentPrefix :
162
- Minimum : 0
163
- Maximum : -1
164
- # SpacesInParentheses: false
217
+ Minimum : 0 # We want a minimum of 1 for comments, but allow 0 for disabled code.
218
+ Maximum : -1
219
+ # SpacesInParens: Never
220
+ # SpacesInParensOptions:
221
+ # InConditionalStatements: false
222
+ # InCStyleCasts: false
223
+ # InEmptyParentheses: false
224
+ # Other: false
165
225
# SpacesInSquareBrackets: false
166
- # SpaceBeforeSquareBrackets: false
167
- # BitFieldColonSpacing: Both
226
+ Standard : c++20
168
227
# StatementAttributeLikeMacros:
169
228
# - Q_EMIT
170
229
# StatementMacros:
171
230
# - Q_UNUSED
172
231
# - QT_REQUIRE_VERSION
173
- TabWidth : 4
174
- # UseCRLF: false
175
- UseTab : Always
232
+ TabWidth : 4
233
+ UseTab : Always
234
+ # VerilogBreakBetweenInstancePorts: true
176
235
# WhitespaceSensitiveMacros:
177
- # - STRINGIZE
178
- # - PP_STRINGIZE
179
236
# - BOOST_PP_STRINGIZE
180
- # - NS_SWIFT_NAME
181
237
# - CF_SWIFT_NAME
182
- ---
183
- # ## C++ specific config ###
184
- Language : Cpp
185
- Standard : c++17
186
- ---
187
- # ## ObjC specific config ###
188
- Language : ObjC
189
- # ObjCBinPackProtocolList: Auto
190
- ObjCBlockIndentWidth : 4
191
- # ObjCBreakBeforeNestedBlockParam: true
192
- # ObjCSpaceAfterProperty: false
193
- # ObjCSpaceBeforeProtocolList: true
194
- ---
195
- # ## Java specific config ###
196
- Language : Java
197
- # BreakAfterJavaFieldAnnotations: false
198
- JavaImportGroups : ['org.godotengine', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
199
- ...
238
+ # - NS_SWIFT_NAME
239
+ # - PP_STRINGIZE
240
+ # - STRINGIZE
0 commit comments