1e407b4c8SLawrence Tang# SPDX-License-Identifier: GPL-2.0 2e407b4c8SLawrence Tang# 3*096597eeSJohn Chung# Originally from Linux v5.6 4e407b4c8SLawrence Tang--- 5e407b4c8SLawrence TangAccessModifierOffset: -4 6e407b4c8SLawrence TangAlignAfterOpenBracket: Align 7*096597eeSJohn ChungAlignConsecutiveMacros: true 8e407b4c8SLawrence TangAlignConsecutiveAssignments: false 9e407b4c8SLawrence TangAlignConsecutiveDeclarations: false 10*096597eeSJohn Chung#AlignEscapedNewlines: Left # Unknown to clang-format-4.0 11*096597eeSJohn ChungAlignOperands: Align 12*096597eeSJohn ChungAlignTrailingComments: 13*096597eeSJohn Chung Kind: Always 14*096597eeSJohn Chung OverEmptyLines: 1 15e407b4c8SLawrence TangAllowAllParametersOfDeclarationOnNextLine: false 16e407b4c8SLawrence TangAllowShortBlocksOnASingleLine: false 17e407b4c8SLawrence TangAllowShortCaseLabelsOnASingleLine: false 18e407b4c8SLawrence TangAllowShortFunctionsOnASingleLine: None 19e407b4c8SLawrence TangAllowShortIfStatementsOnASingleLine: false 20e407b4c8SLawrence TangAllowShortLoopsOnASingleLine: false 21e407b4c8SLawrence TangAlwaysBreakAfterDefinitionReturnType: None 22e407b4c8SLawrence TangAlwaysBreakAfterReturnType: None 23e407b4c8SLawrence TangAlwaysBreakBeforeMultilineStrings: false 24e407b4c8SLawrence TangAlwaysBreakTemplateDeclarations: false 25e407b4c8SLawrence TangBinPackArguments: true 26e407b4c8SLawrence TangBinPackParameters: true 27e407b4c8SLawrence TangBraceWrapping: 28e407b4c8SLawrence Tang AfterClass: false 29e407b4c8SLawrence Tang AfterControlStatement: false 30e407b4c8SLawrence Tang AfterEnum: false 31e407b4c8SLawrence Tang AfterFunction: true 32e407b4c8SLawrence Tang AfterNamespace: true 33e407b4c8SLawrence Tang AfterObjCDeclaration: false 34e407b4c8SLawrence Tang AfterStruct: false 35e407b4c8SLawrence Tang AfterUnion: false 36*096597eeSJohn Chung #AfterExternBlock: false # Unknown to clang-format-5.0 37e407b4c8SLawrence Tang BeforeCatch: false 38e407b4c8SLawrence Tang BeforeElse: false 39e407b4c8SLawrence Tang IndentBraces: false 40*096597eeSJohn Chung #SplitEmptyFunction: true # Unknown to clang-format-4.0 41*096597eeSJohn Chung #SplitEmptyRecord: true # Unknown to clang-format-4.0 42*096597eeSJohn Chung #SplitEmptyNamespace: true # Unknown to clang-format-4.0 43*096597eeSJohn ChungBreakAfterAttributes: Never 44e407b4c8SLawrence TangBreakBeforeBinaryOperators: None 45e407b4c8SLawrence TangBreakBeforeBraces: Custom 46*096597eeSJohn Chung#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 47e407b4c8SLawrence TangBreakBeforeTernaryOperators: false 48e407b4c8SLawrence TangBreakConstructorInitializersBeforeComma: false 49*096597eeSJohn Chung#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 50e407b4c8SLawrence TangBreakAfterJavaFieldAnnotations: false 51e407b4c8SLawrence TangBreakStringLiterals: false 52e407b4c8SLawrence TangColumnLimit: 80 53e407b4c8SLawrence TangCommentPragmas: '^ IWYU pragma:' 54*096597eeSJohn Chung#CompactNamespaces: false # Unknown to clang-format-4.0 55e407b4c8SLawrence TangConstructorInitializerAllOnOneLineOrOnePerLine: false 56e407b4c8SLawrence TangConstructorInitializerIndentWidth: 8 57e407b4c8SLawrence TangContinuationIndentWidth: 8 58e407b4c8SLawrence TangCpp11BracedListStyle: false 59*096597eeSJohn ChungDeriveLineEnding: false 60e407b4c8SLawrence TangDerivePointerAlignment: false 61e407b4c8SLawrence TangDisableFormat: false 62e407b4c8SLawrence TangExperimentalAutoDetectBinPacking: false 63*096597eeSJohn Chung#FixNamespaceComments: false # Unknown to clang-format-4.0 64*096597eeSJohn Chung#IncludeBlocks: Preserve # Unknown to clang-format-5.0 65e407b4c8SLawrence TangIncludeCategories: 66e407b4c8SLawrence Tang - Regex: '.*' 67e407b4c8SLawrence Tang Priority: 1 68e407b4c8SLawrence TangIncludeIsMainRegex: '(Test)?$' 69e407b4c8SLawrence TangIndentCaseLabels: false 70*096597eeSJohn ChungIndentExternBlock: NoIndent 71*096597eeSJohn Chung#IndentPPDirectives: None # Unknown to clang-format-5.0 72e407b4c8SLawrence TangIndentWidth: 8 73e407b4c8SLawrence TangIndentWrappedFunctionNames: false 74*096597eeSJohn ChungInsertNewlineAtEOF: true 75e407b4c8SLawrence TangJavaScriptQuotes: Leave 76e407b4c8SLawrence TangJavaScriptWrapImports: true 77e407b4c8SLawrence TangKeepEmptyLinesAtTheStartOfBlocks: false 78*096597eeSJohn ChungLineEnding: LF 79e407b4c8SLawrence TangMacroBlockBegin: '' 80e407b4c8SLawrence TangMacroBlockEnd: '' 81e407b4c8SLawrence TangMaxEmptyLinesToKeep: 1 82*096597eeSJohn ChungNamespaceIndentation: Inner 83*096597eeSJohn Chung#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 84e407b4c8SLawrence TangObjCBlockIndentWidth: 8 85e407b4c8SLawrence TangObjCSpaceAfterProperty: true 86e407b4c8SLawrence TangObjCSpaceBeforeProtocolList: true 87e407b4c8SLawrence Tang 88e407b4c8SLawrence Tang# Taken from git's rules 89e407b4c8SLawrence TangPenaltyBreakAssignment: 10 90e407b4c8SLawrence TangPenaltyBreakBeforeFirstCallParameter: 30 91e407b4c8SLawrence TangPenaltyBreakComment: 10 92e407b4c8SLawrence TangPenaltyBreakFirstLessLess: 0 93e407b4c8SLawrence TangPenaltyBreakString: 10 94e407b4c8SLawrence TangPenaltyExcessCharacter: 100 95e407b4c8SLawrence TangPenaltyReturnTypeOnItsOwnLine: 60 96e407b4c8SLawrence Tang 97e407b4c8SLawrence TangPointerAlignment: Right 98e407b4c8SLawrence TangReflowComments: false 99e407b4c8SLawrence TangSortIncludes: false 100*096597eeSJohn Chung#SortUsingDeclarations: false # Unknown to clang-format-4.0 101e407b4c8SLawrence TangSpaceAfterCStyleCast: false 102e407b4c8SLawrence TangSpaceAfterTemplateKeyword: true 103e407b4c8SLawrence TangSpaceBeforeAssignmentOperators: true 104*096597eeSJohn Chung#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 105*096597eeSJohn Chung#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 106*096597eeSJohn ChungSpaceBeforeParens: ControlStatements 107*096597eeSJohn Chung#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 108e407b4c8SLawrence TangSpaceInEmptyParentheses: false 109e407b4c8SLawrence TangSpacesBeforeTrailingComments: 1 110e407b4c8SLawrence TangSpacesInAngles: false 111e407b4c8SLawrence TangSpacesInContainerLiterals: false 112e407b4c8SLawrence TangSpacesInCStyleCastParentheses: false 113e407b4c8SLawrence TangSpacesInParentheses: false 114e407b4c8SLawrence TangSpacesInSquareBrackets: false 115e407b4c8SLawrence TangStandard: Cpp03 116e407b4c8SLawrence TangTabWidth: 8 117e407b4c8SLawrence TangUseTab: Always 118e407b4c8SLawrence Tang... 119