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