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