xref: /openbmc/ipmi-fru-parser/.clang-format (revision cfa96afa)
1c9508db8SPatrick Venture---
2c9508db8SPatrick VentureLanguage:        Cpp
3c9508db8SPatrick Venture# BasedOnStyle:  LLVM
4c9508db8SPatrick VentureAccessModifierOffset: -2
5c9508db8SPatrick VentureAlignAfterOpenBracket: Align
6c9508db8SPatrick VentureAlignConsecutiveAssignments: false
7c9508db8SPatrick VentureAlignConsecutiveDeclarations: false
8*cfa96afaSPatrick WilliamsAlignEscapedNewlines: Right
9*cfa96afaSPatrick WilliamsAlignOperands:  Align
10*cfa96afaSPatrick WilliamsAlignTrailingComments:
11*cfa96afaSPatrick Williams  Kind: Always
12*cfa96afaSPatrick Williams  OverEmptyLines: 1
13c9508db8SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14*cfa96afaSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15c9508db8SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16*cfa96afaSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17c9508db8SPatrick VentureAllowShortIfStatementsOnASingleLine: false
18c9508db8SPatrick VentureAllowShortLoopsOnASingleLine: false
19c9508db8SPatrick VentureAlwaysBreakAfterReturnType: None
20c9508db8SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
21*cfa96afaSPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
22c9508db8SPatrick VentureBinPackArguments: true
23c9508db8SPatrick VentureBinPackParameters: true
24c9508db8SPatrick VentureBraceWrapping:
25*cfa96afaSPatrick Williams  AfterCaseLabel:  true
26c9508db8SPatrick Venture  AfterClass:      true
27c9508db8SPatrick Venture  AfterControlStatement: true
28c9508db8SPatrick Venture  AfterEnum:       true
29c9508db8SPatrick Venture  AfterFunction:   true
30c9508db8SPatrick Venture  AfterNamespace:  true
31c9508db8SPatrick Venture  AfterObjCDeclaration: true
32c9508db8SPatrick Venture  AfterStruct:     true
33c9508db8SPatrick Venture  AfterUnion:      true
34*cfa96afaSPatrick Williams  AfterExternBlock: true
35c9508db8SPatrick Venture  BeforeCatch:     true
36c9508db8SPatrick Venture  BeforeElse:      true
37c9508db8SPatrick Venture  IndentBraces:    false
38*cfa96afaSPatrick Williams  SplitEmptyFunction:   false
39*cfa96afaSPatrick Williams  SplitEmptyRecord:     false
40*cfa96afaSPatrick Williams  SplitEmptyNamespace:  false
41*cfa96afaSPatrick WilliamsBreakAfterAttributes: Never
42c9508db8SPatrick VentureBreakBeforeBinaryOperators: None
43c9508db8SPatrick VentureBreakBeforeBraces: Custom
44c9508db8SPatrick VentureBreakBeforeTernaryOperators: true
45c9508db8SPatrick VentureBreakConstructorInitializers: AfterColon
46*cfa96afaSPatrick WilliamsBreakInheritanceList: AfterColon
47*cfa96afaSPatrick WilliamsBreakStringLiterals: false
48c9508db8SPatrick VentureColumnLimit:     80
49c9508db8SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
50*cfa96afaSPatrick WilliamsCompactNamespaces: false
51c9508db8SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
52c9508db8SPatrick VentureConstructorInitializerIndentWidth: 4
53c9508db8SPatrick VentureContinuationIndentWidth: 4
54c9508db8SPatrick VentureCpp11BracedListStyle: true
55*cfa96afaSPatrick WilliamsDeriveLineEnding: false
56c9508db8SPatrick VentureDerivePointerAlignment: false
57c9508db8SPatrick VenturePointerAlignment: Left
58c9508db8SPatrick VentureDisableFormat:   false
59c9508db8SPatrick VentureExperimentalAutoDetectBinPacking: false
60c9508db8SPatrick VentureFixNamespaceComments: true
61c9508db8SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62c9508db8SPatrick VentureIncludeBlocks: Regroup
63c9508db8SPatrick VentureIncludeCategories:
64c9508db8SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
65*cfa96afaSPatrick Williams    Priority:        7
66c9508db8SPatrick Venture  - Regex:           '^"config.h"'
67c9508db8SPatrick Venture    Priority:        -1
68*cfa96afaSPatrick Williams  - Regex:           '^".*\.h"'
69c9508db8SPatrick Venture    Priority:        1
70*cfa96afaSPatrick Williams  - Regex:           '^".*\.hpp"'
71c9508db8SPatrick Venture    Priority:        2
72*cfa96afaSPatrick Williams  - Regex:           '^<.*\.h>'
73c9508db8SPatrick Venture    Priority:        3
74*cfa96afaSPatrick Williams  - Regex:           '^<.*\.hpp>'
75c9508db8SPatrick Venture    Priority:        4
76*cfa96afaSPatrick Williams  - Regex:           '^<.*'
77*cfa96afaSPatrick Williams    Priority:        5
78*cfa96afaSPatrick Williams  - Regex:           '.*'
79*cfa96afaSPatrick Williams    Priority:        6
80c9508db8SPatrick VentureIndentCaseLabels: true
81*cfa96afaSPatrick WilliamsIndentRequiresClause: true
82c9508db8SPatrick VentureIndentWidth:     4
83c9508db8SPatrick VentureIndentWrappedFunctionNames: true
84*cfa96afaSPatrick WilliamsInsertNewlineAtEOF: true
85*cfa96afaSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
86*cfa96afaSPatrick WilliamsLambdaBodyIndentation: OuterScope
87*cfa96afaSPatrick WilliamsLineEnding: LF
88c9508db8SPatrick VentureMacroBlockBegin: ''
89c9508db8SPatrick VentureMacroBlockEnd:   ''
90c9508db8SPatrick VentureMaxEmptyLinesToKeep: 1
91c9508db8SPatrick VentureNamespaceIndentation: None
92c9508db8SPatrick VentureObjCBlockIndentWidth: 2
93c9508db8SPatrick VentureObjCSpaceAfterProperty: false
94c9508db8SPatrick VentureObjCSpaceBeforeProtocolList: true
95*cfa96afaSPatrick WilliamsPenaltyBreakAssignment: 25
96c9508db8SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
97c9508db8SPatrick VenturePenaltyBreakComment: 300
98c9508db8SPatrick VenturePenaltyBreakFirstLessLess: 120
99c9508db8SPatrick VenturePenaltyBreakString: 1000
100c9508db8SPatrick VenturePenaltyExcessCharacter: 1000000
101c9508db8SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
102*cfa96afaSPatrick WilliamsPenaltyIndentedWhitespace: 0
103*cfa96afaSPatrick WilliamsQualifierAlignment: Left
104*cfa96afaSPatrick WilliamsReferenceAlignment: Left
105c9508db8SPatrick VentureReflowComments:  true
106*cfa96afaSPatrick WilliamsRequiresClausePosition: OwnLine
107*cfa96afaSPatrick WilliamsRequiresExpressionIndentation: Keyword
108c9508db8SPatrick VentureSortIncludes:    true
109c9508db8SPatrick VentureSortUsingDeclarations: true
110c9508db8SPatrick VentureSpaceAfterCStyleCast: false
111*cfa96afaSPatrick WilliamsSpaceAfterTemplateKeyword: true
112c9508db8SPatrick VentureSpaceBeforeAssignmentOperators: true
113*cfa96afaSPatrick WilliamsSpaceBeforeCpp11BracedList: false
114*cfa96afaSPatrick WilliamsSpaceBeforeCtorInitializerColon: true
115*cfa96afaSPatrick WilliamsSpaceBeforeInheritanceColon: true
116c9508db8SPatrick VentureSpaceBeforeParens: ControlStatements
117*cfa96afaSPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
118c9508db8SPatrick VentureSpaceInEmptyParentheses: false
119c9508db8SPatrick VentureSpacesBeforeTrailingComments: 1
120c9508db8SPatrick VentureSpacesInAngles:  false
121c9508db8SPatrick VentureSpacesInContainerLiterals: true
122c9508db8SPatrick VentureSpacesInCStyleCastParentheses: false
123c9508db8SPatrick VentureSpacesInParentheses: false
124c9508db8SPatrick VentureSpacesInSquareBrackets: false
125*cfa96afaSPatrick WilliamsStandard:        Latest
126c9508db8SPatrick VentureTabWidth:        4
127c9508db8SPatrick VentureUseTab:          Never
128c9508db8SPatrick Venture...
129c9508db8SPatrick Venture
130