xref: /openbmc/phosphor-objmgr/.clang-format (revision 47b68cbc)
1167e2379SEd Tanous---
2167e2379SEd TanousLanguage:        Cpp
3167e2379SEd Tanous# BasedOnStyle:  LLVM
4167e2379SEd TanousAccessModifierOffset: -2
5167e2379SEd TanousAlignAfterOpenBracket: Align
6167e2379SEd TanousAlignConsecutiveAssignments: false
7167e2379SEd TanousAlignConsecutiveDeclarations: false
82352088eSBrad BishopAlignEscapedNewlines: Right
9a99e109cSBrad BishopAlignOperands:  Align
101a19e6aaSPatrick WilliamsAlignTrailingComments:
111a19e6aaSPatrick Williams  Kind: Always
121a19e6aaSPatrick Williams  OverEmptyLines: 1
13167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
14a99e109cSBrad BishopAllowShortBlocksOnASingleLine: Empty
15167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
16a99e109cSBrad BishopAllowShortFunctionsOnASingleLine: Empty
17*47b68cbcSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*47b68cbcSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19167e2379SEd TanousAllowShortLoopsOnASingleLine: false
20167e2379SEd TanousAlwaysBreakAfterReturnType: None
21167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
222352088eSBrad BishopAlwaysBreakTemplateDeclarations: Yes
23167e2379SEd TanousBinPackArguments: true
24167e2379SEd TanousBinPackParameters: true
25*47b68cbcSPatrick WilliamsBitFieldColonSpacing: None
26167e2379SEd TanousBraceWrapping:
272352088eSBrad Bishop  AfterCaseLabel:  true
28167e2379SEd Tanous  AfterClass:      true
29167e2379SEd Tanous  AfterControlStatement: true
30167e2379SEd Tanous  AfterEnum:       true
31*47b68cbcSPatrick Williams  AfterExternBlock: true
32167e2379SEd Tanous  AfterFunction:   true
33167e2379SEd Tanous  AfterNamespace:  true
34167e2379SEd Tanous  AfterObjCDeclaration: true
35167e2379SEd Tanous  AfterStruct:     true
36167e2379SEd Tanous  AfterUnion:      true
37167e2379SEd Tanous  BeforeCatch:     true
38167e2379SEd Tanous  BeforeElse:      true
39*47b68cbcSPatrick Williams  BeforeLambdaBody: false
40*47b68cbcSPatrick Williams  BeforeWhile:     false
41167e2379SEd Tanous  IndentBraces:    false
422352088eSBrad Bishop  SplitEmptyFunction:   false
432352088eSBrad Bishop  SplitEmptyRecord:     false
442352088eSBrad Bishop  SplitEmptyNamespace:  false
451a19e6aaSPatrick WilliamsBreakAfterAttributes: Never
46167e2379SEd TanousBreakBeforeBinaryOperators: None
47167e2379SEd TanousBreakBeforeBraces: Custom
48167e2379SEd TanousBreakBeforeTernaryOperators: true
49167e2379SEd TanousBreakConstructorInitializers: AfterColon
502352088eSBrad BishopBreakInheritanceList: AfterColon
512352088eSBrad BishopBreakStringLiterals: false
52167e2379SEd TanousColumnLimit:     80
53167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
542352088eSBrad BishopCompactNamespaces: false
55167e2379SEd TanousConstructorInitializerIndentWidth: 4
56167e2379SEd TanousContinuationIndentWidth: 4
57167e2379SEd TanousCpp11BracedListStyle: true
58cc6ee9cbSMatt SpinlerDerivePointerAlignment: false
59167e2379SEd TanousDisableFormat:   false
60167e2379SEd TanousFixNamespaceComments: true
61*47b68cbcSPatrick WilliamsForEachMacros:
62*47b68cbcSPatrick Williams  - foreach
63*47b68cbcSPatrick Williams  - Q_FOREACH
64*47b68cbcSPatrick Williams  - BOOST_FOREACH
65cc6ee9cbSMatt SpinlerIncludeBlocks: Regroup
66cc6ee9cbSMatt SpinlerIncludeCategories:
67cc6ee9cbSMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
682352088eSBrad Bishop    Priority:        7
69cc6ee9cbSMatt Spinler  - Regex:           '^"config.h"'
70cc6ee9cbSMatt Spinler    Priority:        -1
712352088eSBrad Bishop  - Regex:           '^".*\.h"'
72cc6ee9cbSMatt Spinler    Priority:        1
732352088eSBrad Bishop  - Regex:           '^".*\.hpp"'
74cc6ee9cbSMatt Spinler    Priority:        2
752352088eSBrad Bishop  - Regex:           '^<.*\.h>'
76cc6ee9cbSMatt Spinler    Priority:        3
772352088eSBrad Bishop  - Regex:           '^<.*\.hpp>'
78cc6ee9cbSMatt Spinler    Priority:        4
792352088eSBrad Bishop  - Regex:           '^<.*'
802352088eSBrad Bishop    Priority:        5
812352088eSBrad Bishop  - Regex:           '.*'
822352088eSBrad Bishop    Priority:        6
83167e2379SEd TanousIndentCaseLabels: true
84*47b68cbcSPatrick WilliamsIndentExternBlock: NoIndent
85a99e109cSBrad BishopIndentRequiresClause: true
86167e2379SEd TanousIndentWidth:     4
87167e2379SEd TanousIndentWrappedFunctionNames: true
881a19e6aaSPatrick WilliamsInsertNewlineAtEOF: true
892352088eSBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
90670edd12SPatrick WilliamsLambdaBodyIndentation: OuterScope
911a19e6aaSPatrick WilliamsLineEnding: LF
92167e2379SEd TanousMacroBlockBegin: ''
93167e2379SEd TanousMacroBlockEnd:   ''
94167e2379SEd TanousMaxEmptyLinesToKeep: 1
95167e2379SEd TanousNamespaceIndentation: None
96167e2379SEd TanousObjCBlockIndentWidth: 2
97167e2379SEd TanousObjCSpaceAfterProperty: false
98167e2379SEd TanousObjCSpaceBeforeProtocolList: true
99*47b68cbcSPatrick WilliamsPackConstructorInitializers: BinPack
100a99e109cSBrad BishopPenaltyBreakAssignment: 25
101167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
102167e2379SEd TanousPenaltyBreakComment: 300
103167e2379SEd TanousPenaltyBreakFirstLessLess: 120
104167e2379SEd TanousPenaltyBreakString: 1000
105167e2379SEd TanousPenaltyExcessCharacter: 1000000
106167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
107a99e109cSBrad BishopPenaltyIndentedWhitespace: 0
108*47b68cbcSPatrick WilliamsPointerAlignment: Left
109a99e109cSBrad BishopQualifierAlignment: Left
110a99e109cSBrad BishopReferenceAlignment: Left
111167e2379SEd TanousReflowComments:  true
112a99e109cSBrad BishopRequiresClausePosition: OwnLine
1131a19e6aaSPatrick WilliamsRequiresExpressionIndentation: Keyword
114*47b68cbcSPatrick WilliamsSortIncludes: CaseSensitive
115cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
116167e2379SEd TanousSpaceAfterCStyleCast: false
1172352088eSBrad BishopSpaceAfterTemplateKeyword: true
118167e2379SEd TanousSpaceBeforeAssignmentOperators: true
1192352088eSBrad BishopSpaceBeforeCpp11BracedList: false
1202352088eSBrad BishopSpaceBeforeCtorInitializerColon: true
1212352088eSBrad BishopSpaceBeforeInheritanceColon: true
122167e2379SEd TanousSpaceBeforeParens: ControlStatements
1232352088eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
124167e2379SEd TanousSpaceInEmptyParentheses: false
125167e2379SEd TanousSpacesBeforeTrailingComments: 1
126*47b68cbcSPatrick WilliamsSpacesInAngles: Never
127167e2379SEd TanousSpacesInContainerLiterals: true
128167e2379SEd TanousSpacesInCStyleCastParentheses: false
129167e2379SEd TanousSpacesInParentheses: false
130167e2379SEd TanousSpacesInSquareBrackets: false
1312352088eSBrad BishopStandard:        Latest
132167e2379SEd TanousTabWidth:        4
133167e2379SEd TanousUseTab:          Never
134167e2379SEd Tanous...
1352352088eSBrad Bishop
136