forked from OSchip/llvm-project
parent
0c34c1a25f
commit
8a023580c7
|
@ -411,7 +411,7 @@ void IvarInvalidationChecker::checkASTDecl(const ObjCImplementationDecl *ImplD,
|
|||
assert(FirstIvarDecl);
|
||||
printIvar(os, FirstIvarDecl, IvarToPopertyMap);
|
||||
os << "needs to be invalidated; ";
|
||||
os << "No invalidation method is declared for " << InterfaceD->getName();
|
||||
os << "no invalidation method is declared for " << InterfaceD->getName();
|
||||
|
||||
PathDiagnosticLocation IvarDecLocation =
|
||||
PathDiagnosticLocation::createBegin(FirstIvarDecl, BR.getSourceManager());
|
||||
|
@ -475,7 +475,7 @@ void IvarInvalidationChecker::checkASTDecl(const ObjCImplementationDecl *ImplD,
|
|||
assert(FirstIvarDecl);
|
||||
printIvar(os, FirstIvarDecl, IvarToPopertyMap);
|
||||
os << "needs to be invalidated; ";
|
||||
os << "No invalidation method is defined in the @implementation for "
|
||||
os << "no invalidation method is defined in the @implementation for "
|
||||
<< InterfaceD->getName();
|
||||
|
||||
PathDiagnosticLocation IvarDecLocation =
|
||||
|
|
|
@ -225,20 +225,20 @@ extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1,
|
|||
@end
|
||||
|
||||
@interface MissingInvalidationMethod : Foo <FooBar_Protocol>
|
||||
@property (assign) MissingInvalidationMethod *foobar15_warn; // expected-warning {{Property foobar15_warn needs to be invalidated; No invalidation method is defined in the @implementation for MissingInvalidationMethod}}
|
||||
@property (assign) MissingInvalidationMethod *foobar15_warn; // expected-warning {{Property foobar15_warn needs to be invalidated; no invalidation method is defined in the @implementation for MissingInvalidationMethod}}
|
||||
@end
|
||||
@implementation MissingInvalidationMethod
|
||||
@end
|
||||
|
||||
@interface MissingInvalidationMethod2 : Foo <FooBar_Protocol> {
|
||||
Foo *Ivar1;// expected-warning {{Instance variable Ivar1 needs to be invalidated; No invalidation method is defined in the @implementation for MissingInvalidationMethod2}}
|
||||
Foo *Ivar1;// expected-warning {{Instance variable Ivar1 needs to be invalidated; no invalidation method is defined in the @implementation for MissingInvalidationMethod2}}
|
||||
}
|
||||
@end
|
||||
@implementation MissingInvalidationMethod2
|
||||
@end
|
||||
|
||||
@interface MissingInvalidationMethodDecl : NSObject {
|
||||
Foo *Ivar1;// expected-warning {{Instance variable Ivar1 needs to be invalidated; No invalidation method is declared for MissingInvalidationMethodDecl}}
|
||||
Foo *Ivar1;// expected-warning {{Instance variable Ivar1 needs to be invalidated; no invalidation method is declared for MissingInvalidationMethodDecl}}
|
||||
}
|
||||
@end
|
||||
@implementation MissingInvalidationMethodDecl
|
||||
|
@ -246,7 +246,7 @@ extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1,
|
|||
|
||||
@interface MissingInvalidationMethodDecl2 : NSObject {
|
||||
@private
|
||||
Foo *_foo1; // expected-warning {{Instance variable _foo1 needs to be invalidated; No invalidation method is declared for MissingInvalidationMethodDecl2}}
|
||||
Foo *_foo1; // expected-warning {{Instance variable _foo1 needs to be invalidated; no invalidation method is declared for MissingInvalidationMethodDecl2}}
|
||||
}
|
||||
@property (strong) Foo *bar1;
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue