on class methods, as it makes no sense. // rdar://
15069200
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191468
91177308-0d34-0410-b5e6-
96231b3b80d8
void ObjCMigrateASTConsumer::migrateNsReturnsInnerPointer(ASTContext &Ctx,
ObjCMethodDecl *OM) {
if (OM->isImplicit() ||
+ !OM->isInstanceMethod() ||
OM->hasAttr<ObjCReturnsInnerPointerAttr>())
return;
- (SecTrustRef) FOO1 NS_AVAILABLE;
++ (const NSURLProtectionSpace *)ProtectionSpace;
+
// pointer personality functions
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
@end
- (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