ObjectiveC migrator: Donlt annotate NS_RETURNS_INNER_POINTER

on class methods, as it makes no sense. // rdar://15069200

llvm-svn: 191468
This commit is contained in:
Fariborz Jahanian 2013-09-26 22:43:41 +00:00
parent 32a3f9ee29
commit 7c1a445c9e
3 changed files with 5 additions and 0 deletions

View File

@ -846,6 +846,7 @@ bool ObjCMigrateASTConsumer::migrateProperty(ASTContext &Ctx,
void ObjCMigrateASTConsumer::migrateNsReturnsInnerPointer(ASTContext &Ctx,
ObjCMethodDecl *OM) {
if (OM->isImplicit() ||
!OM->isInstanceMethod() ||
OM->hasAttr<ObjCReturnsInnerPointerAttr>())
return;

View File

@ -122,6 +122,8 @@ typedef void *SecTrustRef;
- (SecTrustRef) FOO1 NS_AVAILABLE;
+ (const NSURLProtectionSpace *)ProtectionSpace;
// pointer personality functions
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
@end

View File

@ -122,6 +122,8 @@ typedef void *SecTrustRef;
- (SecTrustRef) FOO1 NS_AVAILABLE NS_RETURNS_INNER_POINTER;
+ (const NSURLProtectionSpace *)ProtectionSpace;
// pointer personality functions
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
@end