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