blob: 0683c55e98dec5ade6a79ec696b7a4f35ff3e8e6 [file] [log] [blame]
Lawrence Tange407b4c2022-07-21 13:54:01 +01001# SPDX-License-Identifier: GPL-2.0
2#
John Chung096597e2024-05-03 19:57:55 +08003# Originally from Linux v5.6
Lawrence Tange407b4c2022-07-21 13:54:01 +01004---
5AccessModifierOffset: -4
6AlignAfterOpenBracket: Align
John Chung096597e2024-05-03 19:57:55 +08007AlignConsecutiveMacros: true
Lawrence Tange407b4c2022-07-21 13:54:01 +01008AlignConsecutiveAssignments: false
9AlignConsecutiveDeclarations: false
John Chung096597e2024-05-03 19:57:55 +080010#AlignEscapedNewlines: Left # Unknown to clang-format-4.0
11AlignOperands: Align
12AlignTrailingComments:
13 Kind: Always
14 OverEmptyLines: 1
Lawrence Tange407b4c2022-07-21 13:54:01 +010015AllowAllParametersOfDeclarationOnNextLine: false
16AllowShortBlocksOnASingleLine: false
17AllowShortCaseLabelsOnASingleLine: false
18AllowShortFunctionsOnASingleLine: None
19AllowShortIfStatementsOnASingleLine: false
20AllowShortLoopsOnASingleLine: false
21AlwaysBreakAfterDefinitionReturnType: None
22AlwaysBreakAfterReturnType: None
23AlwaysBreakBeforeMultilineStrings: false
24AlwaysBreakTemplateDeclarations: false
25BinPackArguments: true
26BinPackParameters: true
27BraceWrapping:
28 AfterClass: false
29 AfterControlStatement: false
30 AfterEnum: false
31 AfterFunction: true
32 AfterNamespace: true
33 AfterObjCDeclaration: false
34 AfterStruct: false
35 AfterUnion: false
John Chung096597e2024-05-03 19:57:55 +080036 #AfterExternBlock: false # Unknown to clang-format-5.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010037 BeforeCatch: false
38 BeforeElse: false
39 IndentBraces: false
John Chung096597e2024-05-03 19:57:55 +080040 #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
43BreakAfterAttributes: Never
Lawrence Tange407b4c2022-07-21 13:54:01 +010044BreakBeforeBinaryOperators: None
45BreakBeforeBraces: Custom
John Chung096597e2024-05-03 19:57:55 +080046#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010047BreakBeforeTernaryOperators: false
48BreakConstructorInitializersBeforeComma: false
John Chung096597e2024-05-03 19:57:55 +080049#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010050BreakAfterJavaFieldAnnotations: false
51BreakStringLiterals: false
52ColumnLimit: 80
53CommentPragmas: '^ IWYU pragma:'
John Chung096597e2024-05-03 19:57:55 +080054#CompactNamespaces: false # Unknown to clang-format-4.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010055ConstructorInitializerAllOnOneLineOrOnePerLine: false
56ConstructorInitializerIndentWidth: 8
57ContinuationIndentWidth: 8
58Cpp11BracedListStyle: false
John Chung096597e2024-05-03 19:57:55 +080059DeriveLineEnding: false
Lawrence Tange407b4c2022-07-21 13:54:01 +010060DerivePointerAlignment: false
61DisableFormat: false
62ExperimentalAutoDetectBinPacking: false
John Chung096597e2024-05-03 19:57:55 +080063#FixNamespaceComments: false # Unknown to clang-format-4.0
64#IncludeBlocks: Preserve # Unknown to clang-format-5.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010065IncludeCategories:
66 - Regex: '.*'
67 Priority: 1
68IncludeIsMainRegex: '(Test)?$'
69IndentCaseLabels: false
John Chung096597e2024-05-03 19:57:55 +080070IndentExternBlock: NoIndent
71#IndentPPDirectives: None # Unknown to clang-format-5.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010072IndentWidth: 8
73IndentWrappedFunctionNames: false
John Chung096597e2024-05-03 19:57:55 +080074InsertNewlineAtEOF: true
Lawrence Tange407b4c2022-07-21 13:54:01 +010075JavaScriptQuotes: Leave
76JavaScriptWrapImports: true
77KeepEmptyLinesAtTheStartOfBlocks: false
John Chung096597e2024-05-03 19:57:55 +080078LineEnding: LF
Lawrence Tange407b4c2022-07-21 13:54:01 +010079MacroBlockBegin: ''
80MacroBlockEnd: ''
81MaxEmptyLinesToKeep: 1
John Chung096597e2024-05-03 19:57:55 +080082NamespaceIndentation: Inner
83#ObjCBinPackProtocolList: Auto # Unknown to clang-format-5.0
Lawrence Tange407b4c2022-07-21 13:54:01 +010084ObjCBlockIndentWidth: 8
85ObjCSpaceAfterProperty: true
86ObjCSpaceBeforeProtocolList: true
87
88# Taken from git's rules
89PenaltyBreakAssignment: 10
90PenaltyBreakBeforeFirstCallParameter: 30
91PenaltyBreakComment: 10
92PenaltyBreakFirstLessLess: 0
93PenaltyBreakString: 10
94PenaltyExcessCharacter: 100
95PenaltyReturnTypeOnItsOwnLine: 60
96
97PointerAlignment: Right
98ReflowComments: false
99SortIncludes: false
John Chung096597e2024-05-03 19:57:55 +0800100#SortUsingDeclarations: false # Unknown to clang-format-4.0
Lawrence Tange407b4c2022-07-21 13:54:01 +0100101SpaceAfterCStyleCast: false
102SpaceAfterTemplateKeyword: true
103SpaceBeforeAssignmentOperators: true
John Chung096597e2024-05-03 19:57:55 +0800104#SpaceBeforeCtorInitializerColon: true # Unknown to clang-format-5.0
105#SpaceBeforeInheritanceColon: true # Unknown to clang-format-5.0
106SpaceBeforeParens: ControlStatements
107#SpaceBeforeRangeBasedForLoopColon: true # Unknown to clang-format-5.0
Lawrence Tange407b4c2022-07-21 13:54:01 +0100108SpaceInEmptyParentheses: false
109SpacesBeforeTrailingComments: 1
110SpacesInAngles: false
111SpacesInContainerLiterals: false
112SpacesInCStyleCastParentheses: false
113SpacesInParentheses: false
114SpacesInSquareBrackets: false
115Standard: Cpp03
116TabWidth: 8
117UseTab: Always
118...