xref: /openbmc/pldm/.clang-format (revision 16c2a0a0)
1cf0c6423STom Joseph---
2cf0c6423STom JosephLanguage:        Cpp
3cf0c6423STom Joseph# BasedOnStyle:  LLVM
4cf0c6423STom JosephAccessModifierOffset: -2
5cf0c6423STom JosephAlignAfterOpenBracket: Align
6cf0c6423STom JosephAlignConsecutiveAssignments: false
7cf0c6423STom JosephAlignConsecutiveDeclarations: false
86492f524SGeorge LiuAlignEscapedNewlines: Right
96da4f91bSPatrick WilliamsAlignOperands:  Align
106da4f91bSPatrick WilliamsAlignTrailingComments:
116da4f91bSPatrick Williams  Kind: Always
126da4f91bSPatrick Williams  OverEmptyLines: 1
13cf0c6423STom JosephAllowAllParametersOfDeclarationOnNextLine: true
146da4f91bSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
15cf0c6423STom JosephAllowShortCaseLabelsOnASingleLine: false
166da4f91bSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17a675662cSPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18a675662cSPatrick WilliamsAllowShortLambdasOnASingleLine: true
19cf0c6423STom JosephAllowShortLoopsOnASingleLine: false
20cf0c6423STom JosephAlwaysBreakAfterReturnType: None
21cf0c6423STom JosephAlwaysBreakBeforeMultilineStrings: false
226492f524SGeorge LiuAlwaysBreakTemplateDeclarations: Yes
23cf0c6423STom JosephBinPackArguments: true
24cf0c6423STom JosephBinPackParameters: true
25a675662cSPatrick WilliamsBitFieldColonSpacing: None
26cf0c6423STom JosephBraceWrapping:
27826c9d43SDeepak Kodihalli  AfterCaseLabel:  true
28cf0c6423STom Joseph  AfterClass:      true
29cf0c6423STom Joseph  AfterControlStatement: true
30cf0c6423STom Joseph  AfterEnum:       true
31a675662cSPatrick Williams  AfterExternBlock: true
32cf0c6423STom Joseph  AfterFunction:   true
33cf0c6423STom Joseph  AfterNamespace:  true
34cf0c6423STom Joseph  AfterObjCDeclaration: true
35cf0c6423STom Joseph  AfterStruct:     true
36cf0c6423STom Joseph  AfterUnion:      true
37cf0c6423STom Joseph  BeforeCatch:     true
38cf0c6423STom Joseph  BeforeElse:      true
39a675662cSPatrick Williams  BeforeLambdaBody: false
40a675662cSPatrick Williams  BeforeWhile:     false
41cf0c6423STom Joseph  IndentBraces:    false
426492f524SGeorge Liu  SplitEmptyFunction:   false
436492f524SGeorge Liu  SplitEmptyRecord:     false
446492f524SGeorge Liu  SplitEmptyNamespace:  false
456da4f91bSPatrick WilliamsBreakAfterAttributes: Never
46cf0c6423STom JosephBreakBeforeBinaryOperators: None
47cf0c6423STom JosephBreakBeforeBraces: Custom
48cf0c6423STom JosephBreakBeforeTernaryOperators: true
49cf0c6423STom JosephBreakConstructorInitializers: AfterColon
506492f524SGeorge LiuBreakInheritanceList: AfterColon
51a6678d74SGeorge LiuBreakStringLiterals: false
52cf0c6423STom JosephColumnLimit:     80
53cf0c6423STom JosephCommentPragmas:  '^ IWYU pragma:'
546492f524SGeorge LiuCompactNamespaces: false
55cf0c6423STom JosephConstructorInitializerIndentWidth: 4
56cf0c6423STom JosephContinuationIndentWidth: 4
57cf0c6423STom JosephCpp11BracedListStyle: true
58cf0c6423STom JosephDerivePointerAlignment: false
59cf0c6423STom JosephDisableFormat:   false
60cf0c6423STom JosephFixNamespaceComments: true
61a675662cSPatrick WilliamsForEachMacros:
62a675662cSPatrick Williams  - foreach
63a675662cSPatrick Williams  - Q_FOREACH
64a675662cSPatrick Williams  - BOOST_FOREACH
65cf0c6423STom JosephIncludeBlocks: Regroup
66cf0c6423STom JosephIncludeCategories:
67cf0c6423STom Joseph  - Regex:           '^[<"](gtest|gmock)'
686492f524SGeorge Liu    Priority:        7
69cf0c6423STom Joseph  - Regex:           '^"config.h"'
70cf0c6423STom Joseph    Priority:        -1
716492f524SGeorge Liu  - Regex:           '^".*\.h"'
72cf0c6423STom Joseph    Priority:        1
736492f524SGeorge Liu  - Regex:           '^".*\.hpp"'
74cf0c6423STom Joseph    Priority:        2
756492f524SGeorge Liu  - Regex:           '^<.*\.h>'
76cf0c6423STom Joseph    Priority:        3
776492f524SGeorge Liu  - Regex:           '^<.*\.hpp>'
78cf0c6423STom Joseph    Priority:        4
796492f524SGeorge Liu  - Regex:           '^<.*'
806492f524SGeorge Liu    Priority:        5
816492f524SGeorge Liu  - Regex:           '.*'
826492f524SGeorge Liu    Priority:        6
83cf0c6423STom JosephIndentCaseLabels: true
84a675662cSPatrick WilliamsIndentExternBlock: NoIndent
856da4f91bSPatrick WilliamsIndentRequiresClause: true
86cf0c6423STom JosephIndentWidth:     4
87cf0c6423STom JosephIndentWrappedFunctionNames: true
886da4f91bSPatrick WilliamsInsertNewlineAtEOF: true
89ca1998f3SManojkiran EdaKeepEmptyLinesAtTheStartOfBlocks: false
90*16c2a0a0SPatrick WilliamsLambdaBodyIndentation: Signature
916da4f91bSPatrick WilliamsLineEnding: LF
92cf0c6423STom JosephMacroBlockBegin: ''
93cf0c6423STom JosephMacroBlockEnd:   ''
94cf0c6423STom JosephMaxEmptyLinesToKeep: 1
95cf0c6423STom JosephNamespaceIndentation: None
96cf0c6423STom JosephObjCBlockIndentWidth: 2
97cf0c6423STom JosephObjCSpaceAfterProperty: false
98cf0c6423STom JosephObjCSpaceBeforeProtocolList: true
99a675662cSPatrick WilliamsPackConstructorInitializers: BinPack
1006da4f91bSPatrick WilliamsPenaltyBreakAssignment: 25
101*16c2a0a0SPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
102cf0c6423STom JosephPenaltyBreakComment: 300
103cf0c6423STom JosephPenaltyBreakFirstLessLess: 120
104cf0c6423STom JosephPenaltyBreakString: 1000
105*16c2a0a0SPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
106cf0c6423STom JosephPenaltyExcessCharacter: 1000000
107cf0c6423STom JosephPenaltyReturnTypeOnItsOwnLine: 60
108*16c2a0a0SPatrick WilliamsPenaltyIndentedWhitespace: 1
109a675662cSPatrick WilliamsPointerAlignment: Left
1106da4f91bSPatrick WilliamsQualifierAlignment: Left
1116da4f91bSPatrick WilliamsReferenceAlignment: Left
112cf0c6423STom JosephReflowComments:  true
1136da4f91bSPatrick WilliamsRequiresClausePosition: OwnLine
1146da4f91bSPatrick WilliamsRequiresExpressionIndentation: Keyword
115a675662cSPatrick WilliamsSortIncludes: CaseSensitive
116cf0c6423STom JosephSortUsingDeclarations: true
117cf0c6423STom JosephSpaceAfterCStyleCast: false
1186492f524SGeorge LiuSpaceAfterTemplateKeyword: true
119cf0c6423STom JosephSpaceBeforeAssignmentOperators: true
1206492f524SGeorge LiuSpaceBeforeCpp11BracedList: false
1216492f524SGeorge LiuSpaceBeforeCtorInitializerColon: true
1226492f524SGeorge LiuSpaceBeforeInheritanceColon: true
123cf0c6423STom JosephSpaceBeforeParens: ControlStatements
1246492f524SGeorge LiuSpaceBeforeRangeBasedForLoopColon: true
125cf0c6423STom JosephSpaceInEmptyParentheses: false
126cf0c6423STom JosephSpacesBeforeTrailingComments: 1
127a675662cSPatrick WilliamsSpacesInAngles: Never
128cf0c6423STom JosephSpacesInContainerLiterals: true
129cf0c6423STom JosephSpacesInCStyleCastParentheses: false
130cf0c6423STom JosephSpacesInParentheses: false
131cf0c6423STom JosephSpacesInSquareBrackets: false
1326492f524SGeorge LiuStandard:        Latest
133cf0c6423STom JosephTabWidth:        4
134cf0c6423STom JosephUseTab:          Never
135cf0c6423STom Joseph...
13666d26e36SManojkiran Eda
137