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