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