diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-08 18:09:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-08 18:09:16 +0000 |
commit | f34cb3d3df1612e14a19d259afa3424337cd315e (patch) | |
tree | 97013dd901974ea06fa5d4b5b2e4fb4df27ef72d | |
parent | 36ec9c2160041efa41320c843882ae104f43350b (diff) |
Tweak warning text for nil value in ObjC container warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179034 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp | 2 | ||||
-rw-r--r-- | test/Analysis/NSContainers.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp b/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp index afccb9bebc..ed503d1cf9 100644 --- a/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp +++ b/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp @@ -124,7 +124,7 @@ void NilArgChecker::WarnIfNilArg(CheckerContext &C, os << "Array element cannot be nil"; } else if (Class == FC_NSDictionary) { if (Arg == 0) { - os << "Value stored in '"; + os << "Value stored into '"; os << GetReceiverInterfaceName(msg) << "' cannot be nil"; } else { assert(Arg == 1); diff --git a/test/Analysis/NSContainers.m b/test/Analysis/NSContainers.m index 2be7ae4058..540c7a4eab 100644 --- a/test/Analysis/NSContainers.m +++ b/test/Analysis/NSContainers.m @@ -127,13 +127,13 @@ void testNilArgNSMutableDictionary3(NSMutableDictionary *d) { } void testNilArgNSMutableDictionary5(NSMutableDictionary *d, NSString* key) { - d[key] = 0; // expected-warning {{Value stored in 'NSMutableDictionary' cannot be nil}} + d[key] = 0; // expected-warning {{Value stored into 'NSMutableDictionary' cannot be nil}} } void testNilArgNSMutableDictionary6(NSMutableDictionary *d, NSString *key) { if (key) ; d[key] = 0; // expected-warning {{'NSMutableDictionary' key cannot be nil}} - // expected-warning@-1 {{Value stored in 'NSMutableDictionary' cannot be nil}} + // expected-warning@-1 {{Value stored into 'NSMutableDictionary' cannot be nil}} } NSDictionary *testNilArgNSDictionary1(NSString* key) { |