xref: /openbmc/kcsbridge/.clang-format (revision 4bf990ac)
1---
2Language:        Cpp
3# BasedOnStyle:  LLVM
4AccessModifierOffset: -2
5AlignAfterOpenBracket: Align
6AlignConsecutiveAssignments: false
7AlignConsecutiveDeclarations: false
8AlignEscapedNewlines: Right
9AlignOperands:  Align
10AlignTrailingComments:
11  Kind: Always
12  OverEmptyLines: 1
13AllowAllParametersOfDeclarationOnNextLine: true
14AllowShortBlocksOnASingleLine: Empty
15AllowShortCaseLabelsOnASingleLine: false
16AllowShortFunctionsOnASingleLine: Empty
17AllowShortIfStatementsOnASingleLine: Never
18AllowShortLambdasOnASingleLine: true
19AllowShortLoopsOnASingleLine: false
20AlwaysBreakAfterReturnType: None
21AlwaysBreakBeforeMultilineStrings: false
22AlwaysBreakTemplateDeclarations: Yes
23BinPackArguments: true
24BinPackParameters: true
25BitFieldColonSpacing: None
26BraceWrapping:
27  AfterCaseLabel:  true
28  AfterClass:      true
29  AfterControlStatement: true
30  AfterEnum:       true
31  AfterExternBlock: true
32  AfterFunction:   true
33  AfterNamespace:  true
34  AfterObjCDeclaration: true
35  AfterStruct:     true
36  AfterUnion:      true
37  BeforeCatch:     true
38  BeforeElse:      true
39  BeforeLambdaBody: false
40  BeforeWhile:     false
41  IndentBraces:    false
42  SplitEmptyFunction:   false
43  SplitEmptyRecord:     false
44  SplitEmptyNamespace:  false
45BreakAfterAttributes: Never
46BreakBeforeBinaryOperators: None
47BreakBeforeBraces: Custom
48BreakBeforeTernaryOperators: true
49BreakConstructorInitializers: AfterColon
50BreakInheritanceList: AfterColon
51BreakStringLiterals: false
52ColumnLimit:     80
53CommentPragmas:  '^ IWYU pragma:'
54CompactNamespaces: false
55ConstructorInitializerIndentWidth: 4
56ContinuationIndentWidth: 4
57Cpp11BracedListStyle: true
58DerivePointerAlignment: false
59DisableFormat:   false
60FixNamespaceComments: true
61ForEachMacros:
62  - foreach
63  - Q_FOREACH
64  - BOOST_FOREACH
65IncludeBlocks: Regroup
66IncludeCategories:
67  - Regex:           '^[<"](gtest|gmock)'
68    Priority:        7
69  - Regex:           '^"config.h"'
70    Priority:        -1
71  - Regex:           '^".*\.h"'
72    Priority:        1
73  - Regex:           '^".*\.hpp"'
74    Priority:        2
75  - Regex:           '^<.*\.h>'
76    Priority:        3
77  - Regex:           '^<.*\.hpp>'
78    Priority:        4
79  - Regex:           '^<.*'
80    Priority:        5
81  - Regex:           '.*'
82    Priority:        6
83IndentCaseLabels: true
84IndentExternBlock: NoIndent
85IndentRequiresClause: true
86IndentWidth:     4
87IndentWrappedFunctionNames: true
88InsertNewlineAtEOF: true
89KeepEmptyLinesAtTheStartOfBlocks: false
90LambdaBodyIndentation: Signature
91LineEnding: LF
92MacroBlockBegin: ''
93MacroBlockEnd:   ''
94MaxEmptyLinesToKeep: 1
95NamespaceIndentation: None
96ObjCBlockIndentWidth: 2
97ObjCSpaceAfterProperty: false
98ObjCSpaceBeforeProtocolList: true
99PackConstructorInitializers: BinPack
100PenaltyBreakAssignment: 25
101PenaltyBreakBeforeFirstCallParameter: 50
102PenaltyBreakComment: 300
103PenaltyBreakFirstLessLess: 120
104PenaltyBreakString: 1000
105PenaltyBreakTemplateDeclaration: 10
106PenaltyExcessCharacter: 1000000
107PenaltyReturnTypeOnItsOwnLine: 60
108PenaltyIndentedWhitespace: 1
109PointerAlignment: Left
110QualifierAlignment: Left
111ReferenceAlignment: Left
112ReflowComments:  true
113RequiresClausePosition: OwnLine
114RequiresExpressionIndentation: Keyword
115SortIncludes: CaseSensitive
116SortUsingDeclarations: true
117SpaceAfterCStyleCast: false
118SpaceAfterTemplateKeyword: true
119SpaceBeforeAssignmentOperators: true
120SpaceBeforeCpp11BracedList: false
121SpaceBeforeCtorInitializerColon: true
122SpaceBeforeInheritanceColon: true
123SpaceBeforeParens: ControlStatements
124SpaceBeforeRangeBasedForLoopColon: true
125SpaceInEmptyParentheses: false
126SpacesBeforeTrailingComments: 1
127SpacesInAngles: Never
128SpacesInContainerLiterals: true
129SpacesInCStyleCastParentheses: false
130SpacesInParentheses: false
131SpacesInSquareBrackets: false
132Standard:        Latest
133TabWidth:        4
134UseTab:          Never
135...
136
137