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 |
Andrew Jeffery | 37dd6a3 | 2023-05-12 16:04:06 +0930 | [diff] [blame] | 70 | #IndentPPDirectives: None # Unknown to clang-format-5.0 |
| 71 | IndentWidth: 8 |
| 72 | IndentWrappedFunctionNames: false |
| 73 | InsertNewlineAtEOF: true |
| 74 | JavaScriptQuotes: Leave |
| 75 | JavaScriptWrapImports: true |
| 76 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 77 | LineEnding: LF |
| 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 |
| 88 | PenaltyBreakAssignment: 10 |
| 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 | ... |