xref: /openbmc/phosphor-objmgr/.clang-format (revision a99e109c)
1167e2379SEd Tanous---
2167e2379SEd TanousLanguage:        Cpp
3167e2379SEd Tanous# BasedOnStyle:  LLVM
4167e2379SEd TanousAccessModifierOffset: -2
5167e2379SEd TanousAlignAfterOpenBracket: Align
6167e2379SEd TanousAlignConsecutiveAssignments: false
7167e2379SEd TanousAlignConsecutiveDeclarations: false
82352088eSBrad BishopAlignEscapedNewlines: Right
9*a99e109cSBrad BishopAlignOperands:  Align
10167e2379SEd TanousAlignTrailingComments: true
11167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
12*a99e109cSBrad BishopAllowShortBlocksOnASingleLine: Empty
13167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
14*a99e109cSBrad 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
78*a99e109cSBrad BishopIndentRequiresClause: true
79167e2379SEd TanousIndentWidth:     4
80167e2379SEd TanousIndentWrappedFunctionNames: true
812352088eSBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
82167e2379SEd TanousMacroBlockBegin: ''
83167e2379SEd TanousMacroBlockEnd:   ''
84167e2379SEd TanousMaxEmptyLinesToKeep: 1
85167e2379SEd TanousNamespaceIndentation: None
86167e2379SEd TanousObjCBlockIndentWidth: 2
87167e2379SEd TanousObjCSpaceAfterProperty: false
88167e2379SEd TanousObjCSpaceBeforeProtocolList: true
89*a99e109cSBrad BishopPenaltyBreakAssignment: 25
90167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
91167e2379SEd TanousPenaltyBreakComment: 300
92167e2379SEd TanousPenaltyBreakFirstLessLess: 120
93167e2379SEd TanousPenaltyBreakString: 1000
94167e2379SEd TanousPenaltyExcessCharacter: 1000000
95167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
96*a99e109cSBrad BishopPenaltyIndentedWhitespace: 0
97*a99e109cSBrad BishopQualifierAlignment: Left
98*a99e109cSBrad BishopReferenceAlignment: Left
99167e2379SEd TanousReflowComments:  true
100*a99e109cSBrad BishopRequiresClausePosition: OwnLine
101cc6ee9cbSMatt SpinlerSortIncludes:    true
102cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
103167e2379SEd TanousSpaceAfterCStyleCast: false
1042352088eSBrad BishopSpaceAfterTemplateKeyword: true
105167e2379SEd TanousSpaceBeforeAssignmentOperators: true
1062352088eSBrad BishopSpaceBeforeCpp11BracedList: false
1072352088eSBrad BishopSpaceBeforeCtorInitializerColon: true
1082352088eSBrad BishopSpaceBeforeInheritanceColon: true
109167e2379SEd TanousSpaceBeforeParens: ControlStatements
1102352088eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
111167e2379SEd TanousSpaceInEmptyParentheses: false
112167e2379SEd TanousSpacesBeforeTrailingComments: 1
113167e2379SEd TanousSpacesInAngles:  false
114167e2379SEd TanousSpacesInContainerLiterals: true
115167e2379SEd TanousSpacesInCStyleCastParentheses: false
116167e2379SEd TanousSpacesInParentheses: false
117167e2379SEd TanousSpacesInSquareBrackets: false
1182352088eSBrad BishopStandard:        Latest
119167e2379SEd TanousTabWidth:        4
1202352088eSBrad BishopUseCRLF: false
121167e2379SEd TanousUseTab:          Never
122167e2379SEd Tanous...
1232352088eSBrad Bishop
124