137dd6a3dSAndrew Jeffery# SPDX-License-Identifier: GPL-2.0 237dd6a3dSAndrew Jeffery# 337dd6a3dSAndrew Jeffery# Originally from Linux v5.6 437dd6a3dSAndrew Jeffery--- 537dd6a3dSAndrew JefferyAccessModifierOffset: -4 637dd6a3dSAndrew JefferyAlignAfterOpenBracket: Align 737dd6a3dSAndrew JefferyAlignConsecutiveMacros: true 837dd6a3dSAndrew JefferyAlignConsecutiveAssignments: false 937dd6a3dSAndrew JefferyAlignConsecutiveDeclarations: false 1037dd6a3dSAndrew Jeffery#AlignEscapedNewlines: Left # Unknown to clang-format-4.0 1137dd6a3dSAndrew JefferyAlignOperands: Align 1237dd6a3dSAndrew JefferyAlignTrailingComments: 1337dd6a3dSAndrew Jeffery Kind: Always 1437dd6a3dSAndrew Jeffery OverEmptyLines: 1 1537dd6a3dSAndrew JefferyAllowAllParametersOfDeclarationOnNextLine: false 1637dd6a3dSAndrew JefferyAllowShortBlocksOnASingleLine: false 1779bdeacfSAndrew JefferyAllowShortCaseLabelsOnASingleLine: false 1837dd6a3dSAndrew JefferyAllowShortFunctionsOnASingleLine: None 199c766792SAndrew JefferyAllowShortIfStatementsOnASingleLine: false 2079bdeacfSAndrew JefferyAllowShortLoopsOnASingleLine: false 2137dd6a3dSAndrew JefferyAlwaysBreakAfterDefinitionReturnType: None 2237dd6a3dSAndrew JefferyAlwaysBreakAfterReturnType: None 2337dd6a3dSAndrew JefferyAlwaysBreakBeforeMultilineStrings: false 2437dd6a3dSAndrew JefferyAlwaysBreakTemplateDeclarations: false 2537dd6a3dSAndrew JefferyBinPackArguments: true 2637dd6a3dSAndrew JefferyBinPackParameters: true 2737dd6a3dSAndrew JefferyBraceWrapping: 2837dd6a3dSAndrew Jeffery AfterClass: false 2937dd6a3dSAndrew Jeffery AfterControlStatement: false 3037dd6a3dSAndrew Jeffery AfterEnum: false 3137dd6a3dSAndrew Jeffery AfterFunction: true 3237dd6a3dSAndrew Jeffery AfterNamespace: true 3337dd6a3dSAndrew Jeffery AfterObjCDeclaration: false 3437dd6a3dSAndrew Jeffery AfterStruct: false 3537dd6a3dSAndrew Jeffery AfterUnion: false 3637dd6a3dSAndrew Jeffery #AfterExternBlock: false # Unknown to clang-format-5.0 3737dd6a3dSAndrew Jeffery BeforeCatch: false 3837dd6a3dSAndrew Jeffery BeforeElse: false 3937dd6a3dSAndrew Jeffery IndentBraces: false 4037dd6a3dSAndrew Jeffery #SplitEmptyFunction: true # Unknown to clang-format-4.0 4137dd6a3dSAndrew Jeffery #SplitEmptyRecord: true # Unknown to clang-format-4.0 4237dd6a3dSAndrew Jeffery #SplitEmptyNamespace: true # Unknown to clang-format-4.0 4337dd6a3dSAndrew JefferyBreakAfterAttributes: Never 4437dd6a3dSAndrew JefferyBreakBeforeBinaryOperators: None 4537dd6a3dSAndrew JefferyBreakBeforeBraces: Custom 4637dd6a3dSAndrew Jeffery#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 4737dd6a3dSAndrew JefferyBreakBeforeTernaryOperators: false 4837dd6a3dSAndrew JefferyBreakConstructorInitializersBeforeComma: false 4937dd6a3dSAndrew Jeffery#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 5037dd6a3dSAndrew JefferyBreakAfterJavaFieldAnnotations: false 5137dd6a3dSAndrew JefferyBreakStringLiterals: false 5237dd6a3dSAndrew JefferyColumnLimit: 80 5337dd6a3dSAndrew JefferyCommentPragmas: '^ IWYU pragma:' 5437dd6a3dSAndrew Jeffery#CompactNamespaces: false # Unknown to clang-format-4.0 5537dd6a3dSAndrew JefferyConstructorInitializerAllOnOneLineOrOnePerLine: false 5637dd6a3dSAndrew JefferyConstructorInitializerIndentWidth: 8 5737dd6a3dSAndrew JefferyContinuationIndentWidth: 8 5837dd6a3dSAndrew JefferyCpp11BracedListStyle: false 5937dd6a3dSAndrew JefferyDeriveLineEnding: false 6037dd6a3dSAndrew JefferyDerivePointerAlignment: false 6137dd6a3dSAndrew JefferyDisableFormat: false 6237dd6a3dSAndrew JefferyExperimentalAutoDetectBinPacking: false 6337dd6a3dSAndrew Jeffery#FixNamespaceComments: false # Unknown to clang-format-4.0 6437dd6a3dSAndrew Jeffery#IncludeBlocks: Preserve # Unknown to clang-format-5.0 6537dd6a3dSAndrew JefferyIncludeCategories: 6637dd6a3dSAndrew Jeffery - Regex: '.*' 6737dd6a3dSAndrew Jeffery Priority: 1 6837dd6a3dSAndrew JefferyIncludeIsMainRegex: '(Test)?$' 699c766792SAndrew JefferyIndentCaseLabels: false 70*c0b5a6ebSPatrick WilliamsIndentExternBlock: NoIndent 7137dd6a3dSAndrew Jeffery#IndentPPDirectives: None # Unknown to clang-format-5.0 7237dd6a3dSAndrew JefferyIndentWidth: 8 7337dd6a3dSAndrew JefferyIndentWrappedFunctionNames: false 7437dd6a3dSAndrew JefferyInsertNewlineAtEOF: true 7537dd6a3dSAndrew JefferyJavaScriptQuotes: Leave 7637dd6a3dSAndrew JefferyJavaScriptWrapImports: true 7737dd6a3dSAndrew JefferyKeepEmptyLinesAtTheStartOfBlocks: false 7837dd6a3dSAndrew JefferyLineEnding: LF 7937dd6a3dSAndrew JefferyMacroBlockBegin: '' 8037dd6a3dSAndrew JefferyMacroBlockEnd: '' 8137dd6a3dSAndrew JefferyMaxEmptyLinesToKeep: 1 8237dd6a3dSAndrew JefferyNamespaceIndentation: Inner 8337dd6a3dSAndrew Jeffery#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 8437dd6a3dSAndrew JefferyObjCBlockIndentWidth: 8 8537dd6a3dSAndrew JefferyObjCSpaceAfterProperty: true 8637dd6a3dSAndrew JefferyObjCSpaceBeforeProtocolList: true 8737dd6a3dSAndrew Jeffery 8837dd6a3dSAndrew Jeffery# Taken from git's rules 8937dd6a3dSAndrew JefferyPenaltyBreakAssignment: 10 9037dd6a3dSAndrew JefferyPenaltyBreakBeforeFirstCallParameter: 30 9137dd6a3dSAndrew JefferyPenaltyBreakComment: 10 9237dd6a3dSAndrew JefferyPenaltyBreakFirstLessLess: 0 9337dd6a3dSAndrew JefferyPenaltyBreakString: 10 9437dd6a3dSAndrew JefferyPenaltyExcessCharacter: 100 9537dd6a3dSAndrew JefferyPenaltyReturnTypeOnItsOwnLine: 60 9637dd6a3dSAndrew Jeffery 9737dd6a3dSAndrew JefferyPointerAlignment: Right 9837dd6a3dSAndrew JefferyReflowComments: false 9937dd6a3dSAndrew JefferySortIncludes: false 10037dd6a3dSAndrew Jeffery#SortUsingDeclarations: false # Unknown to clang-format-4.0 10137dd6a3dSAndrew JefferySpaceAfterCStyleCast: false 10237dd6a3dSAndrew JefferySpaceAfterTemplateKeyword: true 10337dd6a3dSAndrew JefferySpaceBeforeAssignmentOperators: true 10437dd6a3dSAndrew Jeffery#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 10537dd6a3dSAndrew Jeffery#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 10637dd6a3dSAndrew JefferySpaceBeforeParens: ControlStatements 10737dd6a3dSAndrew Jeffery#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 10837dd6a3dSAndrew JefferySpaceInEmptyParentheses: false 10937dd6a3dSAndrew JefferySpacesBeforeTrailingComments: 1 11037dd6a3dSAndrew JefferySpacesInAngles: false 11137dd6a3dSAndrew JefferySpacesInContainerLiterals: false 11237dd6a3dSAndrew JefferySpacesInCStyleCastParentheses: false 11337dd6a3dSAndrew JefferySpacesInParentheses: false 11437dd6a3dSAndrew JefferySpacesInSquareBrackets: false 11537dd6a3dSAndrew JefferyStandard: Cpp03 11637dd6a3dSAndrew JefferyTabWidth: 8 11737dd6a3dSAndrew JefferyUseTab: Always 11837dd6a3dSAndrew Jeffery... 119