xref: /openbmc/estoraged/.clang-format (revision 04c28fad78934cab0c4cb0b4ef9a20f9261b4c1e)
1bf8d6ac7SJohn Wedig---
2bf8d6ac7SJohn WedigLanguage:        Cpp
3bf8d6ac7SJohn Wedig# BasedOnStyle:  LLVM
4bf8d6ac7SJohn WedigAccessModifierOffset: -2
5bf8d6ac7SJohn WedigAlignAfterOpenBracket: Align
6bf8d6ac7SJohn WedigAlignConsecutiveAssignments: false
7bf8d6ac7SJohn WedigAlignConsecutiveDeclarations: false
8bf8d6ac7SJohn WedigAlignEscapedNewlines: Right
9*04c28fadSPatrick WilliamsAlignOperands:  Align
10*04c28fadSPatrick WilliamsAlignTrailingComments:
11*04c28fadSPatrick Williams  Kind: Always
12*04c28fadSPatrick Williams  OverEmptyLines: 1
13bf8d6ac7SJohn WedigAllowAllParametersOfDeclarationOnNextLine: true
14*04c28fadSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15bf8d6ac7SJohn WedigAllowShortCaseLabelsOnASingleLine: false
16*04c28fadSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17bf8d6ac7SJohn WedigAllowShortIfStatementsOnASingleLine: false
18bf8d6ac7SJohn WedigAllowShortLoopsOnASingleLine: false
19bf8d6ac7SJohn WedigAlwaysBreakAfterReturnType: None
20bf8d6ac7SJohn WedigAlwaysBreakBeforeMultilineStrings: false
21bf8d6ac7SJohn WedigAlwaysBreakTemplateDeclarations: Yes
22bf8d6ac7SJohn WedigBinPackArguments: true
23bf8d6ac7SJohn WedigBinPackParameters: true
24bf8d6ac7SJohn WedigBraceWrapping:
25bf8d6ac7SJohn Wedig  AfterCaseLabel:  true
26bf8d6ac7SJohn Wedig  AfterClass:      true
27bf8d6ac7SJohn Wedig  AfterControlStatement: true
28bf8d6ac7SJohn Wedig  AfterEnum:       true
29bf8d6ac7SJohn Wedig  AfterFunction:   true
30bf8d6ac7SJohn Wedig  AfterNamespace:  true
31bf8d6ac7SJohn Wedig  AfterObjCDeclaration: true
32bf8d6ac7SJohn Wedig  AfterStruct:     true
33bf8d6ac7SJohn Wedig  AfterUnion:      true
34bf8d6ac7SJohn Wedig  AfterExternBlock: true
35bf8d6ac7SJohn Wedig  BeforeCatch:     true
36bf8d6ac7SJohn Wedig  BeforeElse:      true
37bf8d6ac7SJohn Wedig  IndentBraces:    false
38bf8d6ac7SJohn Wedig  SplitEmptyFunction:   false
39bf8d6ac7SJohn Wedig  SplitEmptyRecord:     false
40bf8d6ac7SJohn Wedig  SplitEmptyNamespace:  false
41*04c28fadSPatrick WilliamsBreakAfterAttributes: Never
42bf8d6ac7SJohn WedigBreakBeforeBinaryOperators: None
43bf8d6ac7SJohn WedigBreakBeforeBraces: Custom
44bf8d6ac7SJohn WedigBreakBeforeTernaryOperators: true
45bf8d6ac7SJohn WedigBreakConstructorInitializers: AfterColon
46bf8d6ac7SJohn WedigBreakInheritanceList: AfterColon
47*04c28fadSPatrick WilliamsBreakStringLiterals: false
48bf8d6ac7SJohn WedigColumnLimit:     80
49bf8d6ac7SJohn WedigCommentPragmas:  '^ IWYU pragma:'
50bf8d6ac7SJohn WedigCompactNamespaces: false
51bf8d6ac7SJohn WedigConstructorInitializerAllOnOneLineOrOnePerLine: false
52bf8d6ac7SJohn WedigConstructorInitializerIndentWidth: 4
53bf8d6ac7SJohn WedigContinuationIndentWidth: 4
54bf8d6ac7SJohn WedigCpp11BracedListStyle: true
55*04c28fadSPatrick WilliamsDeriveLineEnding: false
56bf8d6ac7SJohn WedigDerivePointerAlignment: false
57bf8d6ac7SJohn WedigPointerAlignment: Left
58bf8d6ac7SJohn WedigDisableFormat:   false
59bf8d6ac7SJohn WedigExperimentalAutoDetectBinPacking: false
60bf8d6ac7SJohn WedigFixNamespaceComments: true
61bf8d6ac7SJohn WedigForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62bf8d6ac7SJohn WedigIncludeBlocks: Regroup
63bf8d6ac7SJohn WedigIncludeCategories:
64bf8d6ac7SJohn Wedig  - Regex:           '^[<"](gtest|gmock)'
65bf8d6ac7SJohn Wedig    Priority:        7
66bf8d6ac7SJohn Wedig  - Regex:           '^"config.h"'
67bf8d6ac7SJohn Wedig    Priority:        -1
68bf8d6ac7SJohn Wedig  - Regex:           '^".*\.h"'
69bf8d6ac7SJohn Wedig    Priority:        1
70bf8d6ac7SJohn Wedig  - Regex:           '^".*\.hpp"'
71bf8d6ac7SJohn Wedig    Priority:        2
72bf8d6ac7SJohn Wedig  - Regex:           '^<.*\.h>'
73bf8d6ac7SJohn Wedig    Priority:        3
74bf8d6ac7SJohn Wedig  - Regex:           '^<.*\.hpp>'
75bf8d6ac7SJohn Wedig    Priority:        4
76bf8d6ac7SJohn Wedig  - Regex:           '^<.*'
77bf8d6ac7SJohn Wedig    Priority:        5
78bf8d6ac7SJohn Wedig  - Regex:           '.*'
79bf8d6ac7SJohn Wedig    Priority:        6
80bf8d6ac7SJohn WedigIndentCaseLabels: true
81*04c28fadSPatrick WilliamsIndentRequiresClause: true
82bf8d6ac7SJohn WedigIndentWidth:     4
83bf8d6ac7SJohn WedigIndentWrappedFunctionNames: true
84*04c28fadSPatrick WilliamsInsertNewlineAtEOF: true
85*04c28fadSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*04c28fadSPatrick WilliamsLambdaBodyIndentation: OuterScope
87*04c28fadSPatrick WilliamsLineEnding: LF
88bf8d6ac7SJohn WedigMacroBlockBegin: ''
89bf8d6ac7SJohn WedigMacroBlockEnd:   ''
90bf8d6ac7SJohn WedigMaxEmptyLinesToKeep: 1
91bf8d6ac7SJohn WedigNamespaceIndentation: None
92bf8d6ac7SJohn WedigObjCBlockIndentWidth: 2
93bf8d6ac7SJohn WedigObjCSpaceAfterProperty: false
94bf8d6ac7SJohn WedigObjCSpaceBeforeProtocolList: true
95*04c28fadSPatrick WilliamsPenaltyBreakAssignment: 25
96bf8d6ac7SJohn WedigPenaltyBreakBeforeFirstCallParameter: 19
97bf8d6ac7SJohn WedigPenaltyBreakComment: 300
98bf8d6ac7SJohn WedigPenaltyBreakFirstLessLess: 120
99bf8d6ac7SJohn WedigPenaltyBreakString: 1000
100bf8d6ac7SJohn WedigPenaltyExcessCharacter: 1000000
101bf8d6ac7SJohn WedigPenaltyReturnTypeOnItsOwnLine: 60
102*04c28fadSPatrick WilliamsPenaltyIndentedWhitespace: 0
103*04c28fadSPatrick WilliamsQualifierAlignment: Left
104*04c28fadSPatrick WilliamsReferenceAlignment: Left
105bf8d6ac7SJohn WedigReflowComments:  true
106*04c28fadSPatrick WilliamsRequiresClausePosition: OwnLine
107*04c28fadSPatrick WilliamsRequiresExpressionIndentation: Keyword
108bf8d6ac7SJohn WedigSortIncludes:    true
109bf8d6ac7SJohn WedigSortUsingDeclarations: true
110bf8d6ac7SJohn WedigSpaceAfterCStyleCast: false
111bf8d6ac7SJohn WedigSpaceAfterTemplateKeyword: true
112bf8d6ac7SJohn WedigSpaceBeforeAssignmentOperators: true
113bf8d6ac7SJohn WedigSpaceBeforeCpp11BracedList: false
114bf8d6ac7SJohn WedigSpaceBeforeCtorInitializerColon: true
115bf8d6ac7SJohn WedigSpaceBeforeInheritanceColon: true
116bf8d6ac7SJohn WedigSpaceBeforeParens: ControlStatements
117bf8d6ac7SJohn WedigSpaceBeforeRangeBasedForLoopColon: true
118bf8d6ac7SJohn WedigSpaceInEmptyParentheses: false
119bf8d6ac7SJohn WedigSpacesBeforeTrailingComments: 1
120bf8d6ac7SJohn WedigSpacesInAngles:  false
121bf8d6ac7SJohn WedigSpacesInContainerLiterals: true
122bf8d6ac7SJohn WedigSpacesInCStyleCastParentheses: false
123bf8d6ac7SJohn WedigSpacesInParentheses: false
124bf8d6ac7SJohn WedigSpacesInSquareBrackets: false
125bf8d6ac7SJohn WedigStandard:        Latest
126bf8d6ac7SJohn WedigTabWidth:        4
127bf8d6ac7SJohn WedigUseTab:          Never
128bf8d6ac7SJohn Wedig...
129bf8d6ac7SJohn Wedig
130