@@ -3606,11 +3606,8 @@ namespace {
36063606
36073607 Impl.addAlternateDecl (MD, opFuncDecl);
36083608
3609- Impl.markUnavailable (
3610- MD,
3611- " use " +
3612- std::string{clang::getOperatorSpelling (cxxOperatorKind)} +
3613- " instead" );
3609+ auto msg = " use " + std::string{clang::getOperatorSpelling (cxxOperatorKind)} + " instead" ;
3610+ Impl.markUnavailable (MD,msg);
36143611
36153612 // Make the actual member operator private.
36163613 MD->overwriteAccess (AccessLevel::Private);
@@ -8171,12 +8168,13 @@ SwiftDeclConverter::makeOperator(FuncDecl *operatorMethod,
81718168
81728169 auto parentCtx = operatorMethod->getDeclContext ();
81738170
8174- auto lhsParam =
8175- new (ctx) ParamDecl (SourceLoc (), SourceLoc (), Identifier (), SourceLoc (),
8176- ctx.getIdentifier (" lhs" ), parentCtx);
8171+ auto lhsParam = new (ctx) ParamDecl (
8172+ SourceLoc (),
8173+ SourceLoc (),Identifier (),
8174+ SourceLoc (),ctx.getIdentifier (" lhs" ),
8175+ parentCtx);
81778176
8178- lhsParam->setInterfaceType (
8179- operatorMethod->getDeclContext ()->getSelfInterfaceType ());
8177+ lhsParam->setInterfaceType (operatorMethod->getDeclContext ()->getSelfInterfaceType ());
81808178
81818179 if (operatorMethod->isMutating ()) {
81828180 // This implicitly makes the parameter indirect.
@@ -8200,8 +8198,9 @@ SwiftDeclConverter::makeOperator(FuncDecl *operatorMethod,
82008198 newArgNames.push_back (id);
82018199 }
82028200
8203- auto opDeclName =
8204- DeclName (ctx, opId, {newArgNames.begin (), newArgNames.end ()});
8201+ auto opDeclName = DeclName (
8202+ ctx,opId,
8203+ {newArgNames.begin (), newArgNames.end ()});
82058204
82068205 auto topLevelStaticFuncDecl = FuncDecl::createImplicit (
82078206 ctx, StaticSpellingKind::None, opDeclName, SourceLoc (),
0 commit comments