xref: /openbmc/docs/style/cpp/.clang-format (revision 231ad0cd23ad990f46218fc82e809ee9e65930c5)
10dcc430aSPatrick Venture---
20dcc430aSPatrick VentureLanguage:        Cpp
30dcc430aSPatrick Venture# BasedOnStyle:  LLVM
40dcc430aSPatrick VentureAccessModifierOffset: -2
50dcc430aSPatrick VentureAlignAfterOpenBracket: Align
60dcc430aSPatrick VentureAlignConsecutiveAssignments: false
70dcc430aSPatrick VentureAlignConsecutiveDeclarations: false
89a71ea19SZane ShelleyAlignEscapedNewlines: Right
9c742fe86SPatrick WilliamsAlignOperands:  Align
10*231ad0cdSPatrick WilliamsAlignTrailingComments:
11*231ad0cdSPatrick Williams  Kind: Always
12*231ad0cdSPatrick Williams  OverEmptyLines: 1
130dcc430aSPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
143547af1fSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
150dcc430aSPatrick VentureAllowShortCaseLabelsOnASingleLine: false
163547af1fSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
170dcc430aSPatrick VentureAllowShortIfStatementsOnASingleLine: false
180dcc430aSPatrick VentureAllowShortLoopsOnASingleLine: false
190dcc430aSPatrick VentureAlwaysBreakAfterReturnType: None
200dcc430aSPatrick VentureAlwaysBreakBeforeMultilineStrings: false
219a71ea19SZane ShelleyAlwaysBreakTemplateDeclarations: Yes
220dcc430aSPatrick VentureBinPackArguments: true
230dcc430aSPatrick VentureBinPackParameters: true
240dcc430aSPatrick VentureBraceWrapping:
25b6de1960SPatrick Williams  AfterCaseLabel:  true
260dcc430aSPatrick Venture  AfterClass:      true
270dcc430aSPatrick Venture  AfterControlStatement: true
280dcc430aSPatrick Venture  AfterEnum:       true
290dcc430aSPatrick Venture  AfterFunction:   true
300dcc430aSPatrick Venture  AfterNamespace:  true
310dcc430aSPatrick Venture  AfterObjCDeclaration: true
320dcc430aSPatrick Venture  AfterStruct:     true
330dcc430aSPatrick Venture  AfterUnion:      true
349a71ea19SZane Shelley  AfterExternBlock: true
350dcc430aSPatrick Venture  BeforeCatch:     true
360dcc430aSPatrick Venture  BeforeElse:      true
370dcc430aSPatrick Venture  IndentBraces:    false
389a71ea19SZane Shelley  SplitEmptyFunction:   false
399a71ea19SZane Shelley  SplitEmptyRecord:     false
409a71ea19SZane Shelley  SplitEmptyNamespace:  false
41*231ad0cdSPatrick WilliamsBreakAfterAttributes: Never
420dcc430aSPatrick VentureBreakBeforeBinaryOperators: None
430dcc430aSPatrick VentureBreakBeforeBraces: Custom
440dcc430aSPatrick VentureBreakBeforeTernaryOperators: true
450dcc430aSPatrick VentureBreakConstructorInitializers: AfterColon
469a71ea19SZane ShelleyBreakInheritanceList: AfterColon
479e5bbd0cSAndrew JefferyBreakStringLiterals: false
480dcc430aSPatrick VentureColumnLimit:     80
490dcc430aSPatrick VentureCommentPragmas:  '^ IWYU pragma:'
509a71ea19SZane ShelleyCompactNamespaces: false
510dcc430aSPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
520dcc430aSPatrick VentureConstructorInitializerIndentWidth: 4
530dcc430aSPatrick VentureContinuationIndentWidth: 4
540dcc430aSPatrick VentureCpp11BracedListStyle: true
552f52b0a3SPatrick WilliamsDeriveLineEnding: false
560dcc430aSPatrick VentureDerivePointerAlignment: false
570dcc430aSPatrick VenturePointerAlignment: Left
580dcc430aSPatrick VentureDisableFormat:   false
590dcc430aSPatrick VentureExperimentalAutoDetectBinPacking: false
600dcc430aSPatrick VentureFixNamespaceComments: true
610dcc430aSPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
620dcc430aSPatrick VentureIncludeBlocks: Regroup
630dcc430aSPatrick VentureIncludeCategories:
640dcc430aSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
659a71ea19SZane Shelley    Priority:        7
660dcc430aSPatrick Venture  - Regex:           '^"config.h"'
670dcc430aSPatrick Venture    Priority:        -1
689a71ea19SZane Shelley  - Regex:           '^".*\.h"'
690dcc430aSPatrick Venture    Priority:        1
709a71ea19SZane Shelley  - Regex:           '^".*\.hpp"'
710dcc430aSPatrick Venture    Priority:        2
729a71ea19SZane Shelley  - Regex:           '^<.*\.h>'
730dcc430aSPatrick Venture    Priority:        3
749a71ea19SZane Shelley  - Regex:           '^<.*\.hpp>'
750dcc430aSPatrick Venture    Priority:        4
769a71ea19SZane Shelley  - Regex:           '^<.*'
779a71ea19SZane Shelley    Priority:        5
789a71ea19SZane Shelley  - Regex:           '.*'
799a71ea19SZane Shelley    Priority:        6
800dcc430aSPatrick VentureIndentCaseLabels: true
8106136285SPatrick WilliamsIndentRequiresClause: true
820dcc430aSPatrick VentureIndentWidth:     4
830dcc430aSPatrick VentureIndentWrappedFunctionNames: true
84*231ad0cdSPatrick WilliamsInsertNewlineAtEOF: true
85ac5d5445SBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
8622319395SAndrew JefferyLambdaBodyIndentation: OuterScope
87*231ad0cdSPatrick WilliamsLineEnding: LF
880dcc430aSPatrick VentureMacroBlockBegin: ''
890dcc430aSPatrick VentureMacroBlockEnd:   ''
900dcc430aSPatrick VentureMaxEmptyLinesToKeep: 1
910dcc430aSPatrick VentureNamespaceIndentation: None
920dcc430aSPatrick VentureObjCBlockIndentWidth: 2
930dcc430aSPatrick VentureObjCSpaceAfterProperty: false
940dcc430aSPatrick VentureObjCSpaceBeforeProtocolList: true
95ba68be6aSPatrick WilliamsPenaltyBreakAssignment: 25
960dcc430aSPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
970dcc430aSPatrick VenturePenaltyBreakComment: 300
980dcc430aSPatrick VenturePenaltyBreakFirstLessLess: 120
990dcc430aSPatrick VenturePenaltyBreakString: 1000
1000dcc430aSPatrick VenturePenaltyExcessCharacter: 1000000
1010dcc430aSPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
102ba68be6aSPatrick WilliamsPenaltyIndentedWhitespace: 0
103c742fe86SPatrick WilliamsQualifierAlignment: Left
104c742fe86SPatrick WilliamsReferenceAlignment: Left
1050dcc430aSPatrick VentureReflowComments:  true
10606136285SPatrick WilliamsRequiresClausePosition: OwnLine
107*231ad0cdSPatrick WilliamsRequiresExpressionIndentation: Keyword
1080dcc430aSPatrick VentureSortIncludes:    true
1090dcc430aSPatrick VentureSortUsingDeclarations: true
1100dcc430aSPatrick VentureSpaceAfterCStyleCast: false
1119a71ea19SZane ShelleySpaceAfterTemplateKeyword: true
1120dcc430aSPatrick VentureSpaceBeforeAssignmentOperators: true
1139a71ea19SZane ShelleySpaceBeforeCpp11BracedList: false
1149a71ea19SZane ShelleySpaceBeforeCtorInitializerColon: true
1159a71ea19SZane ShelleySpaceBeforeInheritanceColon: true
1160dcc430aSPatrick VentureSpaceBeforeParens: ControlStatements
1179a71ea19SZane ShelleySpaceBeforeRangeBasedForLoopColon: true
1180dcc430aSPatrick VentureSpaceInEmptyParentheses: false
1190dcc430aSPatrick VentureSpacesBeforeTrailingComments: 1
1200dcc430aSPatrick VentureSpacesInAngles:  false
1210dcc430aSPatrick VentureSpacesInContainerLiterals: true
1220dcc430aSPatrick VentureSpacesInCStyleCastParentheses: false
1230dcc430aSPatrick VentureSpacesInParentheses: false
1240dcc430aSPatrick VentureSpacesInSquareBrackets: false
12536d6f56fSPatrick WilliamsStandard:        Latest
1260dcc430aSPatrick VentureTabWidth:        4
1270dcc430aSPatrick VentureUseTab:          Never
1280dcc430aSPatrick Venture...
1290dcc430aSPatrick Venture
130