xref: /openbmc/phosphor-objmgr/.clang-format (revision 670edd12)
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
10167e2379SEd TanousAlignTrailingComments: true
11167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
12a99e109cSBrad BishopAllowShortBlocksOnASingleLine: Empty
13167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
14a99e109cSBrad BishopAllowShortFunctionsOnASingleLine: Empty
15167e2379SEd TanousAllowShortIfStatementsOnASingleLine: false
16167e2379SEd TanousAllowShortLoopsOnASingleLine: false
17167e2379SEd TanousAlwaysBreakAfterReturnType: None
18167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
192352088eSBrad BishopAlwaysBreakTemplateDeclarations: Yes
20167e2379SEd TanousBinPackArguments: true
21167e2379SEd TanousBinPackParameters: true
22167e2379SEd TanousBraceWrapping:
232352088eSBrad Bishop  AfterCaseLabel:  true
24167e2379SEd Tanous  AfterClass:      true
25167e2379SEd Tanous  AfterControlStatement: true
26167e2379SEd Tanous  AfterEnum:       true
27167e2379SEd Tanous  AfterFunction:   true
28167e2379SEd Tanous  AfterNamespace:  true
29167e2379SEd Tanous  AfterObjCDeclaration: true
30167e2379SEd Tanous  AfterStruct:     true
31167e2379SEd Tanous  AfterUnion:      true
322352088eSBrad Bishop  AfterExternBlock: true
33167e2379SEd Tanous  BeforeCatch:     true
34167e2379SEd Tanous  BeforeElse:      true
35167e2379SEd Tanous  IndentBraces:    false
362352088eSBrad Bishop  SplitEmptyFunction:   false
372352088eSBrad Bishop  SplitEmptyRecord:     false
382352088eSBrad Bishop  SplitEmptyNamespace:  false
39167e2379SEd TanousBreakBeforeBinaryOperators: None
40167e2379SEd TanousBreakBeforeBraces: Custom
41167e2379SEd TanousBreakBeforeTernaryOperators: true
42167e2379SEd TanousBreakConstructorInitializers: AfterColon
432352088eSBrad BishopBreakInheritanceList: AfterColon
442352088eSBrad BishopBreakStringLiterals: false
45167e2379SEd TanousColumnLimit:     80
46167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
472352088eSBrad BishopCompactNamespaces: false
48167e2379SEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
49167e2379SEd TanousConstructorInitializerIndentWidth: 4
50167e2379SEd TanousContinuationIndentWidth: 4
51167e2379SEd TanousCpp11BracedListStyle: true
522352088eSBrad BishopDeriveLineEnding: false
53cc6ee9cbSMatt SpinlerDerivePointerAlignment: false
542352088eSBrad BishopPointerAlignment: Left
55167e2379SEd TanousDisableFormat:   false
56167e2379SEd TanousExperimentalAutoDetectBinPacking: false
57167e2379SEd TanousFixNamespaceComments: true
58167e2379SEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
59cc6ee9cbSMatt SpinlerIncludeBlocks: Regroup
60cc6ee9cbSMatt SpinlerIncludeCategories:
61cc6ee9cbSMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
622352088eSBrad Bishop    Priority:        7
63cc6ee9cbSMatt Spinler  - Regex:           '^"config.h"'
64cc6ee9cbSMatt Spinler    Priority:        -1
652352088eSBrad Bishop  - Regex:           '^".*\.h"'
66cc6ee9cbSMatt Spinler    Priority:        1
672352088eSBrad Bishop  - Regex:           '^".*\.hpp"'
68cc6ee9cbSMatt Spinler    Priority:        2
692352088eSBrad Bishop  - Regex:           '^<.*\.h>'
70cc6ee9cbSMatt Spinler    Priority:        3
712352088eSBrad Bishop  - Regex:           '^<.*\.hpp>'
72cc6ee9cbSMatt Spinler    Priority:        4
732352088eSBrad Bishop  - Regex:           '^<.*'
742352088eSBrad Bishop    Priority:        5
752352088eSBrad Bishop  - Regex:           '.*'
762352088eSBrad Bishop    Priority:        6
77167e2379SEd TanousIndentCaseLabels: true
78a99e109cSBrad BishopIndentRequiresClause: true
79167e2379SEd TanousIndentWidth:     4
80167e2379SEd TanousIndentWrappedFunctionNames: true
812352088eSBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
82*670edd12SPatrick WilliamsLambdaBodyIndentation: OuterScope
83167e2379SEd TanousMacroBlockBegin: ''
84167e2379SEd TanousMacroBlockEnd:   ''
85167e2379SEd TanousMaxEmptyLinesToKeep: 1
86167e2379SEd TanousNamespaceIndentation: None
87167e2379SEd TanousObjCBlockIndentWidth: 2
88167e2379SEd TanousObjCSpaceAfterProperty: false
89167e2379SEd TanousObjCSpaceBeforeProtocolList: true
90a99e109cSBrad BishopPenaltyBreakAssignment: 25
91167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
92167e2379SEd TanousPenaltyBreakComment: 300
93167e2379SEd TanousPenaltyBreakFirstLessLess: 120
94167e2379SEd TanousPenaltyBreakString: 1000
95167e2379SEd TanousPenaltyExcessCharacter: 1000000
96167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
97a99e109cSBrad BishopPenaltyIndentedWhitespace: 0
98a99e109cSBrad BishopQualifierAlignment: Left
99a99e109cSBrad BishopReferenceAlignment: Left
100167e2379SEd TanousReflowComments:  true
101a99e109cSBrad BishopRequiresClausePosition: OwnLine
102cc6ee9cbSMatt SpinlerSortIncludes:    true
103cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
104167e2379SEd TanousSpaceAfterCStyleCast: false
1052352088eSBrad BishopSpaceAfterTemplateKeyword: true
106167e2379SEd TanousSpaceBeforeAssignmentOperators: true
1072352088eSBrad BishopSpaceBeforeCpp11BracedList: false
1082352088eSBrad BishopSpaceBeforeCtorInitializerColon: true
1092352088eSBrad BishopSpaceBeforeInheritanceColon: true
110167e2379SEd TanousSpaceBeforeParens: ControlStatements
1112352088eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
112167e2379SEd TanousSpaceInEmptyParentheses: false
113167e2379SEd TanousSpacesBeforeTrailingComments: 1
114167e2379SEd TanousSpacesInAngles:  false
115167e2379SEd TanousSpacesInContainerLiterals: true
116167e2379SEd TanousSpacesInCStyleCastParentheses: false
117167e2379SEd TanousSpacesInParentheses: false
118167e2379SEd TanousSpacesInSquareBrackets: false
1192352088eSBrad BishopStandard:        Latest
120167e2379SEd TanousTabWidth:        4
1212352088eSBrad BishopUseCRLF: false
122167e2379SEd TanousUseTab:          Never
123167e2379SEd Tanous...
1242352088eSBrad Bishop
125