Refine diagnostics in my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 14 Aug 2013 00:07:10 +0000 (00:07 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 14 Aug 2013 00:07:10 +0000 (00:07 +0000)
// rdar://14303083

llvm-svn: 188335

clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/test/SemaObjC/objc-array-literal.m

index 5a2e6a9c6bf1894546ab116dba7b95c2e1921a30..d35680848be44d94249d77ed57bd4e6c6b6f8461 100644 (file)
@@ -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">;
index 0d18d73c414cd74663e08fb2980c0dd975959423..e6e4c471b538cd26211f4185916d6511dc6777fe 100644 (file)
@@ -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}}
 }