xref: /openbmc/docs/style/cpp/.clang-format (revision 06136285953e335e56bb4132e6fbace8888debd6)
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
100dcc430aSPatrick VentureAlignTrailingComments: true
110dcc430aSPatrick VentureAllowAllParametersOfDeclarationOnNextLine: true
123547af1fSPatrick WilliamsAllowShortBlocksOnASingleLine: Empty
130dcc430aSPatrick VentureAllowShortCaseLabelsOnASingleLine: false
143547af1fSPatrick WilliamsAllowShortFunctionsOnASingleLine: Empty
150dcc430aSPatrick VentureAllowShortIfStatementsOnASingleLine: false
160dcc430aSPatrick VentureAllowShortLoopsOnASingleLine: false
170dcc430aSPatrick VentureAlwaysBreakAfterReturnType: None
180dcc430aSPatrick VentureAlwaysBreakBeforeMultilineStrings: false
199a71ea19SZane ShelleyAlwaysBreakTemplateDeclarations: Yes
200dcc430aSPatrick VentureBinPackArguments: true
210dcc430aSPatrick VentureBinPackParameters: true
220dcc430aSPatrick VentureBraceWrapping:
23b6de1960SPatrick Williams  AfterCaseLabel:  true
240dcc430aSPatrick Venture  AfterClass:      true
250dcc430aSPatrick Venture  AfterControlStatement: true
260dcc430aSPatrick Venture  AfterEnum:       true
270dcc430aSPatrick Venture  AfterFunction:   true
280dcc430aSPatrick Venture  AfterNamespace:  true
290dcc430aSPatrick Venture  AfterObjCDeclaration: true
300dcc430aSPatrick Venture  AfterStruct:     true
310dcc430aSPatrick Venture  AfterUnion:      true
329a71ea19SZane Shelley  AfterExternBlock: true
330dcc430aSPatrick Venture  BeforeCatch:     true
340dcc430aSPatrick Venture  BeforeElse:      true
350dcc430aSPatrick Venture  IndentBraces:    false
369a71ea19SZane Shelley  SplitEmptyFunction:   false
379a71ea19SZane Shelley  SplitEmptyRecord:     false
389a71ea19SZane Shelley  SplitEmptyNamespace:  false
390dcc430aSPatrick VentureBreakBeforeBinaryOperators: None
400dcc430aSPatrick VentureBreakBeforeBraces: Custom
410dcc430aSPatrick VentureBreakBeforeTernaryOperators: true
420dcc430aSPatrick VentureBreakConstructorInitializers: AfterColon
439a71ea19SZane ShelleyBreakInheritanceList: AfterColon
449e5bbd0cSAndrew JefferyBreakStringLiterals: false
450dcc430aSPatrick VentureColumnLimit:     80
460dcc430aSPatrick VentureCommentPragmas:  '^ IWYU pragma:'
479a71ea19SZane ShelleyCompactNamespaces: false
480dcc430aSPatrick VentureConstructorInitializerAllOnOneLineOrOnePerLine: false
490dcc430aSPatrick VentureConstructorInitializerIndentWidth: 4
500dcc430aSPatrick VentureContinuationIndentWidth: 4
510dcc430aSPatrick VentureCpp11BracedListStyle: true
522f52b0a3SPatrick WilliamsDeriveLineEnding: false
530dcc430aSPatrick VentureDerivePointerAlignment: false
540dcc430aSPatrick VenturePointerAlignment: Left
550dcc430aSPatrick VentureDisableFormat:   false
560dcc430aSPatrick VentureExperimentalAutoDetectBinPacking: false
570dcc430aSPatrick VentureFixNamespaceComments: true
580dcc430aSPatrick VentureForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
590dcc430aSPatrick VentureIncludeBlocks: Regroup
600dcc430aSPatrick VentureIncludeCategories:
610dcc430aSPatrick Venture  - Regex:           '^[<"](gtest|gmock)'
629a71ea19SZane Shelley    Priority:        7
630dcc430aSPatrick Venture  - Regex:           '^"config.h"'
640dcc430aSPatrick Venture    Priority:        -1
659a71ea19SZane Shelley  - Regex:           '^".*\.h"'
660dcc430aSPatrick Venture    Priority:        1
679a71ea19SZane Shelley  - Regex:           '^".*\.hpp"'
680dcc430aSPatrick Venture    Priority:        2
699a71ea19SZane Shelley  - Regex:           '^<.*\.h>'
700dcc430aSPatrick Venture    Priority:        3
719a71ea19SZane Shelley  - Regex:           '^<.*\.hpp>'
720dcc430aSPatrick Venture    Priority:        4
739a71ea19SZane Shelley  - Regex:           '^<.*'
749a71ea19SZane Shelley    Priority:        5
759a71ea19SZane Shelley  - Regex:           '.*'
769a71ea19SZane Shelley    Priority:        6
770dcc430aSPatrick VentureIndentCaseLabels: true
78*06136285SPatrick WilliamsIndentRequiresClause: true
790dcc430aSPatrick VentureIndentWidth:     4
800dcc430aSPatrick VentureIndentWrappedFunctionNames: true
81ac5d5445SBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
820dcc430aSPatrick VentureMacroBlockBegin: ''
830dcc430aSPatrick VentureMacroBlockEnd:   ''
840dcc430aSPatrick VentureMaxEmptyLinesToKeep: 1
850dcc430aSPatrick VentureNamespaceIndentation: None
860dcc430aSPatrick VentureObjCBlockIndentWidth: 2
870dcc430aSPatrick VentureObjCSpaceAfterProperty: false
880dcc430aSPatrick VentureObjCSpaceBeforeProtocolList: true
89ba68be6aSPatrick WilliamsPenaltyBreakAssignment: 25
900dcc430aSPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
910dcc430aSPatrick VenturePenaltyBreakComment: 300
920dcc430aSPatrick VenturePenaltyBreakFirstLessLess: 120
930dcc430aSPatrick VenturePenaltyBreakString: 1000
940dcc430aSPatrick VenturePenaltyExcessCharacter: 1000000
950dcc430aSPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
96ba68be6aSPatrick WilliamsPenaltyIndentedWhitespace: 0
97c742fe86SPatrick WilliamsQualifierAlignment: Left
98c742fe86SPatrick WilliamsReferenceAlignment: Left
990dcc430aSPatrick VentureReflowComments:  true
100*06136285SPatrick WilliamsRequiresClausePosition: OwnLine
1010dcc430aSPatrick VentureSortIncludes:    true
1020dcc430aSPatrick VentureSortUsingDeclarations: true
1030dcc430aSPatrick VentureSpaceAfterCStyleCast: false
1049a71ea19SZane ShelleySpaceAfterTemplateKeyword: true
1050dcc430aSPatrick VentureSpaceBeforeAssignmentOperators: true
1069a71ea19SZane ShelleySpaceBeforeCpp11BracedList: false
1079a71ea19SZane ShelleySpaceBeforeCtorInitializerColon: true
1089a71ea19SZane ShelleySpaceBeforeInheritanceColon: true
1090dcc430aSPatrick VentureSpaceBeforeParens: ControlStatements
1109a71ea19SZane ShelleySpaceBeforeRangeBasedForLoopColon: true
1110dcc430aSPatrick VentureSpaceInEmptyParentheses: false
1120dcc430aSPatrick VentureSpacesBeforeTrailingComments: 1
1130dcc430aSPatrick VentureSpacesInAngles:  false
1140dcc430aSPatrick VentureSpacesInContainerLiterals: true
1150dcc430aSPatrick VentureSpacesInCStyleCastParentheses: false
1160dcc430aSPatrick VentureSpacesInParentheses: false
1170dcc430aSPatrick VentureSpacesInSquareBrackets: false
11836d6f56fSPatrick WilliamsStandard:        Latest
1190dcc430aSPatrick VentureTabWidth:        4
1202f52b0a3SPatrick WilliamsUseCRLF: false
1210dcc430aSPatrick VentureUseTab:          Never
1220dcc430aSPatrick Venture...
1230dcc430aSPatrick Venture
124