Debian Codegraph @

.clang-format

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