xref: /openbmc/fb-ipmi-oem/.clang-format (revision 8fe3a447)
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
17*8fe3a447SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*8fe3a447SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19e7d23d0eSVijay KhemkaAllowShortLoopsOnASingleLine: false
20e7d23d0eSVijay KhemkaAlwaysBreakAfterReturnType: None
21e7d23d0eSVijay KhemkaAlwaysBreakBeforeMultilineStrings: false
22d1194024SVijay KhemkaAlwaysBreakTemplateDeclarations: Yes
23e7d23d0eSVijay KhemkaBinPackArguments: true
24e7d23d0eSVijay KhemkaBinPackParameters: true
25*8fe3a447SPatrick WilliamsBitFieldColonSpacing: None
26e7d23d0eSVijay KhemkaBraceWrapping:
27d1194024SVijay Khemka  AfterCaseLabel:  true
28e7d23d0eSVijay Khemka  AfterClass:      true
29e7d23d0eSVijay Khemka  AfterControlStatement: true
30e7d23d0eSVijay Khemka  AfterEnum:       true
31*8fe3a447SPatrick 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
39*8fe3a447SPatrick Williams  BeforeLambdaBody: false
40*8fe3a447SPatrick 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
61*8fe3a447SPatrick WilliamsForEachMacros:
62*8fe3a447SPatrick Williams  - foreach
63*8fe3a447SPatrick Williams  - Q_FOREACH
64*8fe3a447SPatrick 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
84*8fe3a447SPatrick WilliamsIndentExternBlock: NoIndent
852405ae98SPatrick WilliamsIndentRequiresClause: true
86e7d23d0eSVijay KhemkaIndentWidth:     4
87e7d23d0eSVijay KhemkaIndentWrappedFunctionNames: true
882405ae98SPatrick WilliamsInsertNewlineAtEOF: true
892405ae98SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
902405ae98SPatrick WilliamsLambdaBodyIndentation: OuterScope
912405ae98SPatrick WilliamsLineEnding: LF
92e7d23d0eSVijay KhemkaMacroBlockBegin: ''
93e7d23d0eSVijay KhemkaMacroBlockEnd:   ''
94e7d23d0eSVijay KhemkaMaxEmptyLinesToKeep: 1
95e7d23d0eSVijay KhemkaNamespaceIndentation: None
96e7d23d0eSVijay KhemkaObjCBlockIndentWidth: 2
97e7d23d0eSVijay KhemkaObjCSpaceAfterProperty: false
98e7d23d0eSVijay KhemkaObjCSpaceBeforeProtocolList: true
99*8fe3a447SPatrick WilliamsPackConstructorInitializers: BinPack
1002405ae98SPatrick WilliamsPenaltyBreakAssignment: 25
101e7d23d0eSVijay KhemkaPenaltyBreakBeforeFirstCallParameter: 19
102e7d23d0eSVijay KhemkaPenaltyBreakComment: 300
103e7d23d0eSVijay KhemkaPenaltyBreakFirstLessLess: 120
104e7d23d0eSVijay KhemkaPenaltyBreakString: 1000
105e7d23d0eSVijay KhemkaPenaltyExcessCharacter: 1000000
106e7d23d0eSVijay KhemkaPenaltyReturnTypeOnItsOwnLine: 60
1072405ae98SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*8fe3a447SPatrick WilliamsPointerAlignment: Left
1092405ae98SPatrick WilliamsQualifierAlignment: Left
1102405ae98SPatrick WilliamsReferenceAlignment: Left
111e7d23d0eSVijay KhemkaReflowComments:  true
1122405ae98SPatrick WilliamsRequiresClausePosition: OwnLine
1132405ae98SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*8fe3a447SPatrick WilliamsSortIncludes: CaseSensitive
115d1194024SVijay KhemkaSortUsingDeclarations: true
116e7d23d0eSVijay KhemkaSpaceAfterCStyleCast: false
117d1194024SVijay KhemkaSpaceAfterTemplateKeyword: true
118e7d23d0eSVijay KhemkaSpaceBeforeAssignmentOperators: true
119d1194024SVijay KhemkaSpaceBeforeCpp11BracedList: false
120d1194024SVijay KhemkaSpaceBeforeCtorInitializerColon: true
121d1194024SVijay KhemkaSpaceBeforeInheritanceColon: true
122e7d23d0eSVijay KhemkaSpaceBeforeParens: ControlStatements
123d1194024SVijay KhemkaSpaceBeforeRangeBasedForLoopColon: true
124e7d23d0eSVijay KhemkaSpaceInEmptyParentheses: false
125e7d23d0eSVijay KhemkaSpacesBeforeTrailingComments: 1
126*8fe3a447SPatrick WilliamsSpacesInAngles: Never
127e7d23d0eSVijay KhemkaSpacesInContainerLiterals: true
128e7d23d0eSVijay KhemkaSpacesInCStyleCastParentheses: false
129e7d23d0eSVijay KhemkaSpacesInParentheses: false
130e7d23d0eSVijay KhemkaSpacesInSquareBrackets: false
1312405ae98SPatrick WilliamsStandard:        Latest
132e7d23d0eSVijay KhemkaTabWidth:        4
133e7d23d0eSVijay KhemkaUseTab:          Never
134e7d23d0eSVijay Khemka...
135e7d23d0eSVijay Khemka
136