ObjectiveC. Class methods must be ignored when looking for

property accessor's missing backing ivar. This eliminates
the bogus warning being issued. // rdar://15728901

llvm-svn: 198322
This commit is contained in:
Fariborz Jahanian 2014-01-02 17:24:32 +00:00
parent 8dc15806d7
commit 1cc7ae1d08
2 changed files with 15 additions and 1 deletions

View File

@ -3489,7 +3489,8 @@ void Sema::DiagnoseUseOfUnimplementedSelectors() {
ObjCIvarDecl *
Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method,
const ObjCPropertyDecl *&PDecl) const {
if (Method->isClassMethod())
return 0;
const ObjCInterfaceDecl *IDecl = Method->getClassInterface();
if (!IDecl)
return 0;

View File

@ -91,3 +91,16 @@ typedef char BOOL;
}
@end
// rdar://15728901
@interface GATTOperation : NSObject {
long operation;
}
@property(assign) long operation;
@end
@implementation GATTOperation
@synthesize operation;
+ (id) operation {
return 0;
}
@end