xref: /openbmc/phosphor-hwmon/.clang-format (revision 02e598ab)
1043d3230SPatrick Venture---
2043d3230SPatrick VentureLanguage:        Cpp
3043d3230SPatrick Venture# BasedOnStyle:  LLVM
4043d3230SPatrick VentureAccessModifierOffset: -2
5043d3230SPatrick VentureAlignAfterOpenBracket: Align
6043d3230SPatrick VentureAlignConsecutiveAssignments: false
7043d3230SPatrick VentureAlignConsecutiveDeclarations: false
8e8771fd4SPatrick WilliamsAlignEscapedNewlines: Right
9e8771fd4SPatrick WilliamsAlignOperands:  Align
10e8771fd4SPatrick WilliamsAlignTrailingComments:
11e8771fd4SPatrick Williams  Kind: Always
12e8771fd4SPatrick Williams  OverEmptyLines: 1
13043d3230SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
14e8771fd4SPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15043d3230SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
16e8771fd4SPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17c8e818ddSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18c8e818ddSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19043d3230SPatrick VentureAllowShortLoopsOnASingleLine: false
20043d3230SPatrick VentureAlwaysBreakAfterReturnType: None
21043d3230SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22e8771fd4SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23043d3230SPatrick VentureBinPackArguments: true
24043d3230SPatrick VentureBinPackParameters: true
25c8e818ddSPatrick WilliamsBitFieldColonSpacing: None
26043d3230SPatrick VentureBraceWrapping:
27e8771fd4SPatrick Williams  AfterCaseLabel:  true
28043d3230SPatrick Venture  AfterClass:      true
29043d3230SPatrick Venture  AfterControlStatement: true
30043d3230SPatrick Venture  AfterEnum:       true
31c8e818ddSPatrick Williams  AfterExternBlock: true
32043d3230SPatrick Venture  AfterFunction:   true
33043d3230SPatrick Venture  AfterNamespace:  true
34043d3230SPatrick Venture  AfterObjCDeclaration: true
35043d3230SPatrick Venture  AfterStruct:     true
36043d3230SPatrick Venture  AfterUnion:      true
37043d3230SPatrick Venture  BeforeCatch:     true
38043d3230SPatrick Venture  BeforeElse:      true
39c8e818ddSPatrick Williams  BeforeLambdaBody: false
40c8e818ddSPatrick Williams  BeforeWhile:     false
41043d3230SPatrick Venture  IndentBraces:    false
42e8771fd4SPatrick Williams  SplitEmptyFunction:   false
43e8771fd4SPatrick Williams  SplitEmptyRecord:     false
44e8771fd4SPatrick Williams  SplitEmptyNamespace:  false
45e8771fd4SPatrick WilliamsBreakAfterAttributes: Never
46043d3230SPatrick VentureBreakBeforeBinaryOperators: None
47043d3230SPatrick VentureBreakBeforeBraces: Custom
48043d3230SPatrick VentureBreakBeforeTernaryOperators: true
49043d3230SPatrick VentureBreakConstructorInitializers: AfterColon
50e8771fd4SPatrick WilliamsBreakInheritanceList: AfterColon
51e8771fd4SPatrick WilliamsBreakStringLiterals: false
52043d3230SPatrick VentureColumnLimit:     80
53043d3230SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
54e8771fd4SPatrick WilliamsCompactNamespaces: false
55043d3230SPatrick VentureConstructorInitializerIndentWidth: 4
56043d3230SPatrick VentureContinuationIndentWidth: 4
57043d3230SPatrick VentureCpp11BracedListStyle: true
58cc86915bSPatrick VentureDerivePointerAlignment: false
59043d3230SPatrick VentureDisableFormat:   false
60043d3230SPatrick VentureFixNamespaceComments: true
61c8e818ddSPatrick WilliamsForEachMacros:
62c8e818ddSPatrick Williams  - foreach
63c8e818ddSPatrick Williams  - Q_FOREACH
64c8e818ddSPatrick Williams  - BOOST_FOREACH
65043d3230SPatrick VentureIncludeBlocks: Regroup
66043d3230SPatrick VentureIncludeCategories:
67043d3230SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
68e8771fd4SPatrick Williams    Priority:        7
69043d3230SPatrick Venture  - Regex:           '^"config.h"'
70043d3230SPatrick Venture    Priority:        -1
71e8771fd4SPatrick Williams  - Regex:           '^".*\.h"'
72043d3230SPatrick Venture    Priority:        1
73e8771fd4SPatrick Williams  - Regex:           '^".*\.hpp"'
74043d3230SPatrick Venture    Priority:        2
75e8771fd4SPatrick Williams  - Regex:           '^<.*\.h>'
76043d3230SPatrick Venture    Priority:        3
77e8771fd4SPatrick Williams  - Regex:           '^<.*\.hpp>'
78043d3230SPatrick Venture    Priority:        4
79e8771fd4SPatrick Williams  - Regex:           '^<.*'
80e8771fd4SPatrick Williams    Priority:        5
81e8771fd4SPatrick Williams  - Regex:           '.*'
82e8771fd4SPatrick Williams    Priority:        6
83043d3230SPatrick VentureIndentCaseLabels: true
84c8e818ddSPatrick WilliamsIndentExternBlock: NoIndent
85e8771fd4SPatrick WilliamsIndentRequiresClause: true
86043d3230SPatrick VentureIndentWidth:     4
87043d3230SPatrick VentureIndentWrappedFunctionNames: true
88e8771fd4SPatrick WilliamsInsertNewlineAtEOF: true
89e8771fd4SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*02e598abSPatrick WilliamsLambdaBodyIndentation: Signature
91e8771fd4SPatrick WilliamsLineEnding: LF
92043d3230SPatrick VentureMacroBlockBegin: ''
93043d3230SPatrick VentureMacroBlockEnd:   ''
94043d3230SPatrick VentureMaxEmptyLinesToKeep: 1
95043d3230SPatrick VentureNamespaceIndentation: None
96043d3230SPatrick VentureObjCBlockIndentWidth: 2
97043d3230SPatrick VentureObjCSpaceAfterProperty: false
98043d3230SPatrick VentureObjCSpaceBeforeProtocolList: true
99c8e818ddSPatrick WilliamsPackConstructorInitializers: BinPack
100e8771fd4SPatrick WilliamsPenaltyBreakAssignment: 25
101*02e598abSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102043d3230SPatrick VenturePenaltyBreakComment: 300
103043d3230SPatrick VenturePenaltyBreakFirstLessLess: 120
104043d3230SPatrick VenturePenaltyBreakString: 1000
105*02e598abSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106043d3230SPatrick VenturePenaltyExcessCharacter: 1000000
107043d3230SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
108*02e598abSPatrick WilliamsPenaltyIndentedWhitespace: 1
109c8e818ddSPatrick WilliamsPointerAlignment: Left
110e8771fd4SPatrick WilliamsQualifierAlignment: Left
111e8771fd4SPatrick WilliamsReferenceAlignment: Left
112043d3230SPatrick VentureReflowComments:  true
113e8771fd4SPatrick WilliamsRequiresClausePosition: OwnLine
114e8771fd4SPatrick WilliamsRequiresExpressionIndentation: Keyword
115c8e818ddSPatrick WilliamsSortIncludes: CaseSensitive
116cc86915bSPatrick VentureSortUsingDeclarations: true
117043d3230SPatrick VentureSpaceAfterCStyleCast: false
118e8771fd4SPatrick WilliamsSpaceAfterTemplateKeyword: true
119043d3230SPatrick VentureSpaceBeforeAssignmentOperators: true
120e8771fd4SPatrick WilliamsSpaceBeforeCpp11BracedList: false
121e8771fd4SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
122e8771fd4SPatrick WilliamsSpaceBeforeInheritanceColon: true
123043d3230SPatrick VentureSpaceBeforeParens: ControlStatements
124e8771fd4SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
125043d3230SPatrick VentureSpaceInEmptyParentheses: false
126043d3230SPatrick VentureSpacesBeforeTrailingComments: 1
127c8e818ddSPatrick WilliamsSpacesInAngles: Never
128043d3230SPatrick VentureSpacesInContainerLiterals: true
129043d3230SPatrick VentureSpacesInCStyleCastParentheses: false
130043d3230SPatrick VentureSpacesInParentheses: false
131043d3230SPatrick VentureSpacesInSquareBrackets: false
132e8771fd4SPatrick WilliamsStandard:        Latest
133043d3230SPatrick VentureTabWidth:        4
134043d3230SPatrick VentureUseTab:          Never
135043d3230SPatrick Venture...
136043d3230SPatrick Venture
137