xref: /openbmc/ibm-logging/.clang-format (revision 66e0707365379e8716703e9175f82faa1f5b37ad)
1259e7277SMatt Spinler---
2259e7277SMatt SpinlerLanguage:        Cpp
3259e7277SMatt Spinler# BasedOnStyle:  LLVM
4259e7277SMatt SpinlerAccessModifierOffset: -2
5259e7277SMatt SpinlerAlignAfterOpenBracket: Align
6259e7277SMatt SpinlerAlignConsecutiveAssignments: false
7259e7277SMatt SpinlerAlignConsecutiveDeclarations: false
8259e7277SMatt SpinlerAlignEscapedNewlinesLeft: false
9259e7277SMatt SpinlerAlignOperands:   true
10259e7277SMatt SpinlerAlignTrailingComments: true
11259e7277SMatt SpinlerAllowAllParametersOfDeclarationOnNextLine: true
12259e7277SMatt SpinlerAllowShortBlocksOnASingleLine: false
13259e7277SMatt SpinlerAllowShortCaseLabelsOnASingleLine: false
14259e7277SMatt SpinlerAllowShortFunctionsOnASingleLine: None
15259e7277SMatt SpinlerAllowShortIfStatementsOnASingleLine: false
16259e7277SMatt SpinlerAllowShortLoopsOnASingleLine: false
17259e7277SMatt SpinlerAlwaysBreakAfterDefinitionReturnType: None
18259e7277SMatt SpinlerAlwaysBreakAfterReturnType: None
19259e7277SMatt SpinlerAlwaysBreakBeforeMultilineStrings: false
20*66e07073SMatt SpinlerAlwaysBreakTemplateDeclarations: true
21259e7277SMatt SpinlerBinPackArguments: true
22259e7277SMatt SpinlerBinPackParameters: true
23259e7277SMatt SpinlerBraceWrapping:
24259e7277SMatt Spinler  AfterClass:      true
25259e7277SMatt Spinler  AfterControlStatement: true
26259e7277SMatt Spinler  AfterEnum:       true
27259e7277SMatt Spinler  AfterFunction:   true
28259e7277SMatt Spinler  AfterNamespace:  true
29259e7277SMatt Spinler  AfterObjCDeclaration: true
30259e7277SMatt Spinler  AfterStruct:     true
31259e7277SMatt Spinler  AfterUnion:      true
32259e7277SMatt Spinler  BeforeCatch:     true
33259e7277SMatt Spinler  BeforeElse:      true
34259e7277SMatt Spinler  IndentBraces:    false
35259e7277SMatt SpinlerBreakBeforeBinaryOperators: None
36259e7277SMatt SpinlerBreakBeforeBraces: Custom
37259e7277SMatt SpinlerBreakBeforeTernaryOperators: true
38259e7277SMatt SpinlerBreakConstructorInitializers: AfterColon
39259e7277SMatt SpinlerColumnLimit:     80
40259e7277SMatt SpinlerCommentPragmas:  '^ IWYU pragma:'
41259e7277SMatt SpinlerConstructorInitializerAllOnOneLineOrOnePerLine: false
42259e7277SMatt SpinlerConstructorInitializerIndentWidth: 4
43259e7277SMatt SpinlerContinuationIndentWidth: 4
44259e7277SMatt SpinlerCpp11BracedListStyle: true
45*66e07073SMatt SpinlerDerivePointerAlignment: false
46259e7277SMatt SpinlerPointerAlignment: Left
47259e7277SMatt SpinlerDisableFormat:   false
48259e7277SMatt SpinlerExperimentalAutoDetectBinPacking: false
49259e7277SMatt SpinlerFixNamespaceComments: true
50259e7277SMatt SpinlerForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51*66e07073SMatt SpinlerIncludeBlocks: Regroup
52*66e07073SMatt SpinlerIncludeCategories:
53*66e07073SMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
54*66e07073SMatt Spinler    Priority:        5
55*66e07073SMatt Spinler  - Regex:           '^"config.h"'
56*66e07073SMatt Spinler    Priority:        -1
57*66e07073SMatt Spinler  - Regex:           '^".*\.hpp"'
58*66e07073SMatt Spinler    Priority:        1
59*66e07073SMatt Spinler  - Regex:           '^<.*\.h>'
60*66e07073SMatt Spinler    Priority:        2
61*66e07073SMatt Spinler  - Regex:           '^<.*'
62*66e07073SMatt Spinler    Priority:        3
63*66e07073SMatt Spinler  - Regex:           '.*'
64*66e07073SMatt Spinler    Priority:        4
65259e7277SMatt SpinlerIndentCaseLabels: true
66259e7277SMatt SpinlerIndentWidth:     4
67259e7277SMatt SpinlerIndentWrappedFunctionNames: true
68259e7277SMatt SpinlerKeepEmptyLinesAtTheStartOfBlocks: true
69259e7277SMatt SpinlerMacroBlockBegin: ''
70259e7277SMatt SpinlerMacroBlockEnd:   ''
71259e7277SMatt SpinlerMaxEmptyLinesToKeep: 1
72259e7277SMatt SpinlerNamespaceIndentation: None
73259e7277SMatt SpinlerObjCBlockIndentWidth: 2
74259e7277SMatt SpinlerObjCSpaceAfterProperty: false
75259e7277SMatt SpinlerObjCSpaceBeforeProtocolList: true
76259e7277SMatt SpinlerPenaltyBreakBeforeFirstCallParameter: 19
77259e7277SMatt SpinlerPenaltyBreakComment: 300
78259e7277SMatt SpinlerPenaltyBreakFirstLessLess: 120
79259e7277SMatt SpinlerPenaltyBreakString: 1000
80259e7277SMatt SpinlerPenaltyExcessCharacter: 1000000
81259e7277SMatt SpinlerPenaltyReturnTypeOnItsOwnLine: 60
82259e7277SMatt SpinlerReflowComments:  true
83*66e07073SMatt SpinlerSortIncludes:    true
84*66e07073SMatt SpinlerSortUsingDeclarations: true
85259e7277SMatt SpinlerSpaceAfterCStyleCast: false
86259e7277SMatt SpinlerSpaceBeforeAssignmentOperators: true
87259e7277SMatt SpinlerSpaceBeforeParens: ControlStatements
88259e7277SMatt SpinlerSpaceInEmptyParentheses: false
89259e7277SMatt SpinlerSpacesBeforeTrailingComments: 1
90259e7277SMatt SpinlerSpacesInAngles:  false
91259e7277SMatt SpinlerSpacesInContainerLiterals: true
92259e7277SMatt SpinlerSpacesInCStyleCastParentheses: false
93259e7277SMatt SpinlerSpacesInParentheses: false
94259e7277SMatt SpinlerSpacesInSquareBrackets: false
95259e7277SMatt SpinlerStandard:        Cpp11
96259e7277SMatt SpinlerTabWidth:        4
97259e7277SMatt SpinlerUseTab:          Never
98259e7277SMatt Spinler...
99