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