xref: /openbmc/phosphor-ipmi-blobs/.clang-format (revision 5250957212ebf851d49df046acd6416a0d17c749)
1ef3aeadcSPatrick Venture---
2ef3aeadcSPatrick VentureLanguage:        Cpp
3ef3aeadcSPatrick Venture# BasedOnStyle:  LLVM
4ef3aeadcSPatrick VentureAccessModifierOffset: -2
5ef3aeadcSPatrick VentureAlignAfterOpenBracket: Align
6ef3aeadcSPatrick VentureAlignConsecutiveAssignments: false
7ef3aeadcSPatrick VentureAlignConsecutiveDeclarations: false
8*52509572SPatrick WilliamsAlignEscapedNewlines: Right
9*52509572SPatrick WilliamsAlignOperands:  Align
10*52509572SPatrick WilliamsAlignTrailingComments:
11*52509572SPatrick Williams  Kind: Always
12*52509572SPatrick Williams  OverEmptyLines: 1
13ef3aeadcSPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14*52509572SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15ef3aeadcSPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16*52509572SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17ef3aeadcSPatrick VentureAllowShortIfStatementsOnASingleLine: false
18ef3aeadcSPatrick VentureAllowShortLoopsOnASingleLine: false
19ef3aeadcSPatrick VentureAlwaysBreakAfterReturnType: None
20ef3aeadcSPatrick VentureAlwaysBreakBeforeMultilineStrings: false
21*52509572SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
22ef3aeadcSPatrick VentureBinPackArguments: true
23ef3aeadcSPatrick VentureBinPackParameters: true
24ef3aeadcSPatrick VentureBraceWrapping:
25*52509572SPatrick Williams  AfterCaseLabel:  true
26ef3aeadcSPatrick Venture  AfterClass:      true
27ef3aeadcSPatrick Venture  AfterControlStatement: true
28ef3aeadcSPatrick Venture  AfterEnum:       true
29ef3aeadcSPatrick Venture  AfterFunction:   true
30ef3aeadcSPatrick Venture  AfterNamespace:  true
31ef3aeadcSPatrick Venture  AfterObjCDeclaration: true
32ef3aeadcSPatrick Venture  AfterStruct:     true
33ef3aeadcSPatrick Venture  AfterUnion:      true
34*52509572SPatrick Williams  AfterExternBlock: true
35ef3aeadcSPatrick Venture  BeforeCatch:     true
36ef3aeadcSPatrick Venture  BeforeElse:      true
37ef3aeadcSPatrick Venture  IndentBraces:    false
38*52509572SPatrick Williams  SplitEmptyFunction:   false
39*52509572SPatrick Williams  SplitEmptyRecord:     false
40*52509572SPatrick Williams  SplitEmptyNamespace:  false
41*52509572SPatrick WilliamsBreakAfterAttributes: Never
42ef3aeadcSPatrick VentureBreakBeforeBinaryOperators: None
43ef3aeadcSPatrick VentureBreakBeforeBraces: Custom
44ef3aeadcSPatrick VentureBreakBeforeTernaryOperators: true
45ef3aeadcSPatrick VentureBreakConstructorInitializers: AfterColon
46*52509572SPatrick WilliamsBreakInheritanceList: AfterColon
47*52509572SPatrick WilliamsBreakStringLiterals: false
48ef3aeadcSPatrick VentureColumnLimit:     80
49ef3aeadcSPatrick VentureCommentPragmas:  '^ IWYU pragma:'
50*52509572SPatrick WilliamsCompactNamespaces: false
51ef3aeadcSPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
52ef3aeadcSPatrick VentureConstructorInitializerIndentWidth: 4
53ef3aeadcSPatrick VentureContinuationIndentWidth: 4
54ef3aeadcSPatrick VentureCpp11BracedListStyle: true
55*52509572SPatrick WilliamsDeriveLineEnding: false
56ef3aeadcSPatrick VentureDerivePointerAlignment: false
57ef3aeadcSPatrick VenturePointerAlignment: Left
58ef3aeadcSPatrick VentureDisableFormat:   false
59ef3aeadcSPatrick VentureExperimentalAutoDetectBinPacking: false
60ef3aeadcSPatrick VentureFixNamespaceComments: true
61ef3aeadcSPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62ef3aeadcSPatrick VentureIncludeBlocks: Regroup
63ef3aeadcSPatrick VentureIncludeCategories:
64ef3aeadcSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
65*52509572SPatrick Williams    Priority:        7
66ef3aeadcSPatrick Venture  - Regex:           '^"config.h"'
67ef3aeadcSPatrick Venture    Priority:        -1
68*52509572SPatrick Williams  - Regex:           '^".*\.h"'
69ef3aeadcSPatrick Venture    Priority:        1
70*52509572SPatrick Williams  - Regex:           '^".*\.hpp"'
71ef3aeadcSPatrick Venture    Priority:        2
72*52509572SPatrick Williams  - Regex:           '^<.*\.h>'
73ef3aeadcSPatrick Venture    Priority:        3
74*52509572SPatrick Williams  - Regex:           '^<.*\.hpp>'
75ef3aeadcSPatrick Venture    Priority:        4
76*52509572SPatrick Williams  - Regex:           '^<.*'
77*52509572SPatrick Williams    Priority:        5
78*52509572SPatrick Williams  - Regex:           '.*'
79*52509572SPatrick Williams    Priority:        6
80ef3aeadcSPatrick VentureIndentCaseLabels: true
81*52509572SPatrick WilliamsIndentRequiresClause: true
82ef3aeadcSPatrick VentureIndentWidth:     4
83ef3aeadcSPatrick VentureIndentWrappedFunctionNames: true
84*52509572SPatrick WilliamsInsertNewlineAtEOF: true
85*52509572SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*52509572SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*52509572SPatrick WilliamsLineEnding: LF
88ef3aeadcSPatrick VentureMacroBlockBegin: ''
89ef3aeadcSPatrick VentureMacroBlockEnd:   ''
90ef3aeadcSPatrick VentureMaxEmptyLinesToKeep: 1
91ef3aeadcSPatrick VentureNamespaceIndentation: None
92ef3aeadcSPatrick VentureObjCBlockIndentWidth: 2
93ef3aeadcSPatrick VentureObjCSpaceAfterProperty: false
94ef3aeadcSPatrick VentureObjCSpaceBeforeProtocolList: true
95*52509572SPatrick WilliamsPenaltyBreakAssignment: 25
96ef3aeadcSPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
97ef3aeadcSPatrick VenturePenaltyBreakComment: 300
98ef3aeadcSPatrick VenturePenaltyBreakFirstLessLess: 120
99ef3aeadcSPatrick VenturePenaltyBreakString: 1000
100ef3aeadcSPatrick VenturePenaltyExcessCharacter: 1000000
101ef3aeadcSPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
102*52509572SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*52509572SPatrick WilliamsQualifierAlignment: Left
104*52509572SPatrick WilliamsReferenceAlignment: Left
105ef3aeadcSPatrick VentureReflowComments:  true
106*52509572SPatrick WilliamsRequiresClausePosition: OwnLine
107*52509572SPatrick WilliamsRequiresExpressionIndentation: Keyword
108ef3aeadcSPatrick VentureSortIncludes:    true
109ef3aeadcSPatrick VentureSortUsingDeclarations: true
110ef3aeadcSPatrick VentureSpaceAfterCStyleCast: false
111*52509572SPatrick WilliamsSpaceAfterTemplateKeyword: true
112ef3aeadcSPatrick VentureSpaceBeforeAssignmentOperators: true
113*52509572SPatrick WilliamsSpaceBeforeCpp11BracedList: false
114*52509572SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
115*52509572SPatrick WilliamsSpaceBeforeInheritanceColon: true
116ef3aeadcSPatrick VentureSpaceBeforeParens: ControlStatements
117*52509572SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
118ef3aeadcSPatrick VentureSpaceInEmptyParentheses: false
119ef3aeadcSPatrick VentureSpacesBeforeTrailingComments: 1
120ef3aeadcSPatrick VentureSpacesInAngles:  false
121ef3aeadcSPatrick VentureSpacesInContainerLiterals: true
122ef3aeadcSPatrick VentureSpacesInCStyleCastParentheses: false
123ef3aeadcSPatrick VentureSpacesInParentheses: false
124ef3aeadcSPatrick VentureSpacesInSquareBrackets: false
125*52509572SPatrick WilliamsStandard:        Latest
126ef3aeadcSPatrick VentureTabWidth:        4
127ef3aeadcSPatrick VentureUseTab:          Never
128ef3aeadcSPatrick Venture...
129ef3aeadcSPatrick Venture
130