1*e4b13e67SPatrick Williams# SPDX-License-Identifier: GPL-2.0 2*e4b13e67SPatrick Williams# 3*e4b13e67SPatrick Williams# Originally from Linux v5.6 4*e4b13e67SPatrick Williams--- 5*e4b13e67SPatrick WilliamsAccessModifierOffset: -4 6*e4b13e67SPatrick WilliamsAlignAfterOpenBracket: Align 7*e4b13e67SPatrick WilliamsAlignConsecutiveMacros: true 8*e4b13e67SPatrick WilliamsAlignConsecutiveAssignments: false 9*e4b13e67SPatrick WilliamsAlignConsecutiveDeclarations: false 10*e4b13e67SPatrick Williams#AlignEscapedNewlines: Left # Unknown to clang-format-4.0 11*e4b13e67SPatrick WilliamsAlignOperands: Align 12*e4b13e67SPatrick WilliamsAlignTrailingComments: 13*e4b13e67SPatrick Williams Kind: Always 14*e4b13e67SPatrick Williams OverEmptyLines: 1 15*e4b13e67SPatrick WilliamsAllowAllParametersOfDeclarationOnNextLine: false 16*e4b13e67SPatrick WilliamsAllowShortBlocksOnASingleLine: false 179e7627a5SPatrick WilliamsAllowShortCaseLabelsOnASingleLine: false 18*e4b13e67SPatrick WilliamsAllowShortFunctionsOnASingleLine: None 199565abd6SPatrick VentureAllowShortIfStatementsOnASingleLine: false 209565abd6SPatrick VentureAllowShortLoopsOnASingleLine: false 21*e4b13e67SPatrick WilliamsAlwaysBreakAfterDefinitionReturnType: None 22*e4b13e67SPatrick WilliamsAlwaysBreakAfterReturnType: None 23*e4b13e67SPatrick WilliamsAlwaysBreakBeforeMultilineStrings: false 24*e4b13e67SPatrick WilliamsAlwaysBreakTemplateDeclarations: false 25*e4b13e67SPatrick WilliamsBinPackArguments: true 26*e4b13e67SPatrick WilliamsBinPackParameters: true 27*e4b13e67SPatrick WilliamsBraceWrapping: 28*e4b13e67SPatrick Williams AfterClass: false 29*e4b13e67SPatrick Williams AfterControlStatement: false 30*e4b13e67SPatrick Williams AfterEnum: false 31*e4b13e67SPatrick Williams AfterFunction: true 32*e4b13e67SPatrick Williams AfterNamespace: true 33*e4b13e67SPatrick Williams AfterObjCDeclaration: false 34*e4b13e67SPatrick Williams AfterStruct: false 35*e4b13e67SPatrick Williams AfterUnion: false 36*e4b13e67SPatrick Williams #AfterExternBlock: false # Unknown to clang-format-5.0 37*e4b13e67SPatrick Williams BeforeCatch: false 38*e4b13e67SPatrick Williams BeforeElse: false 39*e4b13e67SPatrick Williams IndentBraces: false 40*e4b13e67SPatrick Williams #SplitEmptyFunction: true # Unknown to clang-format-4.0 41*e4b13e67SPatrick Williams #SplitEmptyRecord: true # Unknown to clang-format-4.0 42*e4b13e67SPatrick Williams #SplitEmptyNamespace: true # Unknown to clang-format-4.0 43*e4b13e67SPatrick WilliamsBreakAfterAttributes: Never 44*e4b13e67SPatrick WilliamsBreakBeforeBinaryOperators: None 45*e4b13e67SPatrick WilliamsBreakBeforeBraces: Custom 46*e4b13e67SPatrick Williams#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 47*e4b13e67SPatrick WilliamsBreakBeforeTernaryOperators: false 48*e4b13e67SPatrick WilliamsBreakConstructorInitializersBeforeComma: false 49*e4b13e67SPatrick Williams#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 50*e4b13e67SPatrick WilliamsBreakAfterJavaFieldAnnotations: false 51*e4b13e67SPatrick WilliamsBreakStringLiterals: false 52*e4b13e67SPatrick WilliamsColumnLimit: 80 53*e4b13e67SPatrick WilliamsCommentPragmas: '^ IWYU pragma:' 54*e4b13e67SPatrick Williams#CompactNamespaces: false # Unknown to clang-format-4.0 55*e4b13e67SPatrick WilliamsConstructorInitializerAllOnOneLineOrOnePerLine: false 56*e4b13e67SPatrick WilliamsConstructorInitializerIndentWidth: 8 57*e4b13e67SPatrick WilliamsContinuationIndentWidth: 8 58*e4b13e67SPatrick WilliamsCpp11BracedListStyle: false 59*e4b13e67SPatrick WilliamsDeriveLineEnding: false 60*e4b13e67SPatrick WilliamsDerivePointerAlignment: false 61*e4b13e67SPatrick WilliamsDisableFormat: false 62*e4b13e67SPatrick WilliamsExperimentalAutoDetectBinPacking: false 63*e4b13e67SPatrick Williams#FixNamespaceComments: false # Unknown to clang-format-4.0 64*e4b13e67SPatrick Williams#IncludeBlocks: Preserve # Unknown to clang-format-5.0 65*e4b13e67SPatrick WilliamsIncludeCategories: 66*e4b13e67SPatrick Williams - Regex: '.*' 67*e4b13e67SPatrick Williams Priority: 1 68*e4b13e67SPatrick WilliamsIncludeIsMainRegex: '(Test)?$' 699565abd6SPatrick VentureIndentCaseLabels: false 70*e4b13e67SPatrick WilliamsIndentExternBlock: NoIndent 71*e4b13e67SPatrick Williams#IndentPPDirectives: None # Unknown to clang-format-5.0 72*e4b13e67SPatrick WilliamsIndentWidth: 8 73*e4b13e67SPatrick WilliamsIndentWrappedFunctionNames: false 74*e4b13e67SPatrick WilliamsInsertNewlineAtEOF: true 75*e4b13e67SPatrick WilliamsJavaScriptQuotes: Leave 76*e4b13e67SPatrick WilliamsJavaScriptWrapImports: true 77*e4b13e67SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false 78*e4b13e67SPatrick WilliamsLineEnding: LF 79*e4b13e67SPatrick WilliamsMacroBlockBegin: '' 80*e4b13e67SPatrick WilliamsMacroBlockEnd: '' 81*e4b13e67SPatrick WilliamsMaxEmptyLinesToKeep: 1 82*e4b13e67SPatrick WilliamsNamespaceIndentation: Inner 83*e4b13e67SPatrick Williams#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 84*e4b13e67SPatrick WilliamsObjCBlockIndentWidth: 8 85*e4b13e67SPatrick WilliamsObjCSpaceAfterProperty: true 86*e4b13e67SPatrick WilliamsObjCSpaceBeforeProtocolList: true 87*e4b13e67SPatrick Williams 88*e4b13e67SPatrick Williams# Taken from git's rules 89*e4b13e67SPatrick WilliamsPenaltyBreakAssignment: 10 90*e4b13e67SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 30 91*e4b13e67SPatrick WilliamsPenaltyBreakComment: 10 92*e4b13e67SPatrick WilliamsPenaltyBreakFirstLessLess: 0 93*e4b13e67SPatrick WilliamsPenaltyBreakString: 10 94*e4b13e67SPatrick WilliamsPenaltyExcessCharacter: 100 95*e4b13e67SPatrick WilliamsPenaltyReturnTypeOnItsOwnLine: 60 96*e4b13e67SPatrick Williams 97*e4b13e67SPatrick WilliamsPointerAlignment: Right 98*e4b13e67SPatrick WilliamsReflowComments: false 99*e4b13e67SPatrick WilliamsSortIncludes: false 100*e4b13e67SPatrick Williams#SortUsingDeclarations: false # Unknown to clang-format-4.0 101*e4b13e67SPatrick WilliamsSpaceAfterCStyleCast: false 102*e4b13e67SPatrick WilliamsSpaceAfterTemplateKeyword: true 103*e4b13e67SPatrick WilliamsSpaceBeforeAssignmentOperators: true 104*e4b13e67SPatrick Williams#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 105*e4b13e67SPatrick Williams#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 106*e4b13e67SPatrick WilliamsSpaceBeforeParens: ControlStatements 107*e4b13e67SPatrick Williams#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 108*e4b13e67SPatrick WilliamsSpaceInEmptyParentheses: false 109*e4b13e67SPatrick WilliamsSpacesBeforeTrailingComments: 1 110*e4b13e67SPatrick WilliamsSpacesInAngles: false 111*e4b13e67SPatrick WilliamsSpacesInContainerLiterals: false 112*e4b13e67SPatrick WilliamsSpacesInCStyleCastParentheses: false 113*e4b13e67SPatrick WilliamsSpacesInParentheses: false 114*e4b13e67SPatrick WilliamsSpacesInSquareBrackets: false 115*e4b13e67SPatrick WilliamsStandard: Cpp03 116*e4b13e67SPatrick WilliamsTabWidth: 8 117*e4b13e67SPatrick WilliamsUseTab: Always 118*e4b13e67SPatrick Williams... 119