xref: /openbmc/phosphor-hwmon/.clang-format (revision cc86915b)
1043d3230SPatrick Venture---
2043d3230SPatrick VentureLanguage:        Cpp
3043d3230SPatrick Venture# BasedOnStyle:  LLVM
4043d3230SPatrick VentureAccessModifierOffset: -2
5043d3230SPatrick VentureAlignAfterOpenBracket: Align
6043d3230SPatrick VentureAlignConsecutiveAssignments: false
7043d3230SPatrick VentureAlignConsecutiveDeclarations: false
8043d3230SPatrick VentureAlignEscapedNewlinesLeft: false
9043d3230SPatrick VentureAlignOperands:   true
10043d3230SPatrick VentureAlignTrailingComments: true
11043d3230SPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
12043d3230SPatrick VentureAllowShortBlocksOnASingleLine: false
13043d3230SPatrick VentureAllowShortCaseLabelsOnASingleLine: false
14043d3230SPatrick VentureAllowShortFunctionsOnASingleLine: None
15043d3230SPatrick VentureAllowShortIfStatementsOnASingleLine: false
16043d3230SPatrick VentureAllowShortLoopsOnASingleLine: false
17043d3230SPatrick VentureAlwaysBreakAfterDefinitionReturnType: None
18043d3230SPatrick VentureAlwaysBreakAfterReturnType: None
19043d3230SPatrick VentureAlwaysBreakBeforeMultilineStrings: false
20043d3230SPatrick VentureAlwaysBreakTemplateDeclarations: true
21043d3230SPatrick VentureBinPackArguments: true
22043d3230SPatrick VentureBinPackParameters: true
23043d3230SPatrick VentureBraceWrapping:
24043d3230SPatrick Venture  AfterClass:      true
25043d3230SPatrick Venture  AfterControlStatement: true
26043d3230SPatrick Venture  AfterEnum:       true
27043d3230SPatrick Venture  AfterFunction:   true
28043d3230SPatrick Venture  AfterNamespace:  true
29043d3230SPatrick Venture  AfterObjCDeclaration: true
30043d3230SPatrick Venture  AfterStruct:     true
31043d3230SPatrick Venture  AfterUnion:      true
32043d3230SPatrick Venture  BeforeCatch:     true
33043d3230SPatrick Venture  BeforeElse:      true
34043d3230SPatrick Venture  IndentBraces:    false
35043d3230SPatrick VentureBreakBeforeBinaryOperators: None
36043d3230SPatrick VentureBreakBeforeBraces: Custom
37043d3230SPatrick VentureBreakBeforeTernaryOperators: true
38043d3230SPatrick VentureBreakConstructorInitializers: AfterColon
39043d3230SPatrick VentureColumnLimit:     80
40043d3230SPatrick VentureCommentPragmas:  '^ IWYU pragma:'
41043d3230SPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
42043d3230SPatrick VentureConstructorInitializerIndentWidth: 4
43043d3230SPatrick VentureContinuationIndentWidth: 4
44043d3230SPatrick VentureCpp11BracedListStyle: true
45*cc86915bSPatrick VentureDerivePointerAlignment: false
46043d3230SPatrick VenturePointerAlignment: Left
47043d3230SPatrick VentureDisableFormat:   false
48043d3230SPatrick VentureExperimentalAutoDetectBinPacking: false
49043d3230SPatrick VentureFixNamespaceComments: true
50043d3230SPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
51043d3230SPatrick VentureIncludeBlocks: Regroup
52043d3230SPatrick VentureIncludeCategories:
53043d3230SPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
54043d3230SPatrick Venture    Priority:        5
55043d3230SPatrick Venture  - Regex:           '^"config.h"'
56043d3230SPatrick Venture    Priority:        -1
57043d3230SPatrick Venture  - Regex:           '^".*\.hpp"'
58043d3230SPatrick Venture    Priority:        1
59043d3230SPatrick Venture  - Regex:           '^<.*\.h>'
60043d3230SPatrick Venture    Priority:        2
61043d3230SPatrick Venture  - Regex:           '^<.*'
62043d3230SPatrick Venture    Priority:        3
63043d3230SPatrick Venture  - Regex:           '.*'
64043d3230SPatrick Venture    Priority:        4
65043d3230SPatrick VentureIndentCaseLabels: true
66043d3230SPatrick VentureIndentWidth:     4
67043d3230SPatrick VentureIndentWrappedFunctionNames: true
68043d3230SPatrick VentureKeepEmptyLinesAtTheStartOfBlocks: true
69043d3230SPatrick VentureMacroBlockBegin: ''
70043d3230SPatrick VentureMacroBlockEnd:   ''
71043d3230SPatrick VentureMaxEmptyLinesToKeep: 1
72043d3230SPatrick VentureNamespaceIndentation: None
73043d3230SPatrick VentureObjCBlockIndentWidth: 2
74043d3230SPatrick VentureObjCSpaceAfterProperty: false
75043d3230SPatrick VentureObjCSpaceBeforeProtocolList: true
76043d3230SPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
77043d3230SPatrick VenturePenaltyBreakComment: 300
78043d3230SPatrick VenturePenaltyBreakFirstLessLess: 120
79043d3230SPatrick VenturePenaltyBreakString: 1000
80043d3230SPatrick VenturePenaltyExcessCharacter: 1000000
81043d3230SPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
82043d3230SPatrick VentureReflowComments:  true
83043d3230SPatrick VentureSortIncludes:    true
84*cc86915bSPatrick VentureSortUsingDeclarations: true
85043d3230SPatrick VentureSpaceAfterCStyleCast: false
86043d3230SPatrick VentureSpaceBeforeAssignmentOperators: true
87043d3230SPatrick VentureSpaceBeforeParens: ControlStatements
88043d3230SPatrick VentureSpaceInEmptyParentheses: false
89043d3230SPatrick VentureSpacesBeforeTrailingComments: 1
90043d3230SPatrick VentureSpacesInAngles:  false
91043d3230SPatrick VentureSpacesInContainerLiterals: true
92043d3230SPatrick VentureSpacesInCStyleCastParentheses: false
93043d3230SPatrick VentureSpacesInParentheses: false
94043d3230SPatrick VentureSpacesInSquareBrackets: false
95043d3230SPatrick VentureStandard:        Cpp11
96043d3230SPatrick VentureTabWidth:        4
97043d3230SPatrick VentureUseTab:          Never
98043d3230SPatrick Venture...
99043d3230SPatrick Venture
100