Andrew Jeffery | 37dd6a3 | 2023-05-12 16:04:06 +0930 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Originally from Linux v5.6 |
| 4 | --- |
| 5 | AccessModifierOffset: -4 |
| 6 | AlignAfterOpenBracket: Align |
| 7 | AlignConsecutiveMacros: true |
| 8 | AlignConsecutiveAssignments: false |
| 9 | AlignConsecutiveDeclarations: false |
| 10 | #AlignEscapedNewlines: Left # Unknown to clang-format-4.0 |
| 11 | AlignOperands: Align |
| 12 | AlignTrailingComments: |
| 13 | Kind: Always |
| 14 | OverEmptyLines: 1 |
| 15 | AllowAllParametersOfDeclarationOnNextLine: false |
| 16 | AllowShortBlocksOnASingleLine: false |
Andrew Jeffery | 79bdeac | 2023-04-05 18:57:02 +0930 | [diff] [blame] | 17 | AllowShortCaseLabelsOnASingleLine: false |
Andrew Jeffery | 37dd6a3 | 2023-05-12 16:04:06 +0930 | [diff] [blame] | 18 | AllowShortFunctionsOnASingleLine: None |
Andrew Jeffery | 9c76679 | 2022-08-10 23:12:49 +0930 | [diff] [blame] | 19 | AllowShortIfStatementsOnASingleLine: false |
Andrew Jeffery | 79bdeac | 2023-04-05 18:57:02 +0930 | [diff] [blame] | 20 | AllowShortLoopsOnASingleLine: false |
Andrew Jeffery | 37dd6a3 | 2023-05-12 16:04:06 +0930 | [diff] [blame] | 21 | AlwaysBreakAfterDefinitionReturnType: None |
| 22 | AlwaysBreakAfterReturnType: None |
| 23 | AlwaysBreakBeforeMultilineStrings: false |
| 24 | AlwaysBreakTemplateDeclarations: false |
| 25 | BinPackArguments: true |
| 26 | BinPackParameters: true |
| 27 | BraceWrapping: |
| 28 | AfterClass: false |
| 29 | AfterControlStatement: false |
| 30 | AfterEnum: false |
| 31 | AfterFunction: true |
| 32 | AfterNamespace: true |
| 33 | AfterObjCDeclaration: false |
| 34 | AfterStruct: false |
| 35 | AfterUnion: false |
| 36 | #AfterExternBlock: false # Unknown to clang-format-5.0 |
| 37 | BeforeCatch: false |
| 38 | BeforeElse: false |
| 39 | IndentBraces: false |
| 40 | #SplitEmptyFunction: true # Unknown to clang-format-4.0 |
| 41 | #SplitEmptyRecord: true # Unknown to clang-format-4.0 |
| 42 | #SplitEmptyNamespace: true # Unknown to clang-format-4.0 |
| 43 | BreakAfterAttributes: Never |
| 44 | BreakBeforeBinaryOperators: None |
| 45 | BreakBeforeBraces: Custom |
| 46 | #BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0 |
| 47 | BreakBeforeTernaryOperators: false |
| 48 | BreakConstructorInitializersBeforeComma: false |
| 49 | #BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0 |
| 50 | BreakAfterJavaFieldAnnotations: false |
| 51 | BreakStringLiterals: false |
| 52 | ColumnLimit: 80 |
| 53 | CommentPragmas: '^ IWYU pragma:' |
| 54 | #CompactNamespaces: false # Unknown to clang-format-4.0 |
| 55 | ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 56 | ConstructorInitializerIndentWidth: 8 |
| 57 | ContinuationIndentWidth: 8 |
| 58 | Cpp11BracedListStyle: false |
| 59 | DeriveLineEnding: false |
| 60 | DerivePointerAlignment: false |
| 61 | DisableFormat: false |
| 62 | ExperimentalAutoDetectBinPacking: false |
| 63 | #FixNamespaceComments: false # Unknown to clang-format-4.0 |
| 64 | #IncludeBlocks: Preserve # Unknown to clang-format-5.0 |
| 65 | IncludeCategories: |
| 66 | - Regex: '.*' |
| 67 | Priority: 1 |
| 68 | IncludeIsMainRegex: '(Test)?$' |
Andrew Jeffery | 9c76679 | 2022-08-10 23:12:49 +0930 | [diff] [blame] | 69 | IndentCaseLabels: false |
Patrick Williams | c0b5a6e | 2023-10-20 11:20:16 -0500 | [diff] [blame^] | 70 | IndentExternBlock: NoIndent |
Andrew Jeffery | 37dd6a3 | 2023-05-12 16:04:06 +0930 | [diff] [blame] | 71 | #IndentPPDirectives: None # Unknown to clang-format-5.0 |
| 72 | IndentWidth: 8 |
| 73 | IndentWrappedFunctionNames: false |
| 74 | InsertNewlineAtEOF: true |
| 75 | JavaScriptQuotes: Leave |
| 76 | JavaScriptWrapImports: true |
| 77 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 78 | LineEnding: LF |
| 79 | MacroBlockBegin: '' |
| 80 | MacroBlockEnd: '' |
| 81 | MaxEmptyLinesToKeep: 1 |
| 82 | NamespaceIndentation: Inner |
| 83 | #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 |
| 84 | ObjCBlockIndentWidth: 8 |
| 85 | ObjCSpaceAfterProperty: true |
| 86 | ObjCSpaceBeforeProtocolList: true |
| 87 | |
| 88 | # Taken from git's rules |
| 89 | PenaltyBreakAssignment: 10 |
| 90 | PenaltyBreakBeforeFirstCallParameter: 30 |
| 91 | PenaltyBreakComment: 10 |
| 92 | PenaltyBreakFirstLessLess: 0 |
| 93 | PenaltyBreakString: 10 |
| 94 | PenaltyExcessCharacter: 100 |
| 95 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 96 | |
| 97 | PointerAlignment: Right |
| 98 | ReflowComments: false |
| 99 | SortIncludes: false |
| 100 | #SortUsingDeclarations: false # Unknown to clang-format-4.0 |
| 101 | SpaceAfterCStyleCast: false |
| 102 | SpaceAfterTemplateKeyword: true |
| 103 | SpaceBeforeAssignmentOperators: true |
| 104 | #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 |
| 105 | #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 |
| 106 | SpaceBeforeParens: ControlStatements |
| 107 | #SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 |
| 108 | SpaceInEmptyParentheses: false |
| 109 | SpacesBeforeTrailingComments: 1 |
| 110 | SpacesInAngles: false |
| 111 | SpacesInContainerLiterals: false |
| 112 | SpacesInCStyleCastParentheses: false |
| 113 | SpacesInParentheses: false |
| 114 | SpacesInSquareBrackets: false |
| 115 | Standard: Cpp03 |
| 116 | TabWidth: 8 |
| 117 | UseTab: Always |
| 118 | ... |