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