pytorch
/
.clang-format
92 строки · 2.6 Кб
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:
21AfterClass: false
22AfterControlStatement: false
23AfterEnum: false
24AfterFunction: false
25AfterNamespace: false
26AfterObjCDeclaration: false
27AfterStruct: false
28AfterUnion: false
29BeforeCatch: false
30BeforeElse: false
31IndentBraces: 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)?>'
50Priority: 1
51- Regex: '^<.*'
52Priority: 2
53- Regex: '.*'
54Priority: 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