Skip to content
Snippets Groups Projects
Commit 7c1a445c authored by Fariborz Jahanian's avatar Fariborz Jahanian
Browse files

ObjectiveC migrator: Donlt annotate NS_RETURNS_INNER_POINTER

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

llvm-svn: 191468
parent 32a3f9ee
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment