xref: /openbmc/phosphor-objmgr/.clang-format (revision 2352088e)
1167e2379SEd Tanous---
2167e2379SEd TanousLanguage:        Cpp
3167e2379SEd Tanous# BasedOnStyle:  LLVM
4167e2379SEd TanousAccessModifierOffset: -2
5167e2379SEd TanousAlignAfterOpenBracket: Align
6167e2379SEd TanousAlignConsecutiveAssignments: false
7167e2379SEd TanousAlignConsecutiveDeclarations: false
8*2352088eSBrad BishopAlignEscapedNewlines: Right
9167e2379SEd TanousAlignOperands:   true
10167e2379SEd TanousAlignTrailingComments: true
11167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
12167e2379SEd TanousAllowShortBlocksOnASingleLine: false
13167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
14167e2379SEd TanousAllowShortFunctionsOnASingleLine: None
15167e2379SEd TanousAllowShortIfStatementsOnASingleLine: false
16167e2379SEd TanousAllowShortLoopsOnASingleLine: false
17167e2379SEd TanousAlwaysBreakAfterReturnType: None
18167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
19*2352088eSBrad BishopAlwaysBreakTemplateDeclarations: Yes
20167e2379SEd TanousBinPackArguments: true
21167e2379SEd TanousBinPackParameters: true
22167e2379SEd TanousBraceWrapping:
23*2352088eSBrad 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
32*2352088eSBrad Bishop  AfterExternBlock: true
33167e2379SEd Tanous  BeforeCatch:     true
34167e2379SEd Tanous  BeforeElse:      true
35167e2379SEd Tanous  IndentBraces:    false
36*2352088eSBrad Bishop  SplitEmptyFunction:   false
37*2352088eSBrad Bishop  SplitEmptyRecord:     false
38*2352088eSBrad Bishop  SplitEmptyNamespace:  false
39167e2379SEd TanousBreakBeforeBinaryOperators: None
40167e2379SEd TanousBreakBeforeBraces: Custom
41167e2379SEd TanousBreakBeforeTernaryOperators: true
42167e2379SEd TanousBreakConstructorInitializers: AfterColon
43*2352088eSBrad BishopBreakInheritanceList: AfterColon
44*2352088eSBrad BishopBreakStringLiterals: false
45167e2379SEd TanousColumnLimit:     80
46167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
47*2352088eSBrad BishopCompactNamespaces: false
48167e2379SEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
49167e2379SEd TanousConstructorInitializerIndentWidth: 4
50167e2379SEd TanousContinuationIndentWidth: 4
51167e2379SEd TanousCpp11BracedListStyle: true
52*2352088eSBrad BishopDeriveLineEnding: false
53cc6ee9cbSMatt SpinlerDerivePointerAlignment: false
54*2352088eSBrad 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)'
62*2352088eSBrad Bishop    Priority:        7
63cc6ee9cbSMatt Spinler  - Regex:           '^"config.h"'
64cc6ee9cbSMatt Spinler    Priority:        -1
65*2352088eSBrad Bishop  - Regex:           '^".*\.h"'
66cc6ee9cbSMatt Spinler    Priority:        1
67*2352088eSBrad Bishop  - Regex:           '^".*\.hpp"'
68cc6ee9cbSMatt Spinler    Priority:        2
69*2352088eSBrad Bishop  - Regex:           '^<.*\.h>'
70cc6ee9cbSMatt Spinler    Priority:        3
71*2352088eSBrad Bishop  - Regex:           '^<.*\.hpp>'
72cc6ee9cbSMatt Spinler    Priority:        4
73*2352088eSBrad Bishop  - Regex:           '^<.*'
74*2352088eSBrad Bishop    Priority:        5
75*2352088eSBrad Bishop  - Regex:           '.*'
76*2352088eSBrad Bishop    Priority:        6
77167e2379SEd TanousIndentCaseLabels: true
78167e2379SEd TanousIndentWidth:     4
79167e2379SEd TanousIndentWrappedFunctionNames: true
80*2352088eSBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
81167e2379SEd TanousMacroBlockBegin: ''
82167e2379SEd TanousMacroBlockEnd:   ''
83167e2379SEd TanousMaxEmptyLinesToKeep: 1
84167e2379SEd TanousNamespaceIndentation: None
85167e2379SEd TanousObjCBlockIndentWidth: 2
86167e2379SEd TanousObjCSpaceAfterProperty: false
87167e2379SEd TanousObjCSpaceBeforeProtocolList: true
88167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
89167e2379SEd TanousPenaltyBreakComment: 300
90167e2379SEd TanousPenaltyBreakFirstLessLess: 120
91167e2379SEd TanousPenaltyBreakString: 1000
92167e2379SEd TanousPenaltyExcessCharacter: 1000000
93167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
94167e2379SEd TanousReflowComments:  true
95cc6ee9cbSMatt SpinlerSortIncludes:    true
96cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
97167e2379SEd TanousSpaceAfterCStyleCast: false
98*2352088eSBrad BishopSpaceAfterTemplateKeyword: true
99167e2379SEd TanousSpaceBeforeAssignmentOperators: true
100*2352088eSBrad BishopSpaceBeforeCpp11BracedList: false
101*2352088eSBrad BishopSpaceBeforeCtorInitializerColon: true
102*2352088eSBrad BishopSpaceBeforeInheritanceColon: true
103167e2379SEd TanousSpaceBeforeParens: ControlStatements
104*2352088eSBrad BishopSpaceBeforeRangeBasedForLoopColon: true
105167e2379SEd TanousSpaceInEmptyParentheses: false
106167e2379SEd TanousSpacesBeforeTrailingComments: 1
107167e2379SEd TanousSpacesInAngles:  false
108167e2379SEd TanousSpacesInContainerLiterals: true
109167e2379SEd TanousSpacesInCStyleCastParentheses: false
110167e2379SEd TanousSpacesInParentheses: false
111167e2379SEd TanousSpacesInSquareBrackets: false
112*2352088eSBrad BishopStandard:        Latest
113167e2379SEd TanousTabWidth:        4
114*2352088eSBrad BishopUseCRLF: false
115167e2379SEd TanousUseTab:          Never
116167e2379SEd Tanous...
117*2352088eSBrad Bishop
118