xref: /openbmc/phosphor-power/.clang-format (revision f5402197)
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
17319b0dddSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18319b0dddSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19f0f02b9aSMatt SpinlerAllowShortLoopsOnASingleLine: false
20f0f02b9aSMatt SpinlerAlwaysBreakAfterReturnType: None
21f0f02b9aSMatt SpinlerAlwaysBreakBeforeMultilineStrings: false
22d1bc4cecSBrandon WymanAlwaysBreakTemplateDeclarations: Yes
23f0f02b9aSMatt SpinlerBinPackArguments: true
24f0f02b9aSMatt SpinlerBinPackParameters: true
25319b0dddSPatrick WilliamsBitFieldColonSpacing: None
26f0f02b9aSMatt SpinlerBraceWrapping:
2706a905d9SShawn McCarney  AfterCaseLabel:  true
28f0f02b9aSMatt Spinler  AfterClass:      true
29f0f02b9aSMatt Spinler  AfterControlStatement: true
30f0f02b9aSMatt Spinler  AfterEnum:       true
31319b0dddSPatrick 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
39319b0dddSPatrick Williams  BeforeLambdaBody: false
40319b0dddSPatrick 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
61319b0dddSPatrick WilliamsForEachMacros:
62319b0dddSPatrick Williams  - foreach
63319b0dddSPatrick Williams  - Q_FOREACH
64319b0dddSPatrick 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
84319b0dddSPatrick WilliamsIndentExternBlock: NoIndent
8548781aefSPatrick WilliamsIndentRequiresClause: true
86f0f02b9aSMatt SpinlerIndentWidth:     4
87f0f02b9aSMatt SpinlerIndentWrappedFunctionNames: true
8848781aefSPatrick WilliamsInsertNewlineAtEOF: true
8948781aefSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*f5402197SPatrick WilliamsLambdaBodyIndentation: Signature
9148781aefSPatrick WilliamsLineEnding: LF
92f0f02b9aSMatt SpinlerMacroBlockBegin: ''
93f0f02b9aSMatt SpinlerMacroBlockEnd:   ''
94f0f02b9aSMatt SpinlerMaxEmptyLinesToKeep: 1
95f0f02b9aSMatt SpinlerNamespaceIndentation: None
96f0f02b9aSMatt SpinlerObjCBlockIndentWidth: 2
97f0f02b9aSMatt SpinlerObjCSpaceAfterProperty: false
98f0f02b9aSMatt SpinlerObjCSpaceBeforeProtocolList: true
99319b0dddSPatrick WilliamsPackConstructorInitializers: BinPack
10048781aefSPatrick WilliamsPenaltyBreakAssignment: 25
101*f5402197SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102f0f02b9aSMatt SpinlerPenaltyBreakComment: 300
103f0f02b9aSMatt SpinlerPenaltyBreakFirstLessLess: 120
104f0f02b9aSMatt SpinlerPenaltyBreakString: 1000
105*f5402197SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106f0f02b9aSMatt SpinlerPenaltyExcessCharacter: 1000000
107f0f02b9aSMatt SpinlerPenaltyReturnTypeOnItsOwnLine: 60
108*f5402197SPatrick WilliamsPenaltyIndentedWhitespace: 1
109319b0dddSPatrick WilliamsPointerAlignment: Left
11048781aefSPatrick WilliamsQualifierAlignment: Left
11148781aefSPatrick WilliamsReferenceAlignment: Left
112f0f02b9aSMatt SpinlerReflowComments:  true
11348781aefSPatrick WilliamsRequiresClausePosition: OwnLine
11448781aefSPatrick WilliamsRequiresExpressionIndentation: Keyword
115319b0dddSPatrick WilliamsSortIncludes: CaseSensitive
116f0f02b9aSMatt SpinlerSortUsingDeclarations: true
117f0f02b9aSMatt SpinlerSpaceAfterCStyleCast: false
118d1bc4cecSBrandon WymanSpaceAfterTemplateKeyword: true
119f0f02b9aSMatt SpinlerSpaceBeforeAssignmentOperators: true
120d1bc4cecSBrandon WymanSpaceBeforeCpp11BracedList: false
121d1bc4cecSBrandon WymanSpaceBeforeCtorInitializerColon: true
122d1bc4cecSBrandon WymanSpaceBeforeInheritanceColon: true
123f0f02b9aSMatt SpinlerSpaceBeforeParens: ControlStatements
124d1bc4cecSBrandon WymanSpaceBeforeRangeBasedForLoopColon: true
125f0f02b9aSMatt SpinlerSpaceInEmptyParentheses: false
126f0f02b9aSMatt SpinlerSpacesBeforeTrailingComments: 1
127319b0dddSPatrick WilliamsSpacesInAngles: Never
128f0f02b9aSMatt SpinlerSpacesInContainerLiterals: true
129f0f02b9aSMatt SpinlerSpacesInCStyleCastParentheses: false
130f0f02b9aSMatt SpinlerSpacesInParentheses: false
131f0f02b9aSMatt SpinlerSpacesInSquareBrackets: false
1321b5de462SBrandon WymanStandard:        Latest
133f0f02b9aSMatt SpinlerTabWidth:        4
134f0f02b9aSMatt SpinlerUseTab:          Never
135f0f02b9aSMatt Spinler...
1360c9a33d6SAdriana Kobylak
137