xref: /openbmc/phosphor-objmgr/.clang-format (revision 1a19e6aa)
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
10*1a19e6aaSPatrick WilliamsAlignTrailingComments:
11*1a19e6aaSPatrick Williams  Kind: Always
12*1a19e6aaSPatrick Williams  OverEmptyLines: 1
13167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
14a99e109cSBrad BishopAllowShortBlocksOnASingleLine: Empty
15167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
16a99e109cSBrad BishopAllowShortFunctionsOnASingleLine: Empty
17167e2379SEd TanousAllowShortIfStatementsOnASingleLine: false
18167e2379SEd TanousAllowShortLoopsOnASingleLine: false
19167e2379SEd TanousAlwaysBreakAfterReturnType: None
20167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
212352088eSBrad BishopAlwaysBreakTemplateDeclarations: Yes
22167e2379SEd TanousBinPackArguments: true
23167e2379SEd TanousBinPackParameters: true
24167e2379SEd TanousBraceWrapping:
252352088eSBrad Bishop  AfterCaseLabel:  true
26167e2379SEd Tanous  AfterClass:      true
27167e2379SEd Tanous  AfterControlStatement: true
28167e2379SEd Tanous  AfterEnum:       true
29167e2379SEd Tanous  AfterFunction:   true
30167e2379SEd Tanous  AfterNamespace:  true
31167e2379SEd Tanous  AfterObjCDeclaration: true
32167e2379SEd Tanous  AfterStruct:     true
33167e2379SEd Tanous  AfterUnion:      true
342352088eSBrad Bishop  AfterExternBlock: true
35167e2379SEd Tanous  BeforeCatch:     true
36167e2379SEd Tanous  BeforeElse:      true
37167e2379SEd Tanous  IndentBraces:    false
382352088eSBrad Bishop  SplitEmptyFunction:   false
392352088eSBrad Bishop  SplitEmptyRecord:     false
402352088eSBrad Bishop  SplitEmptyNamespace:  false
41*1a19e6aaSPatrick WilliamsBreakAfterAttributes: Never
42167e2379SEd TanousBreakBeforeBinaryOperators: None
43167e2379SEd TanousBreakBeforeBraces: Custom
44167e2379SEd TanousBreakBeforeTernaryOperators: true
45167e2379SEd TanousBreakConstructorInitializers: AfterColon
462352088eSBrad BishopBreakInheritanceList: AfterColon
472352088eSBrad BishopBreakStringLiterals: false
48167e2379SEd TanousColumnLimit:     80
49167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
502352088eSBrad BishopCompactNamespaces: false
51167e2379SEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
52167e2379SEd TanousConstructorInitializerIndentWidth: 4
53167e2379SEd TanousContinuationIndentWidth: 4
54167e2379SEd TanousCpp11BracedListStyle: true
552352088eSBrad BishopDeriveLineEnding: false
56cc6ee9cbSMatt SpinlerDerivePointerAlignment: false
572352088eSBrad BishopPointerAlignment: Left
58167e2379SEd TanousDisableFormat:   false
59167e2379SEd TanousExperimentalAutoDetectBinPacking: false
60167e2379SEd TanousFixNamespaceComments: true
61167e2379SEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62cc6ee9cbSMatt SpinlerIncludeBlocks: Regroup
63cc6ee9cbSMatt SpinlerIncludeCategories:
64cc6ee9cbSMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
652352088eSBrad Bishop    Priority:        7
66cc6ee9cbSMatt Spinler  - Regex:           '^"config.h"'
67cc6ee9cbSMatt Spinler    Priority:        -1
682352088eSBrad Bishop  - Regex:           '^".*\.h"'
69cc6ee9cbSMatt Spinler    Priority:        1
702352088eSBrad Bishop  - Regex:           '^".*\.hpp"'
71cc6ee9cbSMatt Spinler    Priority:        2
722352088eSBrad Bishop  - Regex:           '^<.*\.h>'
73cc6ee9cbSMatt Spinler    Priority:        3
742352088eSBrad Bishop  - Regex:           '^<.*\.hpp>'
75cc6ee9cbSMatt Spinler    Priority:        4
762352088eSBrad Bishop  - Regex:           '^<.*'
772352088eSBrad Bishop    Priority:        5
782352088eSBrad Bishop  - Regex:           '.*'
792352088eSBrad Bishop    Priority:        6
80167e2379SEd TanousIndentCaseLabels: true
81a99e109cSBrad BishopIndentRequiresClause: true
82167e2379SEd TanousIndentWidth:     4
83167e2379SEd TanousIndentWrappedFunctionNames: true
84*1a19e6aaSPatrick WilliamsInsertNewlineAtEOF: true
852352088eSBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
86670edd12SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*1a19e6aaSPatrick WilliamsLineEnding: LF
88167e2379SEd TanousMacroBlockBegin: ''
89167e2379SEd TanousMacroBlockEnd:   ''
90167e2379SEd TanousMaxEmptyLinesToKeep: 1
91167e2379SEd TanousNamespaceIndentation: None
92167e2379SEd TanousObjCBlockIndentWidth: 2
93167e2379SEd TanousObjCSpaceAfterProperty: false
94167e2379SEd TanousObjCSpaceBeforeProtocolList: true
95a99e109cSBrad BishopPenaltyBreakAssignment: 25
96167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
97167e2379SEd TanousPenaltyBreakComment: 300
98167e2379SEd TanousPenaltyBreakFirstLessLess: 120
99167e2379SEd TanousPenaltyBreakString: 1000
100167e2379SEd TanousPenaltyExcessCharacter: 1000000
101167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
102a99e109cSBrad BishopPenaltyIndentedWhitespace: 0
103a99e109cSBrad BishopQualifierAlignment: Left
104a99e109cSBrad BishopReferenceAlignment: Left
105167e2379SEd TanousReflowComments:  true
106a99e109cSBrad BishopRequiresClausePosition: OwnLine
107*1a19e6aaSPatrick WilliamsRequiresExpressionIndentation: Keyword
108cc6ee9cbSMatt SpinlerSortIncludes:    true
109cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
110167e2379SEd TanousSpaceAfterCStyleCast: false
1112352088eSBrad BishopSpaceAfterTemplateKeyword: true
112167e2379SEd TanousSpaceBeforeAssignmentOperators: true
1132352088eSBrad BishopSpaceBeforeCpp11BracedList: false
1142352088eSBrad BishopSpaceBeforeCtorInitializerColon: true
1152352088eSBrad BishopSpaceBeforeInheritanceColon: true
116167e2379SEd TanousSpaceBeforeParens: ControlStatements
1172352088eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
118167e2379SEd TanousSpaceInEmptyParentheses: false
119167e2379SEd TanousSpacesBeforeTrailingComments: 1
120167e2379SEd TanousSpacesInAngles:  false
121167e2379SEd TanousSpacesInContainerLiterals: true
122167e2379SEd TanousSpacesInCStyleCastParentheses: false
123167e2379SEd TanousSpacesInParentheses: false
124167e2379SEd TanousSpacesInSquareBrackets: false
1252352088eSBrad BishopStandard:        Latest
126167e2379SEd TanousTabWidth:        4
127167e2379SEd TanousUseTab:          Never
128167e2379SEd Tanous...
1292352088eSBrad Bishop
130