xref: /openbmc/phosphor-objmgr/.clang-format (revision cc6ee9cb)
1167e2379SEd Tanous---
2167e2379SEd TanousLanguage:        Cpp
3167e2379SEd Tanous# BasedOnStyle:  LLVM
4167e2379SEd TanousAccessModifierOffset: -2
5167e2379SEd TanousAlignAfterOpenBracket: Align
6167e2379SEd TanousAlignConsecutiveAssignments: false
7167e2379SEd TanousAlignConsecutiveDeclarations: false
8167e2379SEd TanousAlignEscapedNewlinesLeft: false
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 TanousAlwaysBreakAfterDefinitionReturnType: None
18167e2379SEd TanousAlwaysBreakAfterReturnType: None
19167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
20*cc6ee9cbSMatt SpinlerAlwaysBreakTemplateDeclarations: true
21167e2379SEd TanousBinPackArguments: true
22167e2379SEd TanousBinPackParameters: true
23167e2379SEd TanousBraceWrapping:
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
32167e2379SEd Tanous  BeforeCatch:     true
33167e2379SEd Tanous  BeforeElse:      true
34167e2379SEd Tanous  IndentBraces:    false
35167e2379SEd TanousBreakBeforeBinaryOperators: None
36167e2379SEd TanousBreakBeforeBraces: Custom
37167e2379SEd TanousBreakBeforeTernaryOperators: true
38167e2379SEd TanousBreakConstructorInitializers: AfterColon
39167e2379SEd TanousColumnLimit:     80
40167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
41167e2379SEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
42167e2379SEd TanousConstructorInitializerIndentWidth: 4
43167e2379SEd TanousContinuationIndentWidth: 4
44167e2379SEd TanousCpp11BracedListStyle: true
45*cc6ee9cbSMatt SpinlerDerivePointerAlignment: false
46167e2379SEd TanousDisableFormat:   false
47167e2379SEd TanousExperimentalAutoDetectBinPacking: false
48167e2379SEd TanousFixNamespaceComments: true
49167e2379SEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
50*cc6ee9cbSMatt SpinlerIncludeBlocks: Regroup
51*cc6ee9cbSMatt SpinlerIncludeCategories:
52*cc6ee9cbSMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
53*cc6ee9cbSMatt Spinler    Priority:        5
54*cc6ee9cbSMatt Spinler  - Regex:           '^"config.h"'
55*cc6ee9cbSMatt Spinler    Priority:        -1
56*cc6ee9cbSMatt Spinler  - Regex:           '^".*\.hpp"'
57*cc6ee9cbSMatt Spinler    Priority:        1
58*cc6ee9cbSMatt Spinler  - Regex:           '^<.*\.h>'
59*cc6ee9cbSMatt Spinler    Priority:        2
60*cc6ee9cbSMatt Spinler  - Regex:           '^<.*'
61*cc6ee9cbSMatt Spinler    Priority:        3
62*cc6ee9cbSMatt Spinler  - Regex:           '.*'
63*cc6ee9cbSMatt Spinler    Priority:        4
64167e2379SEd TanousIndentCaseLabels: true
65167e2379SEd TanousIndentWidth:     4
66167e2379SEd TanousIndentWrappedFunctionNames: true
67167e2379SEd TanousKeepEmptyLinesAtTheStartOfBlocks: true
68167e2379SEd TanousMacroBlockBegin: ''
69167e2379SEd TanousMacroBlockEnd:   ''
70167e2379SEd TanousMaxEmptyLinesToKeep: 1
71167e2379SEd TanousNamespaceIndentation: None
72167e2379SEd TanousObjCBlockIndentWidth: 2
73167e2379SEd TanousObjCSpaceAfterProperty: false
74167e2379SEd TanousObjCSpaceBeforeProtocolList: true
75167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
76167e2379SEd TanousPenaltyBreakComment: 300
77167e2379SEd TanousPenaltyBreakFirstLessLess: 120
78167e2379SEd TanousPenaltyBreakString: 1000
79167e2379SEd TanousPenaltyExcessCharacter: 1000000
80167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
81*cc6ee9cbSMatt SpinlerPointerAlignment: Left
82167e2379SEd TanousReflowComments:  true
83*cc6ee9cbSMatt SpinlerSortIncludes:    true
84*cc6ee9cbSMatt SpinlerSortUsingDeclarations: true
85167e2379SEd TanousSpaceAfterCStyleCast: false
86167e2379SEd TanousSpaceBeforeAssignmentOperators: true
87167e2379SEd TanousSpaceBeforeParens: ControlStatements
88167e2379SEd TanousSpaceInEmptyParentheses: false
89167e2379SEd TanousSpacesBeforeTrailingComments: 1
90167e2379SEd TanousSpacesInAngles:  false
91167e2379SEd TanousSpacesInContainerLiterals: true
92167e2379SEd TanousSpacesInCStyleCastParentheses: false
93167e2379SEd TanousSpacesInParentheses: false
94167e2379SEd TanousSpacesInSquareBrackets: false
95167e2379SEd TanousStandard:        Cpp11
96167e2379SEd TanousTabWidth:        4
97167e2379SEd TanousUseTab:          Never
98167e2379SEd Tanous...
99