xref: /openbmc/phosphor-hwmon/.clang-format (revision c8e818dd)
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
17*c8e818ddSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*c8e818ddSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19043d3230SPatrick VentureAllowShortLoopsOnASingleLine: false
20043d3230SPatrick VentureAlwaysBreakAfterReturnType: None
21043d3230SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
22e8771fd4SPatrick WilliamsAlwaysBreakTemplateDeclarations: Yes
23043d3230SPatrick VentureBinPackArguments: true
24043d3230SPatrick VentureBinPackParameters: true
25*c8e818ddSPatrick WilliamsBitFieldColonSpacing: None
26043d3230SPatrick VentureBraceWrapping:
27e8771fd4SPatrick Williams  AfterCaseLabel:  true
28043d3230SPatrick Venture  AfterClass:      true
29043d3230SPatrick Venture  AfterControlStatement: true
30043d3230SPatrick Venture  AfterEnum:       true
31*c8e818ddSPatrick 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
39*c8e818ddSPatrick Williams  BeforeLambdaBody: false
40*c8e818ddSPatrick 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
61*c8e818ddSPatrick WilliamsForEachMacros:
62*c8e818ddSPatrick Williams  - foreach
63*c8e818ddSPatrick Williams  - Q_FOREACH
64*c8e818ddSPatrick 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
84*c8e818ddSPatrick WilliamsIndentExternBlock: NoIndent
85e8771fd4SPatrick WilliamsIndentRequiresClause: true
86043d3230SPatrick VentureIndentWidth:     4
87043d3230SPatrick VentureIndentWrappedFunctionNames: true
88e8771fd4SPatrick WilliamsInsertNewlineAtEOF: true
89e8771fd4SPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90e8771fd4SPatrick WilliamsLambdaBodyIndentation: OuterScope
91e8771fd4SPatrick WilliamsLineEnding: LF
92043d3230SPatrick VentureMacroBlockBegin: ''
93043d3230SPatrick VentureMacroBlockEnd:   ''
94043d3230SPatrick VentureMaxEmptyLinesToKeep: 1
95043d3230SPatrick VentureNamespaceIndentation: None
96043d3230SPatrick VentureObjCBlockIndentWidth: 2
97043d3230SPatrick VentureObjCSpaceAfterProperty: false
98043d3230SPatrick VentureObjCSpaceBeforeProtocolList: true
99*c8e818ddSPatrick WilliamsPackConstructorInitializers: BinPack
100e8771fd4SPatrick WilliamsPenaltyBreakAssignment: 25
101043d3230SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
102043d3230SPatrick VenturePenaltyBreakComment: 300
103043d3230SPatrick VenturePenaltyBreakFirstLessLess: 120
104043d3230SPatrick VenturePenaltyBreakString: 1000
105043d3230SPatrick VenturePenaltyExcessCharacter: 1000000
106043d3230SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
107e8771fd4SPatrick WilliamsPenaltyIndentedWhitespace: 0
108*c8e818ddSPatrick WilliamsPointerAlignment: Left
109e8771fd4SPatrick WilliamsQualifierAlignment: Left
110e8771fd4SPatrick WilliamsReferenceAlignment: Left
111043d3230SPatrick VentureReflowComments:  true
112e8771fd4SPatrick WilliamsRequiresClausePosition: OwnLine
113e8771fd4SPatrick WilliamsRequiresExpressionIndentation: Keyword
114*c8e818ddSPatrick WilliamsSortIncludes: CaseSensitive
115cc86915bSPatrick VentureSortUsingDeclarations: true
116043d3230SPatrick VentureSpaceAfterCStyleCast: false
117e8771fd4SPatrick WilliamsSpaceAfterTemplateKeyword: true
118043d3230SPatrick VentureSpaceBeforeAssignmentOperators: true
119e8771fd4SPatrick WilliamsSpaceBeforeCpp11BracedList: false
120e8771fd4SPatrick WilliamsSpaceBeforeCtorInitializerColon: true
121e8771fd4SPatrick WilliamsSpaceBeforeInheritanceColon: true
122043d3230SPatrick VentureSpaceBeforeParens: ControlStatements
123e8771fd4SPatrick WilliamsSpaceBeforeRangeBasedForLoopColon: true
124043d3230SPatrick VentureSpaceInEmptyParentheses: false
125043d3230SPatrick VentureSpacesBeforeTrailingComments: 1
126*c8e818ddSPatrick WilliamsSpacesInAngles: Never
127043d3230SPatrick VentureSpacesInContainerLiterals: true
128043d3230SPatrick VentureSpacesInCStyleCastParentheses: false
129043d3230SPatrick VentureSpacesInParentheses: false
130043d3230SPatrick VentureSpacesInSquareBrackets: false
131e8771fd4SPatrick WilliamsStandard:        Latest
132043d3230SPatrick VentureTabWidth:        4
133043d3230SPatrick VentureUseTab:          Never
134043d3230SPatrick Venture...
135043d3230SPatrick Venture
136