]> granicus.if.org Git - clang/commitdiff
ObjectiveC migrator: Don't infer property from
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 17 Sep 2013 22:41:25 +0000 (22:41 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 17 Sep 2013 22:41:25 +0000 (22:41 +0000)
'deprected' setters either. // rdar://14989365

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190894 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/ObjCMT.cpp

index d0d6b8794fe26eeed54266b6a37f30455eef8e6e..c15b4107444891ac90c34f2e22d73ec154ea10a5 100644 (file)
@@ -770,6 +770,8 @@ bool ObjCMigrateASTConsumer::migrateProperty(ASTContext &Ctx,
   }
   
   if (SetterMethod) {
+    if (SetterMethod->isDeprecated())
+      return false;
     // Is this a valid setter, matching the target getter?
     QualType SRT = SetterMethod->getResultType();
     if (!SRT->isVoidType())