r190894 - ObjectiveC migrator: Don't infer property from
Fariborz Jahanian
fjahanian at apple.com
Tue Sep 17 15:41:26 PDT 2013
Author: fjahanian
Date: Tue Sep 17 17:41:25 2013
New Revision: 190894
URL: http://llvm.org/viewvc/llvm-project?rev=190894&view=rev
Log:
ObjectiveC migrator: Don't infer property from
'deprected' setters either. // rdar://14989365
Modified:
cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
Modified: cfe/trunk/lib/ARCMigrate/ObjCMT.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/ObjCMT.cpp?rev=190894&r1=190893&r2=190894&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/ObjCMT.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/ObjCMT.cpp Tue Sep 17 17:41:25 2013
@@ -770,6 +770,8 @@ bool ObjCMigrateASTConsumer::migrateProp
}
if (SetterMethod) {
+ if (SetterMethod->isDeprecated())
+ return false;
// Is this a valid setter, matching the target getter?
QualType SRT = SetterMethod->getResultType();
if (!SRT->isVoidType())
More information about the cfe-commits
mailing list