xref: /openbmc/ibm-logging/.clang-format (revision 6a2b8956)
1259e7277SMatt Spinler---
2259e7277SMatt SpinlerLanguage:        Cpp
3259e7277SMatt Spinler# BasedOnStyle:  LLVM
4259e7277SMatt SpinlerAccessModifierOffset: -2
5259e7277SMatt SpinlerAlignAfterOpenBracket: Align
6259e7277SMatt SpinlerAlignConsecutiveAssignments: false
7259e7277SMatt SpinlerAlignConsecutiveDeclarations: false
8*6a2b8956SPatrick WilliamsAlignEscapedNewlines: Right
9*6a2b8956SPatrick WilliamsAlignOperands:  Align
10*6a2b8956SPatrick WilliamsAlignTrailingComments:
11*6a2b8956SPatrick Williams  Kind: Always
12*6a2b8956SPatrick Williams  OverEmptyLines: 1
13259e7277SMatt SpinlerAllowAllParametersOfDeclarationOnNextLine: true
14*6a2b8956SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15259e7277SMatt SpinlerAllowShortCaseLabelsOnASingleLine: false
16*6a2b8956SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17259e7277SMatt SpinlerAllowShortIfStatementsOnASingleLine: false
18259e7277SMatt SpinlerAllowShortLoopsOnASingleLine: false
19259e7277SMatt SpinlerAlwaysBreakAfterReturnType: None
20259e7277SMatt SpinlerAlwaysBreakBeforeMultilineStrings: false
21*6a2b8956SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
22259e7277SMatt SpinlerBinPackArguments: true
23259e7277SMatt SpinlerBinPackParameters: true
24259e7277SMatt SpinlerBraceWrapping:
25*6a2b8956SPatrick Williams  AfterCaseLabel:  true
26259e7277SMatt Spinler  AfterClass:      true
27259e7277SMatt Spinler  AfterControlStatement: true
28259e7277SMatt Spinler  AfterEnum:       true
29259e7277SMatt Spinler  AfterFunction:   true
30259e7277SMatt Spinler  AfterNamespace:  true
31259e7277SMatt Spinler  AfterObjCDeclaration: true
32259e7277SMatt Spinler  AfterStruct:     true
33259e7277SMatt Spinler  AfterUnion:      true
34*6a2b8956SPatrick Williams  AfterExternBlock: true
35259e7277SMatt Spinler  BeforeCatch:     true
36259e7277SMatt Spinler  BeforeElse:      true
37259e7277SMatt Spinler  IndentBraces:    false
38*6a2b8956SPatrick Williams  SplitEmptyFunction:   false
39*6a2b8956SPatrick Williams  SplitEmptyRecord:     false
40*6a2b8956SPatrick Williams  SplitEmptyNamespace:  false
41*6a2b8956SPatrick WilliamsBreakAfterAttributes: Never
42259e7277SMatt SpinlerBreakBeforeBinaryOperators: None
43259e7277SMatt SpinlerBreakBeforeBraces: Custom
44259e7277SMatt SpinlerBreakBeforeTernaryOperators: true
45259e7277SMatt SpinlerBreakConstructorInitializers: AfterColon
46*6a2b8956SPatrick WilliamsBreakInheritanceList: AfterColon
47*6a2b8956SPatrick WilliamsBreakStringLiterals: false
48259e7277SMatt SpinlerColumnLimit:     80
49259e7277SMatt SpinlerCommentPragmas:  '^ IWYU pragma:'
50*6a2b8956SPatrick WilliamsCompactNamespaces: false
51259e7277SMatt SpinlerConstructorInitializerAllOnOneLineOrOnePerLine: false
52259e7277SMatt SpinlerConstructorInitializerIndentWidth: 4
53259e7277SMatt SpinlerContinuationIndentWidth: 4
54259e7277SMatt SpinlerCpp11BracedListStyle: true
55*6a2b8956SPatrick WilliamsDeriveLineEnding: false
5666e07073SMatt SpinlerDerivePointerAlignment: false
57259e7277SMatt SpinlerPointerAlignment: Left
58259e7277SMatt SpinlerDisableFormat:   false
59259e7277SMatt SpinlerExperimentalAutoDetectBinPacking: false
60259e7277SMatt SpinlerFixNamespaceComments: true
61259e7277SMatt SpinlerForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
6266e07073SMatt SpinlerIncludeBlocks: Regroup
6366e07073SMatt SpinlerIncludeCategories:
6466e07073SMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
65*6a2b8956SPatrick Williams    Priority:        7
6666e07073SMatt Spinler  - Regex:           '^"config.h"'
6766e07073SMatt Spinler    Priority:        -1
68*6a2b8956SPatrick Williams  - Regex:           '^".*\.h"'
6966e07073SMatt Spinler    Priority:        1
70*6a2b8956SPatrick Williams  - Regex:           '^".*\.hpp"'
7166e07073SMatt Spinler    Priority:        2
72*6a2b8956SPatrick Williams  - Regex:           '^<.*\.h>'
7366e07073SMatt Spinler    Priority:        3
74*6a2b8956SPatrick Williams  - Regex:           '^<.*\.hpp>'
7566e07073SMatt Spinler    Priority:        4
76*6a2b8956SPatrick Williams  - Regex:           '^<.*'
77*6a2b8956SPatrick Williams    Priority:        5
78*6a2b8956SPatrick Williams  - Regex:           '.*'
79*6a2b8956SPatrick Williams    Priority:        6
80259e7277SMatt SpinlerIndentCaseLabels: true
81*6a2b8956SPatrick WilliamsIndentRequiresClause: true
82259e7277SMatt SpinlerIndentWidth:     4
83259e7277SMatt SpinlerIndentWrappedFunctionNames: true
84*6a2b8956SPatrick WilliamsInsertNewlineAtEOF: true
85*6a2b8956SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*6a2b8956SPatrick WilliamsLambdaBodyIndentation: OuterScope
87*6a2b8956SPatrick WilliamsLineEnding: LF
88259e7277SMatt SpinlerMacroBlockBegin: ''
89259e7277SMatt SpinlerMacroBlockEnd:   ''
90259e7277SMatt SpinlerMaxEmptyLinesToKeep: 1
91259e7277SMatt SpinlerNamespaceIndentation: None
92259e7277SMatt SpinlerObjCBlockIndentWidth: 2
93259e7277SMatt SpinlerObjCSpaceAfterProperty: false
94259e7277SMatt SpinlerObjCSpaceBeforeProtocolList: true
95*6a2b8956SPatrick WilliamsPenaltyBreakAssignment: 25
96259e7277SMatt SpinlerPenaltyBreakBeforeFirstCallParameter: 19
97259e7277SMatt SpinlerPenaltyBreakComment: 300
98259e7277SMatt SpinlerPenaltyBreakFirstLessLess: 120
99259e7277SMatt SpinlerPenaltyBreakString: 1000
100259e7277SMatt SpinlerPenaltyExcessCharacter: 1000000
101259e7277SMatt SpinlerPenaltyReturnTypeOnItsOwnLine: 60
102*6a2b8956SPatrick WilliamsPenaltyIndentedWhitespace: 0
103*6a2b8956SPatrick WilliamsQualifierAlignment: Left
104*6a2b8956SPatrick WilliamsReferenceAlignment: Left
105259e7277SMatt SpinlerReflowComments:  true
106*6a2b8956SPatrick WilliamsRequiresClausePosition: OwnLine
107*6a2b8956SPatrick WilliamsRequiresExpressionIndentation: Keyword
10866e07073SMatt SpinlerSortIncludes:    true
10966e07073SMatt SpinlerSortUsingDeclarations: true
110259e7277SMatt SpinlerSpaceAfterCStyleCast: false
111*6a2b8956SPatrick WilliamsSpaceAfterTemplateKeyword: true
112259e7277SMatt SpinlerSpaceBeforeAssignmentOperators: true
113*6a2b8956SPatrick WilliamsSpaceBeforeCpp11BracedList: false
114*6a2b8956SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
115*6a2b8956SPatrick WilliamsSpaceBeforeInheritanceColon: true
116259e7277SMatt SpinlerSpaceBeforeParens: ControlStatements
117*6a2b8956SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
118259e7277SMatt SpinlerSpaceInEmptyParentheses: false
119259e7277SMatt SpinlerSpacesBeforeTrailingComments: 1
120259e7277SMatt SpinlerSpacesInAngles:  false
121259e7277SMatt SpinlerSpacesInContainerLiterals: true
122259e7277SMatt SpinlerSpacesInCStyleCastParentheses: false
123259e7277SMatt SpinlerSpacesInParentheses: false
124259e7277SMatt SpinlerSpacesInSquareBrackets: false
125*6a2b8956SPatrick WilliamsStandard:        Latest
126259e7277SMatt SpinlerTabWidth:        4
127259e7277SMatt SpinlerUseTab:          Never
128259e7277SMatt Spinler...
129*6a2b8956SPatrick Williams
130