@@ -3606,11 +3606,8 @@ namespace {
3606
3606
3607
3607
Impl.addAlternateDecl (MD, opFuncDecl);
3608
3608
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);
3614
3611
3615
3612
// Make the actual member operator private.
3616
3613
MD->overwriteAccess (AccessLevel::Private);
@@ -8171,12 +8168,13 @@ SwiftDeclConverter::makeOperator(FuncDecl *operatorMethod,
8171
8168
8172
8169
auto parentCtx = operatorMethod->getDeclContext ();
8173
8170
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);
8177
8176
8178
- lhsParam->setInterfaceType (
8179
- operatorMethod->getDeclContext ()->getSelfInterfaceType ());
8177
+ lhsParam->setInterfaceType (operatorMethod->getDeclContext ()->getSelfInterfaceType ());
8180
8178
8181
8179
if (operatorMethod->isMutating ()) {
8182
8180
// This implicitly makes the parameter indirect.
@@ -8200,8 +8198,9 @@ SwiftDeclConverter::makeOperator(FuncDecl *operatorMethod,
8200
8198
newArgNames.push_back (id);
8201
8199
}
8202
8200
8203
- auto opDeclName =
8204
- DeclName (ctx, opId, {newArgNames.begin (), newArgNames.end ()});
8201
+ auto opDeclName = DeclName (
8202
+ ctx,opId,
8203
+ {newArgNames.begin (), newArgNames.end ()});
8205
8204
8206
8205
auto topLevelStaticFuncDecl = FuncDecl::createImplicit (
8207
8206
ctx, StaticSpellingKind::None, opDeclName, SourceLoc (),
0 commit comments