From 79ccd5635495fb4588d0ec47c0bf05764441a14c Mon Sep 17 00:00:00 2001 From: Anna Zaks <ganna@apple.com> Date: Wed, 16 Jan 2013 01:35:57 +0000 Subject: [PATCH] [analyzer] Fix warning typo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172596 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp | 4 ++-- 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 9d25ce03647..b3bad613010 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 5189de43c50..4fd46c2243f 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 -- GitLab