[cfe-commits] r89013 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/class-method-lookup.m test/SemaObjC/warn-selector-selection.m

Ted Kremenek kremenek at apple.com
Mon Nov 16 16:35:15 PST 2009


Author: kremenek
Date: Mon Nov 16 18:35:14 2009
New Revision: 89013

URL: http://llvm.org/viewvc/llvm-project?rev=89013&view=rev
Log:
Remove extra space in warn_maynot_respond diagnostic.  Fixes <rdar://problem/7364274>.


Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
    cfe/trunk/test/SemaObjC/class-method-lookup.m
    cfe/trunk/test/SemaObjC/warn-selector-selection.m

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=89013&r1=89012&r2=89013&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon Nov 16 18:35:14 2009
@@ -2375,7 +2375,7 @@
     NoSFINAE;
 def error_protected_ivar_access : Error<"instance variable %0 is protected">,
     NoSFINAE;
-def warn_maynot_respond : Warning<"%0  may not respond to %1">;
+def warn_maynot_respond : Warning<"%0 may not respond to %1">;
 def warn_attribute_method_def : Warning<
   "method attribute can only be specified on method declarations">;
 def ext_typecheck_base_super : Warning<

Modified: cfe/trunk/test/SemaObjC/class-method-lookup.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/class-method-lookup.m?rev=89013&r1=89012&r2=89013&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/class-method-lookup.m (original)
+++ cfe/trunk/test/SemaObjC/class-method-lookup.m Mon Nov 16 18:35:14 2009
@@ -40,7 +40,7 @@
 id foo(void) {
   Object *obj;
   id obj2 = obj;
-  [obj setWindow:nil]; // expected-warning {{Object  may not respond to 'setWindow:'}}
+  [obj setWindow:nil]; // expected-warning {{Object may not respond to 'setWindow:'}}
 
   return obj;
 }

Modified: cfe/trunk/test/SemaObjC/warn-selector-selection.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/warn-selector-selection.m?rev=89013&r1=89012&r2=89013&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/warn-selector-selection.m (original)
+++ cfe/trunk/test/SemaObjC/warn-selector-selection.m Mon Nov 16 18:35:14 2009
@@ -10,5 +10,5 @@
 
 void foo(void) {
   Object *obj;
-  [obj setWindow:0]; // expected-warning{{Object  may not respond to 'setWindow:'}}
+  [obj setWindow:0]; // expected-warning{{Object may not respond to 'setWindow:'}}
 }





More information about the cfe-commits mailing list