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:
parent
8dc15806d7
commit
1cc7ae1d08
|
@ -3489,7 +3489,8 @@ void Sema::DiagnoseUseOfUnimplementedSelectors() {
|
||||||
ObjCIvarDecl *
|
ObjCIvarDecl *
|
||||||
Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method,
|
Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method,
|
||||||
const ObjCPropertyDecl *&PDecl) const {
|
const ObjCPropertyDecl *&PDecl) const {
|
||||||
|
if (Method->isClassMethod())
|
||||||
|
return 0;
|
||||||
const ObjCInterfaceDecl *IDecl = Method->getClassInterface();
|
const ObjCInterfaceDecl *IDecl = Method->getClassInterface();
|
||||||
if (!IDecl)
|
if (!IDecl)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -91,3 +91,16 @@ typedef char BOOL;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// rdar://15728901
|
||||||
|
@interface GATTOperation : NSObject {
|
||||||
|
long operation;
|
||||||
|
}
|
||||||
|
@property(assign) long operation;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation GATTOperation
|
||||||
|
@synthesize operation;
|
||||||
|
+ (id) operation {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
Loading…
Reference in New Issue