xref: /openbmc/phosphor-inventory-manager/.clang-format (revision 4858f71f6307e056bd574f24a526b4f4198f5053)
1615b2a8fSBrad Bishop---
2615b2a8fSBrad BishopLanguage:        Cpp
3615b2a8fSBrad Bishop# BasedOnStyle:  LLVM
4615b2a8fSBrad BishopAccessModifierOffset: -2
5615b2a8fSBrad BishopAlignAfterOpenBracket: Align
6615b2a8fSBrad BishopAlignConsecutiveAssignments: false
7615b2a8fSBrad BishopAlignConsecutiveDeclarations: false
8a83db30eSBrad BishopAlignEscapedNewlines: Right
97edafe06SPatrick WilliamsAlignOperands:  Align
107edafe06SPatrick WilliamsAlignTrailingComments:
117edafe06SPatrick Williams  Kind: Always
127edafe06SPatrick Williams  OverEmptyLines: 1
13615b2a8fSBrad BishopAllowAllParametersOfDeclarationOnNextLine: true
147edafe06SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15615b2a8fSBrad BishopAllowShortCaseLabelsOnASingleLine: false
167edafe06SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17ecabdfe2SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18ecabdfe2SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19615b2a8fSBrad BishopAllowShortLoopsOnASingleLine: false
20615b2a8fSBrad BishopAlwaysBreakBeforeMultilineStrings: false
21615b2a8fSBrad BishopBinPackArguments: true
22615b2a8fSBrad BishopBinPackParameters: true
23ecabdfe2SPatrick WilliamsBitFieldColonSpacing: None
24615b2a8fSBrad BishopBraceWrapping:
25a83db30eSBrad Bishop  AfterCaseLabel:  true
26615b2a8fSBrad Bishop  AfterClass:      true
27615b2a8fSBrad Bishop  AfterControlStatement: true
28615b2a8fSBrad Bishop  AfterEnum:       true
29ecabdfe2SPatrick Williams  AfterExternBlock: true
30615b2a8fSBrad Bishop  AfterFunction:   true
31615b2a8fSBrad Bishop  AfterNamespace:  true
32615b2a8fSBrad Bishop  AfterObjCDeclaration: true
33615b2a8fSBrad Bishop  AfterStruct:     true
34615b2a8fSBrad Bishop  AfterUnion:      true
35615b2a8fSBrad Bishop  BeforeCatch:     true
36615b2a8fSBrad Bishop  BeforeElse:      true
37ecabdfe2SPatrick Williams  BeforeLambdaBody: false
38ecabdfe2SPatrick Williams  BeforeWhile:     false
39615b2a8fSBrad Bishop  IndentBraces:    false
40a83db30eSBrad Bishop  SplitEmptyFunction:   false
41a83db30eSBrad Bishop  SplitEmptyRecord:     false
42a83db30eSBrad Bishop  SplitEmptyNamespace:  false
437edafe06SPatrick WilliamsBreakAfterAttributes: Never
44174d7ea1SPatrick WilliamsBreakAfterReturnType: Automatic
45615b2a8fSBrad BishopBreakBeforeBinaryOperators: None
46615b2a8fSBrad BishopBreakBeforeBraces: Custom
47615b2a8fSBrad BishopBreakBeforeTernaryOperators: true
48615b2a8fSBrad BishopBreakConstructorInitializers: AfterColon
49a83db30eSBrad BishopBreakInheritanceList: AfterColon
50794a6c5fSGeorge LiuBreakStringLiterals: false
51174d7ea1SPatrick WilliamsBreakTemplateDeclarations: Yes
52615b2a8fSBrad BishopColumnLimit:     80
53615b2a8fSBrad BishopCommentPragmas:  '^ IWYU pragma:'
54a83db30eSBrad BishopCompactNamespaces: false
55615b2a8fSBrad BishopConstructorInitializerIndentWidth: 4
56615b2a8fSBrad BishopContinuationIndentWidth: 4
57615b2a8fSBrad BishopCpp11BracedListStyle: true
58a680d1efSPatrick VentureDerivePointerAlignment: false
59615b2a8fSBrad BishopDisableFormat:   false
60615b2a8fSBrad BishopFixNamespaceComments: true
61ecabdfe2SPatrick WilliamsForEachMacros:
62ecabdfe2SPatrick Williams  - foreach
63ecabdfe2SPatrick Williams  - Q_FOREACH
64ecabdfe2SPatrick Williams  - BOOST_FOREACH
65a680d1efSPatrick VentureIncludeBlocks: Regroup
66a680d1efSPatrick VentureIncludeCategories:
67a680d1efSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
68a83db30eSBrad Bishop    Priority:        7
69a680d1efSPatrick Venture  - Regex:           '^"config.h"'
70a680d1efSPatrick Venture    Priority:        -1
71a83db30eSBrad Bishop  - Regex:           '^".*\.h"'
72a680d1efSPatrick Venture    Priority:        1
73a83db30eSBrad Bishop  - Regex:           '^".*\.hpp"'
74a680d1efSPatrick Venture    Priority:        2
75a83db30eSBrad Bishop  - Regex:           '^<.*\.h>'
76a680d1efSPatrick Venture    Priority:        3
77a83db30eSBrad Bishop  - Regex:           '^<.*\.hpp>'
78a680d1efSPatrick Venture    Priority:        4
79a83db30eSBrad Bishop  - Regex:           '^<.*'
80a83db30eSBrad Bishop    Priority:        5
81a83db30eSBrad Bishop  - Regex:           '.*'
82a83db30eSBrad Bishop    Priority:        6
83615b2a8fSBrad BishopIndentCaseLabels: true
84ecabdfe2SPatrick WilliamsIndentExternBlock: NoIndent
857edafe06SPatrick WilliamsIndentRequiresClause: true
86615b2a8fSBrad BishopIndentWidth:     4
87615b2a8fSBrad BishopIndentWrappedFunctionNames: true
887edafe06SPatrick WilliamsInsertNewlineAtEOF: true
897edafe06SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90d8fba8beSPatrick WilliamsLambdaBodyIndentation: Signature
917edafe06SPatrick WilliamsLineEnding: LF
92615b2a8fSBrad BishopMacroBlockBegin: ''
93615b2a8fSBrad BishopMacroBlockEnd:   ''
94615b2a8fSBrad BishopMaxEmptyLinesToKeep: 1
95615b2a8fSBrad BishopNamespaceIndentation: None
96615b2a8fSBrad BishopObjCBlockIndentWidth: 2
97615b2a8fSBrad BishopObjCSpaceAfterProperty: false
98615b2a8fSBrad BishopObjCSpaceBeforeProtocolList: true
99ecabdfe2SPatrick WilliamsPackConstructorInitializers: BinPack
1007edafe06SPatrick WilliamsPenaltyBreakAssignment: 25
101d8fba8beSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102615b2a8fSBrad BishopPenaltyBreakComment: 300
103615b2a8fSBrad BishopPenaltyBreakFirstLessLess: 120
104615b2a8fSBrad BishopPenaltyBreakString: 1000
105d8fba8beSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106615b2a8fSBrad BishopPenaltyExcessCharacter: 1000000
107*4858f71fSPatrick WilliamsPenaltyReturnTypeOnItsOwnLine: 150
108d8fba8beSPatrick WilliamsPenaltyIndentedWhitespace: 1
109ecabdfe2SPatrick WilliamsPointerAlignment: Left
1107edafe06SPatrick WilliamsQualifierAlignment: Left
1117edafe06SPatrick WilliamsReferenceAlignment: Left
112615b2a8fSBrad BishopReflowComments:  true
1137edafe06SPatrick WilliamsRequiresClausePosition: OwnLine
1147edafe06SPatrick WilliamsRequiresExpressionIndentation: Keyword
115ecabdfe2SPatrick WilliamsSortIncludes: CaseSensitive
116a680d1efSPatrick VentureSortUsingDeclarations: true
117615b2a8fSBrad BishopSpaceAfterCStyleCast: false
118a83db30eSBrad BishopSpaceAfterTemplateKeyword: true
119615b2a8fSBrad BishopSpaceBeforeAssignmentOperators: true
120a83db30eSBrad BishopSpaceBeforeCpp11BracedList: false
121a83db30eSBrad BishopSpaceBeforeCtorInitializerColon: true
122a83db30eSBrad BishopSpaceBeforeInheritanceColon: true
123615b2a8fSBrad BishopSpaceBeforeParens: ControlStatements
124a83db30eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
125615b2a8fSBrad BishopSpaceInEmptyParentheses: false
126615b2a8fSBrad BishopSpacesBeforeTrailingComments: 1
127ecabdfe2SPatrick WilliamsSpacesInAngles: Never
128615b2a8fSBrad BishopSpacesInContainerLiterals: true
129615b2a8fSBrad BishopSpacesInCStyleCastParentheses: false
130615b2a8fSBrad BishopSpacesInParentheses: false
131615b2a8fSBrad BishopSpacesInSquareBrackets: false
132a83db30eSBrad BishopStandard:        Latest
133615b2a8fSBrad BishopTabWidth:        4
134615b2a8fSBrad BishopUseTab:          Never
135615b2a8fSBrad Bishop...
1367edafe06SPatrick Williams
137