diff options
author | Anna Zaks <ganna@apple.com> | 2013-01-16 01:35:57 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-01-16 01:35:57 +0000 |
commit | 79ccd5635495fb4588d0ec47c0bf05764441a14c (patch) | |
tree | 189592cc9b0750fafe5c045949400862d127e46a | |
parent | 64eb070234bc4cd4fd2debf3a91c6e2d8f0d32d8 (diff) |
[analyzer] Fix warning typo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172596 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp | 4 | ||||
-rw-r--r-- | test/Analysis/objc_invalidation.m | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp b/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp index 9d25ce0364..b3bad61301 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 5189de43c5..4fd46c2243 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 |