xref: /aosp_15_r20/external/pytorch/.clang-format (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1---
2AccessModifierOffset: -1
3AlignAfterOpenBracket: AlwaysBreak
4AlignConsecutiveAssignments: false
5AlignConsecutiveDeclarations: false
6AlignEscapedNewlinesLeft: true
7AlignOperands:   false
8AlignTrailingComments: false
9AllowAllParametersOfDeclarationOnNextLine: false
10AllowShortBlocksOnASingleLine: false
11AllowShortCaseLabelsOnASingleLine: false
12AllowShortFunctionsOnASingleLine: Empty
13AllowShortIfStatementsOnASingleLine: false
14AllowShortLoopsOnASingleLine: false
15AlwaysBreakAfterReturnType: None
16AlwaysBreakBeforeMultilineStrings: true
17AlwaysBreakTemplateDeclarations: true
18BinPackArguments: false
19BinPackParameters: false
20BraceWrapping:
21  AfterClass:      false
22  AfterControlStatement: false
23  AfterEnum:       false
24  AfterFunction:   false
25  AfterNamespace:  false
26  AfterObjCDeclaration: false
27  AfterStruct:     false
28  AfterUnion:      false
29  BeforeCatch:     false
30  BeforeElse:      false
31  IndentBraces:    false
32BreakBeforeBinaryOperators: None
33BreakBeforeBraces: Attach
34BreakBeforeTernaryOperators: true
35BreakConstructorInitializersBeforeComma: false
36BreakAfterJavaFieldAnnotations: false
37BreakStringLiterals: false
38ColumnLimit:     80
39CommentPragmas:  '^ IWYU pragma:'
40CompactNamespaces: false
41ConstructorInitializerAllOnOneLineOrOnePerLine: true
42ConstructorInitializerIndentWidth: 4
43ContinuationIndentWidth: 4
44Cpp11BracedListStyle: true
45DerivePointerAlignment: false
46DisableFormat:   false
47ForEachMacros:   [ FOR_EACH_RANGE, FOR_EACH, ]
48IncludeCategories:
49  - Regex:           '^<.*\.h(pp)?>'
50    Priority:        1
51  - Regex:           '^<.*'
52    Priority:        2
53  - Regex:           '.*'
54    Priority:        3
55IndentCaseLabels: true
56IndentWidth:     2
57IndentWrappedFunctionNames: false
58KeepEmptyLinesAtTheStartOfBlocks: false
59MacroBlockBegin: ''
60MacroBlockEnd:   ''
61MaxEmptyLinesToKeep: 1
62NamespaceIndentation: None
63PenaltyBreakBeforeFirstCallParameter: 1
64PenaltyBreakComment: 300
65PenaltyBreakFirstLessLess: 120
66PenaltyBreakString: 1000
67PenaltyExcessCharacter: 1000000
68PenaltyReturnTypeOnItsOwnLine: 2000000
69PointerAlignment: Left
70ReflowComments:  true
71SortIncludes:    true
72SpaceAfterCStyleCast: false
73SpaceBeforeAssignmentOperators: true
74SpaceBeforeParens: ControlStatements
75SpaceInEmptyParentheses: false
76SpacesBeforeTrailingComments: 1
77SpacesInAngles:  false
78SpacesInContainerLiterals: true
79SpacesInCStyleCastParentheses: false
80SpacesInParentheses: false
81SpacesInSquareBrackets: false
82Standard:        Cpp11
83TabWidth:        8
84UseTab:          Never
85---
86Language: ObjC
87ColumnLimit: 120
88AlignAfterOpenBracket: Align
89ObjCBlockIndentWidth: 2
90ObjCSpaceAfterProperty: false
91ObjCSpaceBeforeProtocolList: false
92...
93