Debian Codegraph @

.clang-format

raw
1 # yaml-language-server: $schema=https://json.schemastore.org/clang-format.json
2 ---
3 Language: Cpp
4 AccessModifierOffset: -2
5 AlignAfterOpenBracket: Align
6 AlignArrayOfStructures: None
7 AlignConsecutiveAssignments:
8 Enabled: false
9 AcrossEmptyLines: false
10 AcrossComments: false
11 AlignCompound: false
12 AlignFunctionPointers: false
13 PadOperators: false
14 AlignConsecutiveBitFields:
15 Enabled: false
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: false
30 AcrossEmptyLines: false
31 AcrossComments: false
32 AlignCompound: false
33 AlignFunctionPointers: false
34 PadOperators: false
35 AlignConsecutiveShortCaseStatements:
36 Enabled: false
37 AcrossEmptyLines: false
38 AcrossComments: false
39 AlignCaseArrows: false
40 AlignCaseColons: false
41 AlignConsecutiveTableGenBreakingDAGArgColons:
42 Enabled: false
43 AcrossEmptyLines: false
44 AcrossComments: false
45 AlignCompound: false
46 AlignFunctionPointers: false
47 PadOperators: false
48 AlignConsecutiveTableGenCondOperatorColons:
49 Enabled: false
50 AcrossEmptyLines: false
51 AcrossComments: false
52 AlignCompound: false
53 AlignFunctionPointers: false
54 PadOperators: false
55 AlignConsecutiveTableGenDefinitionColons:
56 Enabled: false
57 AcrossEmptyLines: false
58 AcrossComments: false
59 AlignCompound: false
60 AlignFunctionPointers: false
61 PadOperators: false
62 AlignEscapedNewlines: DontAlign
63 AlignOperands: Align
64 AlignTrailingComments:
65 Kind: Always
66 OverEmptyLines: 0
67 AllowAllArgumentsOnNextLine: true
68 AllowAllParametersOfDeclarationOnNextLine: true
69 AllowBreakBeforeNoexceptSpecifier: Never
70 AllowShortBlocksOnASingleLine: Never
71 AllowShortCaseExpressionOnASingleLine: true
72 AllowShortCaseLabelsOnASingleLine: false
73 AllowShortCompoundRequirementOnASingleLine: true
74 AllowShortEnumsOnASingleLine: true
75 AllowShortFunctionsOnASingleLine: Inline
76 AllowShortIfStatementsOnASingleLine: Never
77 AllowShortLambdasOnASingleLine: All
78 AllowShortLoopsOnASingleLine: false
79 AlwaysBreakAfterDefinitionReturnType: None
80 AlwaysBreakBeforeMultilineStrings: false
81 AttributeMacros:
82 - __capability
83 BinPackArguments: false
84 BinPackParameters: false
85 BitFieldColonSpacing: Both
86 BraceWrapping:
87 AfterCaseLabel: false
88 AfterClass: true
89 AfterControlStatement: Never
90 AfterEnum: false
91 AfterExternBlock: false
92 AfterFunction: false
93 AfterNamespace: false
94 AfterObjCDeclaration: false
95 AfterStruct: false
96 AfterUnion: false
97 BeforeCatch: false
98 BeforeElse: false
99 BeforeLambdaBody: false
100 BeforeWhile: false
101 IndentBraces: false
102 SplitEmptyFunction: false
103 SplitEmptyRecord: false
104 SplitEmptyNamespace: false
105 BreakAdjacentStringLiterals: true
106 BreakAfterAttributes: Leave
107 BreakAfterJavaFieldAnnotations: false
108 BreakAfterReturnType: AllDefinitions
109 BreakArrays: true
110 BreakBeforeBinaryOperators: All
111 BreakBeforeConceptDeclarations: Always
112 BreakBeforeBraces: Custom
113 BreakBeforeInlineASMColon: OnlyMultiline
114 BreakBeforeTernaryOperators: true
115 BreakConstructorInitializers: BeforeComma
116 BreakFunctionDefinitionParameters: false
117 BreakInheritanceList: BeforeColon
118 BreakStringLiterals: true
119 BreakTemplateDeclarations: Yes
120 ColumnLimit: 100
121 CommentPragmas: '^ IWYU pragma:'
122 CompactNamespaces: false
123 ConstructorInitializerIndentWidth: 2
124 ContinuationIndentWidth: 2
125 Cpp11BracedListStyle: true
126 DerivePointerAlignment: true
127 DisableFormat: false
128 EmptyLineAfterAccessModifier: Never
129 EmptyLineBeforeAccessModifier: LogicalBlock
130 ExperimentalAutoDetectBinPacking: false
131 FixNamespaceComments: true
132 ForEachMacros:
133 - forever
134 - foreach
135 - Q_FOREACH
136 - BOOST_FOREACH
137 IfMacros:
138 - KJ_IF_MAYBE
139 IncludeBlocks: Preserve
140 IncludeCategories:
141 - Regex: '^<Q.*'
142 Priority: 200
143 SortPriority: 200
144 CaseSensitive: true
145 IncludeIsMainRegex: '(Test)?$'
146 IncludeIsMainSourceRegex: ''
147 IndentAccessModifiers: false
148 IndentCaseBlocks: false
149 IndentCaseLabels: false
150 IndentExternBlock: AfterExternBlock
151 IndentGotoLabels: true
152 IndentPPDirectives: None
153 IndentRequiresClause: true
154 IndentWidth: 2
155 IndentWrappedFunctionNames: false
156 InsertBraces: false
157 InsertNewlineAtEOF: false
158 InsertTrailingCommas: None
159 IntegerLiteralSeparator:
160 Binary: 0
161 BinaryMinDigits: 0
162 Decimal: 0
163 DecimalMinDigits: 0
164 Hex: 0
165 HexMinDigits: 0
166 JavaScriptQuotes: Leave
167 JavaScriptWrapImports: true
168 KeepEmptyLines:
169 AtEndOfFile: false
170 AtStartOfBlock: false
171 AtStartOfFile: false
172 LambdaBodyIndentation: Signature
173 LineEnding: DeriveLF
174 MacroBlockBegin: ''
175 MacroBlockEnd: ''
176 MainIncludeChar: Quote
177 MaxEmptyLinesToKeep: 1
178 NamespaceIndentation: None
179 ObjCBinPackProtocolList: Auto
180 ObjCBlockIndentWidth: 2
181 ObjCBreakBeforeNestedBlockParam: true
182 ObjCSpaceAfterProperty: false
183 ObjCSpaceBeforeProtocolList: true
184 PackConstructorInitializers: BinPack
185 PenaltyBreakAssignment: 150
186 PenaltyBreakBeforeFirstCallParameter: 300
187 PenaltyBreakComment: 500
188 PenaltyBreakFirstLessLess: 400
189 PenaltyBreakOpenParenthesis: 0
190 PenaltyBreakScopeResolution: 500
191 PenaltyBreakString: 600
192 PenaltyBreakTemplateDeclaration: 10
193 PenaltyExcessCharacter: 50
194 PenaltyIndentedWhitespace: 0
195 PenaltyReturnTypeOnItsOwnLine: 300
196 PointerAlignment: Right
197 PPIndentWidth: -1
198 QualifierAlignment: Leave
199 ReferenceAlignment: Pointer
200 ReflowComments: false
201 RemoveBracesLLVM: false
202 RemoveParentheses: Leave
203 RemoveSemicolon: false
204 RequiresClausePosition: OwnLine
205 RequiresExpressionIndentation: OuterScope
206 SeparateDefinitionBlocks: Leave
207 ShortNamespaceLines: 1
208 SkipMacroDefinitionBody: false
209 SortIncludes: CaseSensitive
210 SortJavaStaticImport: Before
211 SortUsingDeclarations: Lexicographic
212 SpaceAfterCStyleCast: true
213 SpaceAfterLogicalNot: false
214 SpaceAfterTemplateKeyword: false
215 SpaceAroundPointerQualifiers: Default
216 SpaceBeforeAssignmentOperators: true
217 SpaceBeforeCaseColon: false
218 SpaceBeforeCpp11BracedList: false
219 SpaceBeforeCtorInitializerColon: true
220 SpaceBeforeInheritanceColon: true
221 SpaceBeforeJsonColon: false
222 SpaceBeforeParens: ControlStatements
223 SpaceBeforeParensOptions:
224 AfterControlStatements: true
225 AfterForeachMacros: true
226 AfterFunctionDefinitionName: false
227 AfterFunctionDeclarationName: false
228 AfterIfMacros: true
229 AfterOverloadedOperator: false
230 AfterPlacementOperator: true
231 AfterRequiresInClause: false
232 AfterRequiresInExpression: false
233 BeforeNonEmptyParentheses: false
234 SpaceBeforeRangeBasedForLoopColon: true
235 SpaceBeforeSquareBrackets: false
236 SpaceInEmptyBlock: false
237 SpacesBeforeTrailingComments: 1
238 SpacesInAngles: Never
239 SpacesInContainerLiterals: false
240 SpacesInLineCommentPrefix:
241 Minimum: 1
242 Maximum: -1
243 SpacesInParens: Never
244 SpacesInParensOptions:
245 ExceptDoubleParentheses: false
246 InCStyleCasts: false
247 InConditionalStatements: false
248 InEmptyParentheses: false
249 Other: false
250 SpacesInSquareBrackets: false
251 Standard: Auto
252 StatementAttributeLikeMacros:
253 - Q_EMIT
254 - emit
255 StatementMacros:
256 - Q_UNUSED
257 - QT_REQUIRE_VERSION
258 - Q_CLASSINFO
259 - Q_ENUM
260 - Q_ENUM_NS
261 - Q_FLAG
262 - Q_FLAG_NS
263 - Q_GADGET
264 - Q_GADGET_EXPORT
265 - Q_INTERFACES
266 - Q_LOGGING_CATEGORY
267 - Q_MOC_INCLUDE
268 - Q_NAMESPACE
269 - Q_NAMESPACE_EXPORT
270 - Q_OBJECT
271 - Q_PROPERTY
272 - Q_REVISION
273 - Q_DISABLE_COPY
274 - Q_SET_OBJECT_NAME
275 - QT_BEGIN_NAMESPACE
276 - QT_END_NAMESPACE
277 - QML_ADDED_IN_MINOR_VERSION
278 - QML_ANONYMOUS
279 - QML_ATTACHED
280 - QML_DECLARE_TYPE
281 - QML_DECLARE_TYPEINFO
282 - QML_ELEMENT
283 - QML_EXTENDED
284 - QML_EXTENDED_NAMESPACE
285 - QML_EXTRA_VERSION
286 - QML_FOREIGN
287 - QML_FOREIGN_NAMESPACE
288 - QML_IMPLEMENTS_INTERFACES
289 - QML_INTERFACE
290 - QML_NAMED_ELEMENT
291 - QML_REMOVED_IN_MINOR_VERSION
292 - QML_SINGLETON
293 - QML_UNAVAILABLE
294 - QML_UNCREATABLE
295 - QML_VALUE_TYPE
296 #TableGenBreakInsideDAGArg: DontBreak
297 TabWidth: 2
298 UseTab: Never
299 VerilogBreakBetweenInstancePorts: true
300 WhitespaceSensitiveMacros:
301 - BOOST_PP_STRINGIZE
302 - CF_SWIFT_NAME
303 - NS_SWIFT_NAME
304 - PP_STRINGIZE
305 - STRINGIZE
306 ...
307