ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-openvino / .clang-format
| 1 | --- |
| 2 | # Override root .clang-format |
| 3 | AlignConsecutiveAssignments: false |
| 4 | AlignConsecutiveDeclarations: false |
| 5 | AccessModifierOffset: -4 |
| 6 | |
| 7 | Language: Cpp |
| 8 | AlignAfterOpenBracket: Align |
| 9 | AlignArrayOfStructures: Left |
| 10 | AlignConsecutiveBitFields: AcrossComments |
| 11 | AlignConsecutiveMacros: AcrossComments |
| 12 | # AlignConsecutiveShortCaseStatements: AcrossComments |
| 13 | AlignEscapedNewlines: Left # LeftWithLastLine |
| 14 | AlignOperands: Align |
| 15 | AlignTrailingComments: |
| 16 | Kind: Always |
| 17 | OverEmptyLines: 1 |
| 18 | AllowAllArgumentsOnNextLine: true |
| 19 | AllowAllParametersOfDeclarationOnNextLine: false |
| 20 | # AllowBreakBeforeNoexceptSpecifier: OnlyWithParen |
| 21 | AllowShortBlocksOnASingleLine: Never |
| 22 | AllowShortCaseLabelsOnASingleLine: false |
| 23 | AllowShortFunctionsOnASingleLine: Inline |
| 24 | AllowShortIfStatementsOnASingleLine: Never |
| 25 | AllowShortLambdasOnASingleLine: Inline |
| 26 | AllowShortLoopsOnASingleLine: false |
| 27 | AlwaysBreakBeforeMultilineStrings: true |
| 28 | # Treat CUDA keywords/attributes as "attribute macros" and avoid breaking lines inside them |
| 29 | AttributeMacros: |
| 30 | - __host__ |
| 31 | - __device__ |
| 32 | - __global__ |
| 33 | - __forceinline__ |
| 34 | - __launch_bounds__ |
| 35 | BinPackArguments: true |
| 36 | BinPackParameters: false # OnePerLine |
| 37 | BitFieldColonSpacing: Both |
| 38 | # BreakAdjacentStringLiterals: true |
| 39 | BreakAfterAttributes: Never |
| 40 | BreakBeforeBinaryOperators: None |
| 41 | BreakBeforeInlineASMColon: OnlyMultiline |
| 42 | BreakBeforeTernaryOperators: false |
| 43 | # BreakBinaryOperations: Never |
| 44 | BreakConstructorInitializers: AfterColon |
| 45 | # BreakFunctionDefinitionParameters: false |
| 46 | BreakInheritanceList: AfterComma |
| 47 | BreakStringLiterals: true |
| 48 | # BreakTemplateDeclarations: Yes |
| 49 | ColumnLimit: 120 |
| 50 | CommentPragmas: '^ IWYU pragma:' |
| 51 | CompactNamespaces: false |
| 52 | ConstructorInitializerIndentWidth: 4 |
| 53 | ContinuationIndentWidth: 4 |
| 54 | DerivePointerAlignment: false |
| 55 | DisableFormat: false |
| 56 | EmptyLineBeforeAccessModifier: Leave |
| 57 | EmptyLineAfterAccessModifier: Never |
| 58 | ExperimentalAutoDetectBinPacking: false |
| 59 | FixNamespaceComments: true |
| 60 | IncludeBlocks: Regroup |
| 61 | IncludeCategories: |
| 62 | - Regex: '".*"' |
| 63 | Priority: 1 |
| 64 | SortPriority: 0 |
| 65 | - Regex: '^<.*\.h>' |
| 66 | Priority: 2 |
| 67 | SortPriority: 0 |
| 68 | - Regex: '^<.*' |
| 69 | Priority: 3 |
| 70 | SortPriority: 0 |
| 71 | - Regex: '.*' |
| 72 | Priority: 4 |
| 73 | SortPriority: 0 |
| 74 | IncludeIsMainRegex: '([-_](test|unittest))?$' |
| 75 | IncludeIsMainSourceRegex: '' |
| 76 | IndentAccessModifiers: false |
| 77 | IndentExternBlock: NoIndent |
| 78 | IndentGotoLabels: false |
| 79 | IndentPPDirectives: AfterHash |
| 80 | IndentWidth: 4 |
| 81 | IndentWrappedFunctionNames: false |
| 82 | InsertBraces: true # NOTE: may lead to incorrect formatting |
| 83 | InsertNewlineAtEOF: true |
| 84 | JavaScriptQuotes: Leave |
| 85 | JavaScriptWrapImports: true |
| 86 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 87 | LambdaBodyIndentation: Signature |
| 88 | LineEnding: LF |
| 89 | MacroBlockBegin: '' |
| 90 | MacroBlockEnd: '' |
| 91 | MaxEmptyLinesToKeep: 1 |
| 92 | NamespaceIndentation: None |
| 93 | ObjCBinPackProtocolList: Auto |
| 94 | ObjCBlockIndentWidth: 4 |
| 95 | ObjCSpaceAfterProperty: true |
| 96 | ObjCSpaceBeforeProtocolList: true |
| 97 | PPIndentWidth: -1 |
| 98 | PackConstructorInitializers: CurrentLine |
| 99 | PenaltyBreakAssignment: 2 |
| 100 | PenaltyBreakBeforeFirstCallParameter: 1 |
| 101 | PenaltyBreakComment: 300 |
| 102 | PenaltyBreakFirstLessLess: 120 |
| 103 | PenaltyBreakString: 1000 |
| 104 | PenaltyBreakTemplateDeclaration: 10 |
| 105 | PenaltyExcessCharacter: 1000000 |
| 106 | PenaltyReturnTypeOnItsOwnLine: 200 |
| 107 | PointerAlignment: Middle |
| 108 | QualifierAlignment: Left |
| 109 | #QualifierOrder: ['static', 'inline', 'friend', 'constexpr', 'const', 'volatile', 'type', 'restrict'] |
| 110 | RawStringFormats: |
| 111 | - Language: Cpp |
| 112 | Delimiters: |
| 113 | - cc |
| 114 | - CC |
| 115 | - cpp |
| 116 | - Cpp |
| 117 | - CPP |
| 118 | - 'c++' |
| 119 | - 'C++' |
| 120 | CanonicalDelimiter: '' |
| 121 | ReferenceAlignment: Middle |
| 122 | ReflowComments: false # IndentOnly |
| 123 | SeparateDefinitionBlocks: Always |
| 124 | SortIncludes: CaseInsensitive |
| 125 | SortUsingDeclarations: LexicographicNumeric |
| 126 | SpaceAfterCStyleCast: true |
| 127 | SpaceAfterLogicalNot: false |
| 128 | SpaceAfterTemplateKeyword: true |
| 129 | SpaceBeforeAssignmentOperators: true |
| 130 | SpaceBeforeCpp11BracedList: false |
| 131 | SpaceBeforeCtorInitializerColon: true |
| 132 | SpaceBeforeInheritanceColon: true |
| 133 | SpaceBeforeParens: ControlStatements |
| 134 | SpaceBeforeRangeBasedForLoopColon: true |
| 135 | SpaceInEmptyBlock: false |
| 136 | SpaceInEmptyParentheses: false |
| 137 | SpacesBeforeTrailingComments: 2 |
| 138 | SpacesInAngles: Never |
| 139 | SpacesInLineCommentPrefix: |
| 140 | Minimum: 1 |
| 141 | Maximum: -1 |
| 142 | SpacesInParentheses: false |
| 143 | SpacesInSquareBrackets: false |
| 144 | SpaceBeforeSquareBrackets: false |
| 145 | Standard: c++17 |
| 146 | TabWidth: 4 |
| 147 | UseTab: Never |
| 148 | WhitespaceSensitiveMacros: ['STRINGIZE'] |
| 149 | ... |