xref: /openbmc/fb-ipmi-oem/.clang-format (revision 010dee04)
1e7d23d0eSVijay Khemka---
2e7d23d0eSVijay KhemkaLanguage:        Cpp
3e7d23d0eSVijay Khemka# BasedOnStyle:  LLVM
4e7d23d0eSVijay KhemkaAccessModifierOffset: -2
5e7d23d0eSVijay KhemkaAlignAfterOpenBracket: Align
6e7d23d0eSVijay KhemkaAlignConsecutiveAssignments: false
7e7d23d0eSVijay KhemkaAlignConsecutiveDeclarations: false
8d1194024SVijay KhemkaAlignEscapedNewlines: Right
92405ae98SPatrick WilliamsAlignOperands:  Align
102405ae98SPatrick WilliamsAlignTrailingComments:
112405ae98SPatrick Williams  Kind: Always
122405ae98SPatrick Williams  OverEmptyLines: 1
13e7d23d0eSVijay KhemkaAllowAllParametersOfDeclarationOnNextLine: true
142405ae98SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15e7d23d0eSVijay KhemkaAllowShortCaseLabelsOnASingleLine: false
162405ae98SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
178fe3a447SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
188fe3a447SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19e7d23d0eSVijay KhemkaAllowShortLoopsOnASingleLine: false
20e7d23d0eSVijay KhemkaAlwaysBreakAfterReturnType: None
21e7d23d0eSVijay KhemkaAlwaysBreakBeforeMultilineStrings: false
22d1194024SVijay KhemkaAlwaysBreakTemplateDeclarations: Yes
23e7d23d0eSVijay KhemkaBinPackArguments: true
24e7d23d0eSVijay KhemkaBinPackParameters: true
258fe3a447SPatrick WilliamsBitFieldColonSpacing: None
26e7d23d0eSVijay KhemkaBraceWrapping:
27d1194024SVijay Khemka  AfterCaseLabel:  true
28e7d23d0eSVijay Khemka  AfterClass:      true
29e7d23d0eSVijay Khemka  AfterControlStatement: true
30e7d23d0eSVijay Khemka  AfterEnum:       true
318fe3a447SPatrick Williams  AfterExternBlock: true
32e7d23d0eSVijay Khemka  AfterFunction:   true
33e7d23d0eSVijay Khemka  AfterNamespace:  true
34e7d23d0eSVijay Khemka  AfterObjCDeclaration: true
35e7d23d0eSVijay Khemka  AfterStruct:     true
36e7d23d0eSVijay Khemka  AfterUnion:      true
37e7d23d0eSVijay Khemka  BeforeCatch:     true
38e7d23d0eSVijay Khemka  BeforeElse:      true
398fe3a447SPatrick Williams  BeforeLambdaBody: false
408fe3a447SPatrick Williams  BeforeWhile:     false
41e7d23d0eSVijay Khemka  IndentBraces:    false
42d1194024SVijay Khemka  SplitEmptyFunction:   false
43d1194024SVijay Khemka  SplitEmptyRecord:     false
44d1194024SVijay Khemka  SplitEmptyNamespace:  false
452405ae98SPatrick WilliamsBreakAfterAttributes: Never
46e7d23d0eSVijay KhemkaBreakBeforeBinaryOperators: None
47e7d23d0eSVijay KhemkaBreakBeforeBraces: Custom
48e7d23d0eSVijay KhemkaBreakBeforeTernaryOperators: true
49e7d23d0eSVijay KhemkaBreakConstructorInitializers: AfterColon
50d1194024SVijay KhemkaBreakInheritanceList: AfterColon
512405ae98SPatrick WilliamsBreakStringLiterals: false
52e7d23d0eSVijay KhemkaColumnLimit:     80
53e7d23d0eSVijay KhemkaCommentPragmas:  '^ IWYU pragma:'
54d1194024SVijay KhemkaCompactNamespaces: false
55e7d23d0eSVijay KhemkaConstructorInitializerIndentWidth: 4
56e7d23d0eSVijay KhemkaContinuationIndentWidth: 4
57e7d23d0eSVijay KhemkaCpp11BracedListStyle: true
58d1194024SVijay KhemkaDerivePointerAlignment: false
59e7d23d0eSVijay KhemkaDisableFormat:   false
60e7d23d0eSVijay KhemkaFixNamespaceComments: true
618fe3a447SPatrick WilliamsForEachMacros:
628fe3a447SPatrick Williams  - foreach
638fe3a447SPatrick Williams  - Q_FOREACH
648fe3a447SPatrick Williams  - BOOST_FOREACH
65d1194024SVijay KhemkaIncludeBlocks: Regroup
66d1194024SVijay KhemkaIncludeCategories:
67d1194024SVijay Khemka  - Regex:           '^[<"](gtest|gmock)'
68d1194024SVijay Khemka    Priority:        7
69d1194024SVijay Khemka  - Regex:           '^"config.h"'
70d1194024SVijay Khemka    Priority:        -1
71d1194024SVijay Khemka  - Regex:           '^".*\.h"'
72d1194024SVijay Khemka    Priority:        1
73d1194024SVijay Khemka  - Regex:           '^".*\.hpp"'
74d1194024SVijay Khemka    Priority:        2
75d1194024SVijay Khemka  - Regex:           '^<.*\.h>'
76d1194024SVijay Khemka    Priority:        3
77d1194024SVijay Khemka  - Regex:           '^<.*\.hpp>'
78d1194024SVijay Khemka    Priority:        4
79d1194024SVijay Khemka  - Regex:           '^<.*'
80d1194024SVijay Khemka    Priority:        5
81d1194024SVijay Khemka  - Regex:           '.*'
82d1194024SVijay Khemka    Priority:        6
83e7d23d0eSVijay KhemkaIndentCaseLabels: true
848fe3a447SPatrick WilliamsIndentExternBlock: NoIndent
852405ae98SPatrick WilliamsIndentRequiresClause: true
86e7d23d0eSVijay KhemkaIndentWidth:     4
87e7d23d0eSVijay KhemkaIndentWrappedFunctionNames: true
882405ae98SPatrick WilliamsInsertNewlineAtEOF: true
892405ae98SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*010dee04SPatrick WilliamsLambdaBodyIndentation: Signature
912405ae98SPatrick WilliamsLineEnding: LF
92e7d23d0eSVijay KhemkaMacroBlockBegin: ''
93e7d23d0eSVijay KhemkaMacroBlockEnd:   ''
94e7d23d0eSVijay KhemkaMaxEmptyLinesToKeep: 1
95e7d23d0eSVijay KhemkaNamespaceIndentation: None
96e7d23d0eSVijay KhemkaObjCBlockIndentWidth: 2
97e7d23d0eSVijay KhemkaObjCSpaceAfterProperty: false
98e7d23d0eSVijay KhemkaObjCSpaceBeforeProtocolList: true
998fe3a447SPatrick WilliamsPackConstructorInitializers: BinPack
1002405ae98SPatrick WilliamsPenaltyBreakAssignment: 25
101*010dee04SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102e7d23d0eSVijay KhemkaPenaltyBreakComment: 300
103e7d23d0eSVijay KhemkaPenaltyBreakFirstLessLess: 120
104e7d23d0eSVijay KhemkaPenaltyBreakString: 1000
105*010dee04SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106e7d23d0eSVijay KhemkaPenaltyExcessCharacter: 1000000
107e7d23d0eSVijay KhemkaPenaltyReturnTypeOnItsOwnLine: 60
108*010dee04SPatrick WilliamsPenaltyIndentedWhitespace: 1
1098fe3a447SPatrick WilliamsPointerAlignment: Left
1102405ae98SPatrick WilliamsQualifierAlignment: Left
1112405ae98SPatrick WilliamsReferenceAlignment: Left
112e7d23d0eSVijay KhemkaReflowComments:  true
1132405ae98SPatrick WilliamsRequiresClausePosition: OwnLine
1142405ae98SPatrick WilliamsRequiresExpressionIndentation: Keyword
1158fe3a447SPatrick WilliamsSortIncludes: CaseSensitive
116d1194024SVijay KhemkaSortUsingDeclarations: true
117e7d23d0eSVijay KhemkaSpaceAfterCStyleCast: false
118d1194024SVijay KhemkaSpaceAfterTemplateKeyword: true
119e7d23d0eSVijay KhemkaSpaceBeforeAssignmentOperators: true
120d1194024SVijay KhemkaSpaceBeforeCpp11BracedList: false
121d1194024SVijay KhemkaSpaceBeforeCtorInitializerColon: true
122d1194024SVijay KhemkaSpaceBeforeInheritanceColon: true
123e7d23d0eSVijay KhemkaSpaceBeforeParens: ControlStatements
124d1194024SVijay KhemkaSpaceBeforeRangeBasedForLoopColon: true
125e7d23d0eSVijay KhemkaSpaceInEmptyParentheses: false
126e7d23d0eSVijay KhemkaSpacesBeforeTrailingComments: 1
1278fe3a447SPatrick WilliamsSpacesInAngles: Never
128e7d23d0eSVijay KhemkaSpacesInContainerLiterals: true
129e7d23d0eSVijay KhemkaSpacesInCStyleCastParentheses: false
130e7d23d0eSVijay KhemkaSpacesInParentheses: false
131e7d23d0eSVijay KhemkaSpacesInSquareBrackets: false
1322405ae98SPatrick WilliamsStandard:        Latest
133e7d23d0eSVijay KhemkaTabWidth:        4
134e7d23d0eSVijay KhemkaUseTab:          Never
135e7d23d0eSVijay Khemka...
136e7d23d0eSVijay Khemka
137