xref: /openbmc/estoraged/.clang-format (revision 15b63e12)
1bf8d6ac7SJohn Wedig---
2bf8d6ac7SJohn WedigLanguage:        Cpp
3bf8d6ac7SJohn Wedig# BasedOnStyle:  LLVM
4bf8d6ac7SJohn WedigAccessModifierOffset: -2
5bf8d6ac7SJohn WedigAlignAfterOpenBracket: Align
6bf8d6ac7SJohn WedigAlignConsecutiveAssignments: false
7bf8d6ac7SJohn WedigAlignConsecutiveDeclarations: false
8bf8d6ac7SJohn WedigAlignEscapedNewlines: Right
904c28fadSPatrick WilliamsAlignOperands:  Align
1004c28fadSPatrick WilliamsAlignTrailingComments:
1104c28fadSPatrick Williams  Kind: Always
1204c28fadSPatrick Williams  OverEmptyLines: 1
13bf8d6ac7SJohn WedigAllowAllParametersOfDeclarationOnNextLine: true
1404c28fadSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15bf8d6ac7SJohn WedigAllowShortCaseLabelsOnASingleLine: false
1604c28fadSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17ff1b64f0SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18ff1b64f0SPatrick WilliamsAllowShortLambdasOnASingleLine: true
19bf8d6ac7SJohn WedigAllowShortLoopsOnASingleLine: false
20bf8d6ac7SJohn WedigAlwaysBreakAfterReturnType: None
21bf8d6ac7SJohn WedigAlwaysBreakBeforeMultilineStrings: false
22bf8d6ac7SJohn WedigAlwaysBreakTemplateDeclarations: Yes
23bf8d6ac7SJohn WedigBinPackArguments: true
24bf8d6ac7SJohn WedigBinPackParameters: true
25ff1b64f0SPatrick WilliamsBitFieldColonSpacing: None
26bf8d6ac7SJohn WedigBraceWrapping:
27bf8d6ac7SJohn Wedig  AfterCaseLabel:  true
28bf8d6ac7SJohn Wedig  AfterClass:      true
29bf8d6ac7SJohn Wedig  AfterControlStatement: true
30bf8d6ac7SJohn Wedig  AfterEnum:       true
31ff1b64f0SPatrick Williams  AfterExternBlock: true
32bf8d6ac7SJohn Wedig  AfterFunction:   true
33bf8d6ac7SJohn Wedig  AfterNamespace:  true
34bf8d6ac7SJohn Wedig  AfterObjCDeclaration: true
35bf8d6ac7SJohn Wedig  AfterStruct:     true
36bf8d6ac7SJohn Wedig  AfterUnion:      true
37bf8d6ac7SJohn Wedig  BeforeCatch:     true
38bf8d6ac7SJohn Wedig  BeforeElse:      true
39ff1b64f0SPatrick Williams  BeforeLambdaBody: false
40ff1b64f0SPatrick Williams  BeforeWhile:     false
41bf8d6ac7SJohn Wedig  IndentBraces:    false
42bf8d6ac7SJohn Wedig  SplitEmptyFunction:   false
43bf8d6ac7SJohn Wedig  SplitEmptyRecord:     false
44bf8d6ac7SJohn Wedig  SplitEmptyNamespace:  false
4504c28fadSPatrick WilliamsBreakAfterAttributes: Never
46bf8d6ac7SJohn WedigBreakBeforeBinaryOperators: None
47bf8d6ac7SJohn WedigBreakBeforeBraces: Custom
48bf8d6ac7SJohn WedigBreakBeforeTernaryOperators: true
49bf8d6ac7SJohn WedigBreakConstructorInitializers: AfterColon
50bf8d6ac7SJohn WedigBreakInheritanceList: AfterColon
5104c28fadSPatrick WilliamsBreakStringLiterals: false
52bf8d6ac7SJohn WedigColumnLimit:     80
53bf8d6ac7SJohn WedigCommentPragmas:  '^ IWYU pragma:'
54bf8d6ac7SJohn WedigCompactNamespaces: false
55bf8d6ac7SJohn WedigConstructorInitializerIndentWidth: 4
56bf8d6ac7SJohn WedigContinuationIndentWidth: 4
57bf8d6ac7SJohn WedigCpp11BracedListStyle: true
58bf8d6ac7SJohn WedigDerivePointerAlignment: false
59bf8d6ac7SJohn WedigDisableFormat:   false
60bf8d6ac7SJohn WedigFixNamespaceComments: true
61ff1b64f0SPatrick WilliamsForEachMacros:
62ff1b64f0SPatrick Williams  - foreach
63ff1b64f0SPatrick Williams  - Q_FOREACH
64ff1b64f0SPatrick Williams  - BOOST_FOREACH
65bf8d6ac7SJohn WedigIncludeBlocks: Regroup
66bf8d6ac7SJohn WedigIncludeCategories:
67bf8d6ac7SJohn Wedig  - Regex:           '^[<"](gtest|gmock)'
68bf8d6ac7SJohn Wedig    Priority:        7
69bf8d6ac7SJohn Wedig  - Regex:           '^"config.h"'
70bf8d6ac7SJohn Wedig    Priority:        -1
71bf8d6ac7SJohn Wedig  - Regex:           '^".*\.h"'
72bf8d6ac7SJohn Wedig    Priority:        1
73bf8d6ac7SJohn Wedig  - Regex:           '^".*\.hpp"'
74bf8d6ac7SJohn Wedig    Priority:        2
75bf8d6ac7SJohn Wedig  - Regex:           '^<.*\.h>'
76bf8d6ac7SJohn Wedig    Priority:        3
77bf8d6ac7SJohn Wedig  - Regex:           '^<.*\.hpp>'
78bf8d6ac7SJohn Wedig    Priority:        4
79bf8d6ac7SJohn Wedig  - Regex:           '^<.*'
80bf8d6ac7SJohn Wedig    Priority:        5
81bf8d6ac7SJohn Wedig  - Regex:           '.*'
82bf8d6ac7SJohn Wedig    Priority:        6
83bf8d6ac7SJohn WedigIndentCaseLabels: true
84ff1b64f0SPatrick WilliamsIndentExternBlock: NoIndent
8504c28fadSPatrick WilliamsIndentRequiresClause: true
86bf8d6ac7SJohn WedigIndentWidth:     4
87bf8d6ac7SJohn WedigIndentWrappedFunctionNames: true
8804c28fadSPatrick WilliamsInsertNewlineAtEOF: true
8904c28fadSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*15b63e12SPatrick WilliamsLambdaBodyIndentation: Signature
9104c28fadSPatrick WilliamsLineEnding: LF
92bf8d6ac7SJohn WedigMacroBlockBegin: ''
93bf8d6ac7SJohn WedigMacroBlockEnd:   ''
94bf8d6ac7SJohn WedigMaxEmptyLinesToKeep: 1
95bf8d6ac7SJohn WedigNamespaceIndentation: None
96bf8d6ac7SJohn WedigObjCBlockIndentWidth: 2
97bf8d6ac7SJohn WedigObjCSpaceAfterProperty: false
98bf8d6ac7SJohn WedigObjCSpaceBeforeProtocolList: true
99ff1b64f0SPatrick WilliamsPackConstructorInitializers: BinPack
10004c28fadSPatrick WilliamsPenaltyBreakAssignment: 25
101*15b63e12SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102bf8d6ac7SJohn WedigPenaltyBreakComment: 300
103bf8d6ac7SJohn WedigPenaltyBreakFirstLessLess: 120
104bf8d6ac7SJohn WedigPenaltyBreakString: 1000
105*15b63e12SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106bf8d6ac7SJohn WedigPenaltyExcessCharacter: 1000000
107bf8d6ac7SJohn WedigPenaltyReturnTypeOnItsOwnLine: 60
108*15b63e12SPatrick WilliamsPenaltyIndentedWhitespace: 1
109ff1b64f0SPatrick WilliamsPointerAlignment: Left
11004c28fadSPatrick WilliamsQualifierAlignment: Left
11104c28fadSPatrick WilliamsReferenceAlignment: Left
112bf8d6ac7SJohn WedigReflowComments:  true
11304c28fadSPatrick WilliamsRequiresClausePosition: OwnLine
11404c28fadSPatrick WilliamsRequiresExpressionIndentation: Keyword
115ff1b64f0SPatrick WilliamsSortIncludes: CaseSensitive
116bf8d6ac7SJohn WedigSortUsingDeclarations: true
117bf8d6ac7SJohn WedigSpaceAfterCStyleCast: false
118bf8d6ac7SJohn WedigSpaceAfterTemplateKeyword: true
119bf8d6ac7SJohn WedigSpaceBeforeAssignmentOperators: true
120bf8d6ac7SJohn WedigSpaceBeforeCpp11BracedList: false
121bf8d6ac7SJohn WedigSpaceBeforeCtorInitializerColon: true
122bf8d6ac7SJohn WedigSpaceBeforeInheritanceColon: true
123bf8d6ac7SJohn WedigSpaceBeforeParens: ControlStatements
124bf8d6ac7SJohn WedigSpaceBeforeRangeBasedForLoopColon: true
125bf8d6ac7SJohn WedigSpaceInEmptyParentheses: false
126bf8d6ac7SJohn WedigSpacesBeforeTrailingComments: 1
127ff1b64f0SPatrick WilliamsSpacesInAngles: Never
128bf8d6ac7SJohn WedigSpacesInContainerLiterals: true
129bf8d6ac7SJohn WedigSpacesInCStyleCastParentheses: false
130bf8d6ac7SJohn WedigSpacesInParentheses: false
131bf8d6ac7SJohn WedigSpacesInSquareBrackets: false
132bf8d6ac7SJohn WedigStandard:        Latest
133bf8d6ac7SJohn WedigTabWidth:        4
134bf8d6ac7SJohn WedigUseTab:          Never
135bf8d6ac7SJohn Wedig...
136bf8d6ac7SJohn Wedig
137