|
| 1 | +--- |
| 2 | +AccessModifierOffset: -1 |
| 3 | +AlignAfterOpenBracket: AlwaysBreak |
| 4 | +AlignConsecutiveAssignments: false |
| 5 | +AlignConsecutiveDeclarations: false |
| 6 | +AlignEscapedNewlinesLeft: true |
| 7 | +AlignOperands: false |
| 8 | +AlignTrailingComments: false |
| 9 | +AllowAllParametersOfDeclarationOnNextLine: false |
| 10 | +AllowShortBlocksOnASingleLine: false |
| 11 | +AllowShortCaseLabelsOnASingleLine: false |
| 12 | +AllowShortFunctionsOnASingleLine: Empty |
| 13 | +AllowShortIfStatementsOnASingleLine: false |
| 14 | +AllowShortLoopsOnASingleLine: false |
| 15 | +AlwaysBreakAfterReturnType: None |
| 16 | +AlwaysBreakBeforeMultilineStrings: true |
| 17 | +AlwaysBreakTemplateDeclarations: true |
| 18 | +BinPackArguments: false |
| 19 | +BinPackParameters: false |
| 20 | +BraceWrapping: |
| 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 |
| 32 | +BreakBeforeBinaryOperators: None |
| 33 | +BreakBeforeBraces: Attach |
| 34 | +BreakBeforeTernaryOperators: true |
| 35 | +BreakConstructorInitializersBeforeComma: false |
| 36 | +BreakAfterJavaFieldAnnotations: false |
| 37 | +BreakStringLiterals: false |
| 38 | +ColumnLimit: 120 |
| 39 | +CommentPragmas: '^ IWYU pragma:' |
| 40 | +CompactNamespaces: false |
| 41 | +ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 42 | +ConstructorInitializerIndentWidth: 4 |
| 43 | +ContinuationIndentWidth: 4 |
| 44 | +Cpp11BracedListStyle: true |
| 45 | +DerivePointerAlignment: false |
| 46 | +DisableFormat: false |
| 47 | +ForEachMacros: |
| 48 | + - FOR_EACH_RANGE |
| 49 | + - FOR_EACH |
| 50 | +IncludeCategories: |
| 51 | + - Regex: '^<.*\.h(pp)?>' |
| 52 | + Priority: 1 |
| 53 | + - Regex: '^<.*' |
| 54 | + Priority: 2 |
| 55 | + - Regex: '.*' |
| 56 | + Priority: 3 |
| 57 | +IndentCaseLabels: true |
| 58 | +IndentWidth: 2 |
| 59 | +IndentWrappedFunctionNames: false |
| 60 | +KeepEmptyLinesAtTheStartOfBlocks: false |
| 61 | +MacroBlockBegin: '' |
| 62 | +MacroBlockEnd: '' |
| 63 | +Macros: |
| 64 | + - >- |
| 65 | + PyObject_HEAD_INIT(type)={ |
| 66 | + /* this is not exactly match with PyObject_HEAD_INIT in Python source code |
| 67 | + * but it is enough for clang-format */ |
| 68 | + { 0xFFFFFFFF }, |
| 69 | + (type) |
| 70 | + }, |
| 71 | + - >- |
| 72 | + PyVarObject_HEAD_INIT(type, size)={ |
| 73 | + { |
| 74 | + /* manually expand PyObject_HEAD_INIT(type) above |
| 75 | + * because clang-format do not support recursive expansion */ |
| 76 | + { 0xFFFFFFFF }, |
| 77 | + (type) |
| 78 | + }, |
| 79 | + (size) |
| 80 | + }, |
| 81 | +MaxEmptyLinesToKeep: 1 |
| 82 | +NamespaceIndentation: None |
| 83 | +PenaltyBreakBeforeFirstCallParameter: 1 |
| 84 | +PenaltyBreakComment: 300 |
| 85 | +PenaltyBreakFirstLessLess: 120 |
| 86 | +PenaltyBreakString: 1000 |
| 87 | +PenaltyExcessCharacter: 1000000 |
| 88 | +PenaltyReturnTypeOnItsOwnLine: 2000000 |
| 89 | +PointerAlignment: Left |
| 90 | +PPIndentWidth: 0 |
| 91 | +ReflowComments: true |
| 92 | +SortIncludes: true |
| 93 | +SpaceAfterCStyleCast: false |
| 94 | +SpaceBeforeAssignmentOperators: true |
| 95 | +SpaceBeforeParens: ControlStatements |
| 96 | +SpaceInEmptyParentheses: false |
| 97 | +SpacesBeforeTrailingComments: 1 |
| 98 | +SpacesInAngles: false |
| 99 | +SpacesInContainerLiterals: true |
| 100 | +SpacesInCStyleCastParentheses: false |
| 101 | +SpacesInParentheses: false |
| 102 | +SpacesInSquareBrackets: false |
| 103 | +Standard: c++17 |
| 104 | +StatementMacros: |
| 105 | + - C10_DEFINE_bool |
| 106 | + - C10_DEFINE_int |
| 107 | + - C10_DEFINE_int32 |
| 108 | + - C10_DEFINE_int64 |
| 109 | + - C10_DEFINE_string |
| 110 | + - C10_DEFINE_REGISTRY_WITHOUT_WARNING |
| 111 | + - C10_REGISTER_CREATOR |
| 112 | + - DEFINE_BINARY |
| 113 | + - PyObject_HEAD |
| 114 | + - PyObject_VAR_HEAD |
| 115 | + - PyException_HEAD |
| 116 | + - TORCH_DECLARE_bool |
| 117 | + |
| 118 | +TabWidth: 8 |
| 119 | +UseTab: Never |
| 120 | +--- |
| 121 | +Language: ObjC |
| 122 | +ColumnLimit: 120 |
| 123 | +AlignAfterOpenBracket: Align |
| 124 | +ObjCBlockIndentWidth: 2 |
| 125 | +ObjCSpaceAfterProperty: false |
| 126 | +ObjCSpaceBeforeProtocolList: false |
| 127 | +... |
0 commit comments