xref: /openbmc/docs/style/cpp/.clang-format (revision ba68be6a20e69cabcdbb27f22d4c148b21c843a0)
10dcc430aSPatrick Venture---
20dcc430aSPatrick VentureLanguage:        Cpp
30dcc430aSPatrick Venture# BasedOnStyle:  LLVM
40dcc430aSPatrick VentureAccessModifierOffset: -2
50dcc430aSPatrick VentureAlignAfterOpenBracket: Align
60dcc430aSPatrick VentureAlignConsecutiveAssignments: false
70dcc430aSPatrick VentureAlignConsecutiveDeclarations: false
89a71ea19SZane ShelleyAlignEscapedNewlines: Right
90dcc430aSPatrick VentureAlignOperands:   true
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
780dcc430aSPatrick VentureIndentWidth:     4
790dcc430aSPatrick VentureIndentWrappedFunctionNames: true
80ac5d5445SBrad BishopKeepEmptyLinesAtTheStartOfBlocks: false
810dcc430aSPatrick VentureMacroBlockBegin: ''
820dcc430aSPatrick VentureMacroBlockEnd:   ''
830dcc430aSPatrick VentureMaxEmptyLinesToKeep: 1
840dcc430aSPatrick VentureNamespaceIndentation: None
850dcc430aSPatrick VentureObjCBlockIndentWidth: 2
860dcc430aSPatrick VentureObjCSpaceAfterProperty: false
870dcc430aSPatrick VentureObjCSpaceBeforeProtocolList: true
88*ba68be6aSPatrick WilliamsPenaltyBreakAssignment: 25
890dcc430aSPatrick VenturePenaltyBreakBeforeFirstCallParameter: 19
900dcc430aSPatrick VenturePenaltyBreakComment: 300
910dcc430aSPatrick VenturePenaltyBreakFirstLessLess: 120
920dcc430aSPatrick VenturePenaltyBreakString: 1000
930dcc430aSPatrick VenturePenaltyExcessCharacter: 1000000
940dcc430aSPatrick VenturePenaltyReturnTypeOnItsOwnLine: 60
95*ba68be6aSPatrick WilliamsPenaltyIndentedWhitespace: 0
960dcc430aSPatrick VentureReflowComments:  true
970dcc430aSPatrick VentureSortIncludes:    true
980dcc430aSPatrick VentureSortUsingDeclarations: true
990dcc430aSPatrick VentureSpaceAfterCStyleCast: false
1009a71ea19SZane ShelleySpaceAfterTemplateKeyword: true
1010dcc430aSPatrick VentureSpaceBeforeAssignmentOperators: true
1029a71ea19SZane ShelleySpaceBeforeCpp11BracedList: false
1039a71ea19SZane ShelleySpaceBeforeCtorInitializerColon: true
1049a71ea19SZane ShelleySpaceBeforeInheritanceColon: true
1050dcc430aSPatrick VentureSpaceBeforeParens: ControlStatements
1069a71ea19SZane ShelleySpaceBeforeRangeBasedForLoopColon: true
1070dcc430aSPatrick VentureSpaceInEmptyParentheses: false
1080dcc430aSPatrick VentureSpacesBeforeTrailingComments: 1
1090dcc430aSPatrick VentureSpacesInAngles:  false
1100dcc430aSPatrick VentureSpacesInContainerLiterals: true
1110dcc430aSPatrick VentureSpacesInCStyleCastParentheses: false
1120dcc430aSPatrick VentureSpacesInParentheses: false
1130dcc430aSPatrick VentureSpacesInSquareBrackets: false
11436d6f56fSPatrick WilliamsStandard:        Latest
1150dcc430aSPatrick VentureTabWidth:        4
1162f52b0a3SPatrick WilliamsUseCRLF: false
1170dcc430aSPatrick VentureUseTab:          Never
1180dcc430aSPatrick Venture...
1190dcc430aSPatrick Venture
120