xref: /openbmc/smbios-mdr/.clang-format (revision 1d73dccc)
13e3269adSCheng C Yang---
23e3269adSCheng C YangLanguage:        Cpp
33e3269adSCheng C Yang# BasedOnStyle:  LLVM
43e3269adSCheng C YangAccessModifierOffset: -2
53e3269adSCheng C YangAlignAfterOpenBracket: Align
63e3269adSCheng C YangAlignConsecutiveAssignments: false
73e3269adSCheng C YangAlignConsecutiveDeclarations: false
818a5ab91SZhikui RenAlignEscapedNewlines: Right
9c39d3dfcSPatrick WilliamsAlignOperands:  Align
10c39d3dfcSPatrick WilliamsAlignTrailingComments:
11c39d3dfcSPatrick Williams  Kind: Always
12c39d3dfcSPatrick Williams  OverEmptyLines: 1
133e3269adSCheng C YangAllowAllParametersOfDeclarationOnNextLine: true
14c39d3dfcSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
153e3269adSCheng C YangAllowShortCaseLabelsOnASingleLine: false
16c39d3dfcSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
17badedf10SPatrick WilliamsAllowShortIfStatementsOnASingleLine: Never
18badedf10SPatrick WilliamsAllowShortLambdasOnASingleLine: true
193e3269adSCheng C YangAllowShortLoopsOnASingleLine: false
203e3269adSCheng C YangAlwaysBreakAfterReturnType: None
213e3269adSCheng C YangAlwaysBreakBeforeMultilineStrings: false
2218a5ab91SZhikui RenAlwaysBreakTemplateDeclarations: Yes
233e3269adSCheng C YangBinPackArguments: true
243e3269adSCheng C YangBinPackParameters: true
25badedf10SPatrick WilliamsBitFieldColonSpacing: None
263e3269adSCheng C YangBraceWrapping:
2718a5ab91SZhikui Ren  AfterCaseLabel:  true
283e3269adSCheng C Yang  AfterClass:      true
293e3269adSCheng C Yang  AfterControlStatement: true
303e3269adSCheng C Yang  AfterEnum:       true
31badedf10SPatrick Williams  AfterExternBlock: true
323e3269adSCheng C Yang  AfterFunction:   true
333e3269adSCheng C Yang  AfterNamespace:  true
343e3269adSCheng C Yang  AfterObjCDeclaration: true
353e3269adSCheng C Yang  AfterStruct:     true
363e3269adSCheng C Yang  AfterUnion:      true
373e3269adSCheng C Yang  BeforeCatch:     true
383e3269adSCheng C Yang  BeforeElse:      true
39badedf10SPatrick Williams  BeforeLambdaBody: false
40badedf10SPatrick Williams  BeforeWhile:     false
413e3269adSCheng C Yang  IndentBraces:    false
4218a5ab91SZhikui Ren  SplitEmptyFunction:   false
4318a5ab91SZhikui Ren  SplitEmptyRecord:     false
4418a5ab91SZhikui Ren  SplitEmptyNamespace:  false
45c39d3dfcSPatrick WilliamsBreakAfterAttributes: Never
463e3269adSCheng C YangBreakBeforeBinaryOperators: None
473e3269adSCheng C YangBreakBeforeBraces: Custom
483e3269adSCheng C YangBreakBeforeTernaryOperators: true
493e3269adSCheng C YangBreakConstructorInitializers: AfterColon
5018a5ab91SZhikui RenBreakInheritanceList: AfterColon
51c39d3dfcSPatrick WilliamsBreakStringLiterals: false
523e3269adSCheng C YangColumnLimit:     80
533e3269adSCheng C YangCommentPragmas:  '^ IWYU pragma:'
5418a5ab91SZhikui RenCompactNamespaces: false
553e3269adSCheng C YangConstructorInitializerIndentWidth: 4
563e3269adSCheng C YangContinuationIndentWidth: 4
573e3269adSCheng C YangCpp11BracedListStyle: true
583e3269adSCheng C YangDerivePointerAlignment: false
593e3269adSCheng C YangDisableFormat:   false
603e3269adSCheng C YangFixNamespaceComments: true
61badedf10SPatrick WilliamsForEachMacros:
62badedf10SPatrick Williams  - foreach
63badedf10SPatrick Williams  - Q_FOREACH
64badedf10SPatrick Williams  - BOOST_FOREACH
653e3269adSCheng C YangIncludeBlocks: Regroup
663e3269adSCheng C YangIncludeCategories:
673e3269adSCheng C Yang  - Regex:           '^[<"](gtest|gmock)'
6818a5ab91SZhikui Ren    Priority:        7
693e3269adSCheng C Yang  - Regex:           '^"config.h"'
703e3269adSCheng C Yang    Priority:        -1
7118a5ab91SZhikui Ren  - Regex:           '^".*\.h"'
723e3269adSCheng C Yang    Priority:        1
7318a5ab91SZhikui Ren  - Regex:           '^".*\.hpp"'
743e3269adSCheng C Yang    Priority:        2
7518a5ab91SZhikui Ren  - Regex:           '^<.*\.h>'
763e3269adSCheng C Yang    Priority:        3
7718a5ab91SZhikui Ren  - Regex:           '^<.*\.hpp>'
783e3269adSCheng C Yang    Priority:        4
7918a5ab91SZhikui Ren  - Regex:           '^<.*'
8018a5ab91SZhikui Ren    Priority:        5
8118a5ab91SZhikui Ren  - Regex:           '.*'
8218a5ab91SZhikui Ren    Priority:        6
833e3269adSCheng C YangIndentCaseLabels: true
84badedf10SPatrick WilliamsIndentExternBlock: NoIndent
85c39d3dfcSPatrick WilliamsIndentRequiresClause: true
863e3269adSCheng C YangIndentWidth:     4
873e3269adSCheng C YangIndentWrappedFunctionNames: true
88c39d3dfcSPatrick WilliamsInsertNewlineAtEOF: true
89c39d3dfcSPatrick WilliamsKeepEmptyLinesAtTheStartOfBlocks: false
90*1d73dcccSPatrick WilliamsLambdaBodyIndentation: Signature
91c39d3dfcSPatrick WilliamsLineEnding: LF
923e3269adSCheng C YangMacroBlockBegin: ''
933e3269adSCheng C YangMacroBlockEnd:   ''
943e3269adSCheng C YangMaxEmptyLinesToKeep: 1
953e3269adSCheng C YangNamespaceIndentation: None
963e3269adSCheng C YangObjCBlockIndentWidth: 2
973e3269adSCheng C YangObjCSpaceAfterProperty: false
983e3269adSCheng C YangObjCSpaceBeforeProtocolList: true
99badedf10SPatrick WilliamsPackConstructorInitializers: BinPack
100c39d3dfcSPatrick WilliamsPenaltyBreakAssignment: 25
101*1d73dcccSPatrick WilliamsPenaltyBreakBeforeFirstCallParameter: 50
1023e3269adSCheng C YangPenaltyBreakComment: 300
1033e3269adSCheng C YangPenaltyBreakFirstLessLess: 120
1043e3269adSCheng C YangPenaltyBreakString: 1000
105*1d73dcccSPatrick WilliamsPenaltyBreakTemplateDeclaration: 10
1063e3269adSCheng C YangPenaltyExcessCharacter: 1000000
1073e3269adSCheng C YangPenaltyReturnTypeOnItsOwnLine: 60
108*1d73dcccSPatrick WilliamsPenaltyIndentedWhitespace: 1
109badedf10SPatrick WilliamsPointerAlignment: Left
110c39d3dfcSPatrick WilliamsQualifierAlignment: Left
111c39d3dfcSPatrick WilliamsReferenceAlignment: Left
1123e3269adSCheng C YangReflowComments:  true
113c39d3dfcSPatrick WilliamsRequiresClausePosition: OwnLine
114c39d3dfcSPatrick WilliamsRequiresExpressionIndentation: Keyword
115badedf10SPatrick WilliamsSortIncludes: CaseSensitive
1163e3269adSCheng C YangSortUsingDeclarations: true
1173e3269adSCheng C YangSpaceAfterCStyleCast: false
11818a5ab91SZhikui RenSpaceAfterTemplateKeyword: true
1193e3269adSCheng C YangSpaceBeforeAssignmentOperators: true
12018a5ab91SZhikui RenSpaceBeforeCpp11BracedList: false
12118a5ab91SZhikui RenSpaceBeforeCtorInitializerColon: true
12218a5ab91SZhikui RenSpaceBeforeInheritanceColon: true
1233e3269adSCheng C YangSpaceBeforeParens: ControlStatements
12418a5ab91SZhikui RenSpaceBeforeRangeBasedForLoopColon: true
1253e3269adSCheng C YangSpaceInEmptyParentheses: false
1263e3269adSCheng C YangSpacesBeforeTrailingComments: 1
127badedf10SPatrick WilliamsSpacesInAngles: Never
1283e3269adSCheng C YangSpacesInContainerLiterals: true
1293e3269adSCheng C YangSpacesInCStyleCastParentheses: false
1303e3269adSCheng C YangSpacesInParentheses: false
1313e3269adSCheng C YangSpacesInSquareBrackets: false
132c39d3dfcSPatrick WilliamsStandard:        Latest
1333e3269adSCheng C YangTabWidth:        4
1343e3269adSCheng C YangUseTab:          Never
1353e3269adSCheng C Yang...
1363e3269adSCheng C Yang
137