intel-extension-for-pytorch
/
.clang-format
88 строк · 2.5 Кб
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
63ObjCBlockIndentWidth: 2
64ObjCSpaceAfterProperty: false
65ObjCSpaceBeforeProtocolList: false
66PenaltyBreakBeforeFirstCallParameter: 1
67PenaltyBreakComment: 300
68PenaltyBreakFirstLessLess: 120
69PenaltyBreakString: 1000
70PenaltyExcessCharacter: 1000000
71PenaltyReturnTypeOnItsOwnLine: 2000000
72PointerAlignment: Left
73ReflowComments: true
74SortIncludes: true
75SpaceAfterCStyleCast: false
76SpaceBeforeAssignmentOperators: true
77SpaceBeforeParens: ControlStatements
78SpaceInEmptyParentheses: false
79SpacesBeforeTrailingComments: 1
80SpacesInAngles: false
81SpacesInContainerLiterals: true
82SpacesInCStyleCastParentheses: false
83SpacesInParentheses: false
84SpacesInSquareBrackets: false
85Standard: Cpp11
86TabWidth: 8
87UseTab: Never
88...
89