xref: /openbmc/phosphor-power/.clang-format (revision 319b0ddd)
1f0f02b9aSMatt Spinler---
2f0f02b9aSMatt SpinlerLanguage:        Cpp
3f0f02b9aSMatt Spinler# BasedOnStyle:  LLVM
4f0f02b9aSMatt SpinlerAccessModifierOffset: -2
5f0f02b9aSMatt SpinlerAlignAfterOpenBracket: Align
6f0f02b9aSMatt SpinlerAlignConsecutiveAssignments: false
7f0f02b9aSMatt SpinlerAlignConsecutiveDeclarations: false
8d1bc4cecSBrandon WymanAlignEscapedNewlines: Right
948781aefSPatrick WilliamsAlignOperands:  Align
1048781aefSPatrick WilliamsAlignTrailingComments:
1148781aefSPatrick Williams  Kind: Always
1248781aefSPatrick Williams  OverEmptyLines: 1
13f0f02b9aSMatt SpinlerAllowAllParametersOfDeclarationOnNextLine: true
1448781aefSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15f0f02b9aSMatt SpinlerAllowShortCaseLabelsOnASingleLine: false
1648781aefSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17*319b0dddSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18*319b0dddSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19f0f02b9aSMatt SpinlerAllowShortLoopsOnASingleLine: false
20f0f02b9aSMatt SpinlerAlwaysBreakAfterReturnType: None
21f0f02b9aSMatt SpinlerAlwaysBreakBeforeMultilineStrings: false
22d1bc4cecSBrandon WymanAlwaysBreakTemplateDeclarations: Yes
23f0f02b9aSMatt SpinlerBinPackArguments: true
24f0f02b9aSMatt SpinlerBinPackParameters: true
25*319b0dddSPatrick WilliamsBitFieldColonSpacing: None
26f0f02b9aSMatt SpinlerBraceWrapping:
2706a905d9SShawn McCarney  AfterCaseLabel:  true
28f0f02b9aSMatt Spinler  AfterClass:      true
29f0f02b9aSMatt Spinler  AfterControlStatement: true
30f0f02b9aSMatt Spinler  AfterEnum:       true
31*319b0dddSPatrick Williams  AfterExternBlock: true
32f0f02b9aSMatt Spinler  AfterFunction:   true
33f0f02b9aSMatt Spinler  AfterNamespace:  true
34f0f02b9aSMatt Spinler  AfterObjCDeclaration: true
35f0f02b9aSMatt Spinler  AfterStruct:     true
36f0f02b9aSMatt Spinler  AfterUnion:      true
37f0f02b9aSMatt Spinler  BeforeCatch:     true
38f0f02b9aSMatt Spinler  BeforeElse:      true
39*319b0dddSPatrick Williams  BeforeLambdaBody: false
40*319b0dddSPatrick Williams  BeforeWhile:     false
41f0f02b9aSMatt Spinler  IndentBraces:    false
420c9a33d6SAdriana Kobylak  SplitEmptyFunction:   false
430c9a33d6SAdriana Kobylak  SplitEmptyRecord:     false
440c9a33d6SAdriana Kobylak  SplitEmptyNamespace:  false
4548781aefSPatrick WilliamsBreakAfterAttributes: Never
46f0f02b9aSMatt SpinlerBreakBeforeBinaryOperators: None
47f0f02b9aSMatt SpinlerBreakBeforeBraces: Custom
48f0f02b9aSMatt SpinlerBreakBeforeTernaryOperators: true
49f0f02b9aSMatt SpinlerBreakConstructorInitializers: AfterColon
50d1bc4cecSBrandon WymanBreakInheritanceList: AfterColon
510c9a33d6SAdriana KobylakBreakStringLiterals: false
52f0f02b9aSMatt SpinlerColumnLimit:     80
53f0f02b9aSMatt SpinlerCommentPragmas:  '^ IWYU pragma:'
54d1bc4cecSBrandon WymanCompactNamespaces: false
55f0f02b9aSMatt SpinlerConstructorInitializerIndentWidth: 4
56f0f02b9aSMatt SpinlerContinuationIndentWidth: 4
57f0f02b9aSMatt SpinlerCpp11BracedListStyle: true
58f0f02b9aSMatt SpinlerDerivePointerAlignment: false
59f0f02b9aSMatt SpinlerDisableFormat:   false
60f0f02b9aSMatt SpinlerFixNamespaceComments: true
61*319b0dddSPatrick WilliamsForEachMacros:
62*319b0dddSPatrick Williams  - foreach
63*319b0dddSPatrick Williams  - Q_FOREACH
64*319b0dddSPatrick Williams  - BOOST_FOREACH
65f0f02b9aSMatt SpinlerIncludeBlocks: Regroup
66f0f02b9aSMatt SpinlerIncludeCategories:
67f0f02b9aSMatt Spinler  - Regex:           '^[<"](gtest|gmock)'
68d1bc4cecSBrandon Wyman    Priority:        7
69f0f02b9aSMatt Spinler  - Regex:           '^"config.h"'
70f0f02b9aSMatt Spinler    Priority:        -1
71d1bc4cecSBrandon Wyman  - Regex:           '^".*\.h"'
72f0f02b9aSMatt Spinler    Priority:        1
73d1bc4cecSBrandon Wyman  - Regex:           '^".*\.hpp"'
74f0f02b9aSMatt Spinler    Priority:        2
75d1bc4cecSBrandon Wyman  - Regex:           '^<.*\.h>'
76f0f02b9aSMatt Spinler    Priority:        3
77d1bc4cecSBrandon Wyman  - Regex:           '^<.*\.hpp>'
78f0f02b9aSMatt Spinler    Priority:        4
79d1bc4cecSBrandon Wyman  - Regex:           '^<.*'
80d1bc4cecSBrandon Wyman    Priority:        5
81d1bc4cecSBrandon Wyman  - Regex:           '.*'
82d1bc4cecSBrandon Wyman    Priority:        6
83f0f02b9aSMatt SpinlerIndentCaseLabels: true
84*319b0dddSPatrick WilliamsIndentExternBlock: NoIndent
8548781aefSPatrick WilliamsIndentRequiresClause: true
86f0f02b9aSMatt SpinlerIndentWidth:     4
87f0f02b9aSMatt SpinlerIndentWrappedFunctionNames: true
8848781aefSPatrick WilliamsInsertNewlineAtEOF: true
8948781aefSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
9048781aefSPatrick WilliamsLambdaBodyIndentation: OuterScope
9148781aefSPatrick WilliamsLineEnding: LF
92f0f02b9aSMatt SpinlerMacroBlockBegin: ''
93f0f02b9aSMatt SpinlerMacroBlockEnd:   ''
94f0f02b9aSMatt SpinlerMaxEmptyLinesToKeep: 1
95f0f02b9aSMatt SpinlerNamespaceIndentation: None
96f0f02b9aSMatt SpinlerObjCBlockIndentWidth: 2
97f0f02b9aSMatt SpinlerObjCSpaceAfterProperty: false
98f0f02b9aSMatt SpinlerObjCSpaceBeforeProtocolList: true
99*319b0dddSPatrick WilliamsPackConstructorInitializers: BinPack
10048781aefSPatrick WilliamsPenaltyBreakAssignment: 25
101f0f02b9aSMatt SpinlerPenaltyBreakBeforeFirstCallParameter: 19
102f0f02b9aSMatt SpinlerPenaltyBreakComment: 300
103f0f02b9aSMatt SpinlerPenaltyBreakFirstLessLess: 120
104f0f02b9aSMatt SpinlerPenaltyBreakString: 1000
105f0f02b9aSMatt SpinlerPenaltyExcessCharacter: 1000000
106f0f02b9aSMatt SpinlerPenaltyReturnTypeOnItsOwnLine: 60
10748781aefSPatrick WilliamsPenaltyIndentedWhitespace: 0
108*319b0dddSPatrick WilliamsPointerAlignment: Left
10948781aefSPatrick WilliamsQualifierAlignment: Left
11048781aefSPatrick WilliamsReferenceAlignment: Left
111f0f02b9aSMatt SpinlerReflowComments:  true
11248781aefSPatrick WilliamsRequiresClausePosition: OwnLine
11348781aefSPatrick WilliamsRequiresExpressionIndentation: Keyword
114*319b0dddSPatrick WilliamsSortIncludes: CaseSensitive
115f0f02b9aSMatt SpinlerSortUsingDeclarations: true
116f0f02b9aSMatt SpinlerSpaceAfterCStyleCast: false
117d1bc4cecSBrandon WymanSpaceAfterTemplateKeyword: true
118f0f02b9aSMatt SpinlerSpaceBeforeAssignmentOperators: true
119d1bc4cecSBrandon WymanSpaceBeforeCpp11BracedList: false
120d1bc4cecSBrandon WymanSpaceBeforeCtorInitializerColon: true
121d1bc4cecSBrandon WymanSpaceBeforeInheritanceColon: true
122f0f02b9aSMatt SpinlerSpaceBeforeParens: ControlStatements
123d1bc4cecSBrandon WymanSpaceBeforeRangeBasedForLoopColon: true
124f0f02b9aSMatt SpinlerSpaceInEmptyParentheses: false
125f0f02b9aSMatt SpinlerSpacesBeforeTrailingComments: 1
126*319b0dddSPatrick WilliamsSpacesInAngles: Never
127f0f02b9aSMatt SpinlerSpacesInContainerLiterals: true
128f0f02b9aSMatt SpinlerSpacesInCStyleCastParentheses: false
129f0f02b9aSMatt SpinlerSpacesInParentheses: false
130f0f02b9aSMatt SpinlerSpacesInSquareBrackets: false
1311b5de462SBrandon WymanStandard:        Latest
132f0f02b9aSMatt SpinlerTabWidth:        4
133f0f02b9aSMatt SpinlerUseTab:          Never
134f0f02b9aSMatt Spinler...
1350c9a33d6SAdriana Kobylak
136