xref: /openbmc/phosphor-objmgr/.clang-format (revision 167e2379)
1*167e2379SEd Tanous---
2*167e2379SEd TanousLanguage:        Cpp
3*167e2379SEd Tanous# BasedOnStyle:  LLVM
4*167e2379SEd TanousAccessModifierOffset: -2
5*167e2379SEd TanousAlignAfterOpenBracket: Align
6*167e2379SEd TanousAlignConsecutiveAssignments: false
7*167e2379SEd TanousAlignConsecutiveDeclarations: false
8*167e2379SEd TanousAlignEscapedNewlinesLeft: false
9*167e2379SEd TanousAlignOperands:   true
10*167e2379SEd TanousAlignTrailingComments: true
11*167e2379SEd TanousAllowAllParametersOfDeclarationOnNextLine: true
12*167e2379SEd TanousAllowShortBlocksOnASingleLine: false
13*167e2379SEd TanousAllowShortCaseLabelsOnASingleLine: false
14*167e2379SEd TanousAllowShortFunctionsOnASingleLine: None
15*167e2379SEd TanousAllowShortIfStatementsOnASingleLine: false
16*167e2379SEd TanousAllowShortLoopsOnASingleLine: false
17*167e2379SEd TanousAlwaysBreakAfterDefinitionReturnType: None
18*167e2379SEd TanousAlwaysBreakAfterReturnType: None
19*167e2379SEd TanousAlwaysBreakBeforeMultilineStrings: false
20*167e2379SEd TanousAlwaysBreakTemplateDeclarations: false
21*167e2379SEd TanousBinPackArguments: true
22*167e2379SEd TanousBinPackParameters: true
23*167e2379SEd TanousBraceWrapping:
24*167e2379SEd Tanous  AfterClass:      true
25*167e2379SEd Tanous  AfterControlStatement: true
26*167e2379SEd Tanous  AfterEnum:       true
27*167e2379SEd Tanous  AfterFunction:   true
28*167e2379SEd Tanous  AfterNamespace:  true
29*167e2379SEd Tanous  AfterObjCDeclaration: true
30*167e2379SEd Tanous  AfterStruct:     true
31*167e2379SEd Tanous  AfterUnion:      true
32*167e2379SEd Tanous  BeforeCatch:     true
33*167e2379SEd Tanous  BeforeElse:      true
34*167e2379SEd Tanous  IndentBraces:    false
35*167e2379SEd TanousBreakBeforeBinaryOperators: None
36*167e2379SEd TanousBreakBeforeBraces: Custom
37*167e2379SEd TanousBreakBeforeTernaryOperators: true
38*167e2379SEd TanousBreakConstructorInitializers: AfterColon
39*167e2379SEd TanousColumnLimit:     80
40*167e2379SEd TanousCommentPragmas:  '^ IWYU pragma:'
41*167e2379SEd TanousConstructorInitializerAllOnOneLineOrOnePerLine: false
42*167e2379SEd TanousConstructorInitializerIndentWidth: 4
43*167e2379SEd TanousContinuationIndentWidth: 4
44*167e2379SEd TanousCpp11BracedListStyle: true
45*167e2379SEd TanousDerivePointerAlignment: true
46*167e2379SEd TanousPointerAlignment: Left
47*167e2379SEd TanousDisableFormat:   false
48*167e2379SEd TanousExperimentalAutoDetectBinPacking: false
49*167e2379SEd TanousFixNamespaceComments: true
50*167e2379SEd TanousForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*167e2379SEd TanousIndentCaseLabels: true
52*167e2379SEd TanousIndentWidth:     4
53*167e2379SEd TanousIndentWrappedFunctionNames: true
54*167e2379SEd TanousKeepEmptyLinesAtTheStartOfBlocks: true
55*167e2379SEd TanousMacroBlockBegin: ''
56*167e2379SEd TanousMacroBlockEnd:   ''
57*167e2379SEd TanousMaxEmptyLinesToKeep: 1
58*167e2379SEd TanousNamespaceIndentation: None
59*167e2379SEd TanousObjCBlockIndentWidth: 2
60*167e2379SEd TanousObjCSpaceAfterProperty: false
61*167e2379SEd TanousObjCSpaceBeforeProtocolList: true
62*167e2379SEd TanousPenaltyBreakBeforeFirstCallParameter: 19
63*167e2379SEd TanousPenaltyBreakComment: 300
64*167e2379SEd TanousPenaltyBreakFirstLessLess: 120
65*167e2379SEd TanousPenaltyBreakString: 1000
66*167e2379SEd TanousPenaltyExcessCharacter: 1000000
67*167e2379SEd TanousPenaltyReturnTypeOnItsOwnLine: 60
68*167e2379SEd TanousPointerAlignment: Right
69*167e2379SEd TanousReflowComments:  true
70*167e2379SEd TanousSortIncludes:    false
71*167e2379SEd TanousSpaceAfterCStyleCast: false
72*167e2379SEd TanousSpaceBeforeAssignmentOperators: true
73*167e2379SEd TanousSpaceBeforeParens: ControlStatements
74*167e2379SEd TanousSpaceInEmptyParentheses: false
75*167e2379SEd TanousSpacesBeforeTrailingComments: 1
76*167e2379SEd TanousSpacesInAngles:  false
77*167e2379SEd TanousSpacesInContainerLiterals: true
78*167e2379SEd TanousSpacesInCStyleCastParentheses: false
79*167e2379SEd TanousSpacesInParentheses: false
80*167e2379SEd TanousSpacesInSquareBrackets: false
81*167e2379SEd TanousStandard:        Cpp11
82*167e2379SEd TanousTabWidth:        4
83*167e2379SEd TanousUseTab:          Never
84*167e2379SEd Tanous...
85