Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # |
| 3 | # Originally from Linux v5.6 |
| 4 | --- |
| 5 | AccessModifierOffset: -4 |
| 6 | AlignAfterOpenBracket: Align |
Andrew Jeffery | 8737538 | 2020-06-19 17:20:17 +0930 | [diff] [blame] | 7 | AlignConsecutiveMacros: true |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 8 | AlignConsecutiveAssignments: false |
| 9 | AlignConsecutiveDeclarations: false |
| 10 | #AlignEscapedNewlines: Left # Unknown to clang-format-4.0 |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 11 | AlignOperands: Align |
| 12 | AlignTrailingComments: |
| 13 | Kind: Always |
| 14 | OverEmptyLines: 1 |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 15 | AllowAllParametersOfDeclarationOnNextLine: false |
| 16 | AllowShortBlocksOnASingleLine: false |
| 17 | AllowShortCaseLabelsOnASingleLine: false |
| 18 | AllowShortFunctionsOnASingleLine: None |
| 19 | AllowShortIfStatementsOnASingleLine: false |
| 20 | AllowShortLoopsOnASingleLine: false |
| 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 |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 43 | BreakAfterAttributes: Never |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 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 |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 59 | DeriveLineEnding: false |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 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)?$' |
| 69 | IndentCaseLabels: false |
| 70 | #IndentPPDirectives: None # Unknown to clang-format-5.0 |
| 71 | IndentWidth: 8 |
| 72 | IndentWrappedFunctionNames: false |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 73 | InsertNewlineAtEOF: true |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 74 | JavaScriptQuotes: Leave |
| 75 | JavaScriptWrapImports: true |
| 76 | KeepEmptyLinesAtTheStartOfBlocks: false |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 77 | LineEnding: LF |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 78 | MacroBlockBegin: '' |
| 79 | MacroBlockEnd: '' |
| 80 | MaxEmptyLinesToKeep: 1 |
| 81 | NamespaceIndentation: Inner |
| 82 | #ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0 |
| 83 | ObjCBlockIndentWidth: 8 |
| 84 | ObjCSpaceAfterProperty: true |
| 85 | ObjCSpaceBeforeProtocolList: true |
| 86 | |
| 87 | # Taken from git's rules |
Andrew Jeffery | 7f7fdc1 | 2023-05-12 15:56:47 +0930 | [diff] [blame] | 88 | PenaltyBreakAssignment: 10 |
Andrew Jeffery | 9d9a391 | 2020-04-01 22:50:23 +1030 | [diff] [blame] | 89 | PenaltyBreakBeforeFirstCallParameter: 30 |
| 90 | PenaltyBreakComment: 10 |
| 91 | PenaltyBreakFirstLessLess: 0 |
| 92 | PenaltyBreakString: 10 |
| 93 | PenaltyExcessCharacter: 100 |
| 94 | PenaltyReturnTypeOnItsOwnLine: 60 |
| 95 | |
| 96 | PointerAlignment: Right |
| 97 | ReflowComments: false |
| 98 | SortIncludes: false |
| 99 | #SortUsingDeclarations: false # Unknown to clang-format-4.0 |
| 100 | SpaceAfterCStyleCast: false |
| 101 | SpaceAfterTemplateKeyword: true |
| 102 | SpaceBeforeAssignmentOperators: true |
| 103 | #SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0 |
| 104 | #SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0 |
| 105 | SpaceBeforeParens: ControlStatements |
| 106 | #SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0 |
| 107 | SpaceInEmptyParentheses: false |
| 108 | SpacesBeforeTrailingComments: 1 |
| 109 | SpacesInAngles: false |
| 110 | SpacesInContainerLiterals: false |
| 111 | SpacesInCStyleCastParentheses: false |
| 112 | SpacesInParentheses: false |
| 113 | SpacesInSquareBrackets: false |
| 114 | Standard: Cpp03 |
| 115 | TabWidth: 8 |
| 116 | UseTab: Always |
| 117 | ... |