From: Ted Kremenek Date: Tue, 17 Nov 2009 00:35:14 +0000 (+0000) Subject: Remove extra space in warn_maynot_respond diagnostic. Fixes . X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a661bee756bf0c0ca1d42377c6f7b0936d171f48;p=clang Remove extra space in warn_maynot_respond diagnostic. Fixes . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89013 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index bd0dec6a8d..e1fe4dd4b6 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2375,7 +2375,7 @@ def error_private_ivar_access : Error<"instance variable %0 is private">, 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< diff --git a/test/SemaObjC/class-method-lookup.m b/test/SemaObjC/class-method-lookup.m index cba93825a4..6f745d48ab 100644 --- a/test/SemaObjC/class-method-lookup.m +++ b/test/SemaObjC/class-method-lookup.m @@ -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; } diff --git a/test/SemaObjC/warn-selector-selection.m b/test/SemaObjC/warn-selector-selection.m index 4ab89b7e1e..4918de77dc 100644 --- a/test/SemaObjC/warn-selector-selection.m +++ b/test/SemaObjC/warn-selector-selection.m @@ -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:'}} }