forked from OSchip/llvm-project
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:
parent
32a3f9ee29
commit
7c1a445c9e
|
@ -846,6 +846,7 @@ bool ObjCMigrateASTConsumer::migrateProperty(ASTContext &Ctx,
|
||||||
void ObjCMigrateASTConsumer::migrateNsReturnsInnerPointer(ASTContext &Ctx,
|
void ObjCMigrateASTConsumer::migrateNsReturnsInnerPointer(ASTContext &Ctx,
|
||||||
ObjCMethodDecl *OM) {
|
ObjCMethodDecl *OM) {
|
||||||
if (OM->isImplicit() ||
|
if (OM->isImplicit() ||
|
||||||
|
!OM->isInstanceMethod() ||
|
||||||
OM->hasAttr<ObjCReturnsInnerPointerAttr>())
|
OM->hasAttr<ObjCReturnsInnerPointerAttr>())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,8 @@ typedef void *SecTrustRef;
|
||||||
|
|
||||||
- (SecTrustRef) FOO1 NS_AVAILABLE;
|
- (SecTrustRef) FOO1 NS_AVAILABLE;
|
||||||
|
|
||||||
|
+ (const NSURLProtectionSpace *)ProtectionSpace;
|
||||||
|
|
||||||
// pointer personality functions
|
// pointer personality functions
|
||||||
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
|
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -122,6 +122,8 @@ typedef void *SecTrustRef;
|
||||||
|
|
||||||
- (SecTrustRef) FOO1 NS_AVAILABLE NS_RETURNS_INNER_POINTER;
|
- (SecTrustRef) FOO1 NS_AVAILABLE NS_RETURNS_INNER_POINTER;
|
||||||
|
|
||||||
|
+ (const NSURLProtectionSpace *)ProtectionSpace;
|
||||||
|
|
||||||
// pointer personality functions
|
// pointer personality functions
|
||||||
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
|
@property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue