diff --git a/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp b/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp index 9d25ce03647fa1e0f938b449e4d9c2d8e3f33df6..b3bad6130108483a5e73a4fdc58bd63af327b096 100644 --- a/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp @@ -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 = diff --git a/test/Analysis/objc_invalidation.m b/test/Analysis/objc_invalidation.m index 5189de43c506a2db94a69a6cb6c229221eb3126b..4fd46c2243f9c85a0e1ed76d4b66ece36ebba1bb 100644 --- a/test/Analysis/objc_invalidation.m +++ b/test/Analysis/objc_invalidation.m @@ -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