aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-08-14 00:07:10 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-08-14 00:07:10 +0000
commitfde99b2e31e9b06bf27c0a5e51c492b78710044f (patch)
tree63b9624395c4624f82da8ac30b1f94beebec2c30
parent0d905476f8316eeeac5dcfb9d415d3e0256aae58 (diff)
downloadllvm-fde99b2e31e9b06bf27c0a5e51c492b78710044f.zip
llvm-fde99b2e31e9b06bf27c0a5e51c492b78710044f.tar.gz
llvm-fde99b2e31e9b06bf27c0a5e51c492b78710044f.tar.bz2
Refine diagnostics in my last patch.
// rdar://14303083 llvm-svn: 188335
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td3
-rw-r--r--clang/test/SemaObjC/objc-array-literal.m2
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 5a2e6a9..d356808 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1899,7 +1899,8 @@ def warn_objc_string_literal_comparison : Warning<
"direct comparison of a string literal has undefined behavior">,
InGroup<ObjCStringComparison>;
def warn_concatenated_nsarray_literal : Warning<
- "concatenated nsstring literal for an nsarray expression">,
+ "concatenated NSString literal for an NSArray expression - "
+ "possibly missing a comma">,
InGroup<ObjCStringConcatenation>;
def note_objc_literal_comparison_isequal : Note<
"use 'isEqual:' instead">;
diff --git a/clang/test/SemaObjC/objc-array-literal.m b/clang/test/SemaObjC/objc-array-literal.m
index 0d18d73..e6e4c47 100644
--- a/clang/test/SemaObjC/objc-array-literal.m
+++ b/clang/test/SemaObjC/objc-array-literal.m
@@ -43,5 +43,5 @@ int main() {
// rdar://14303083
id Test14303083() {
id obj = @[ @"A", (@"B" @"C")];
- return @[ @"A", @"B" @"C"]; // expected-warning {{concatenated nsstring literal for an nsarray expression}}
+ return @[ @"A", @"B" @"C"]; // expected-warning {{concatenated NSString literal for an NSArray expression - possibly missing a comma}}
}