[cfe-commits] r100956 - in /cfe/trunk: lib/Sema/SemaExprObjC.cpp test/SemaObjC/class-method-lookup.m test/SemaObjC/warn-selector-selection.m
Chris Lattner
sabre at nondot.org
Sun Apr 11 00:04:01 PDT 2010
Author: lattner
Date: Sun Apr 11 02:04:01 2010
New Revision: 100956
URL: http://llvm.org/viewvc/llvm-project?rev=100956&view=rev
Log:
fix a problem causing us to lose the ''s around objc interface names
in a diagnostic.
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
cfe/trunk/test/SemaObjC/class-method-lookup.m
cfe/trunk/test/SemaObjC/warn-selector-selection.m
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=100956&r1=100955&r2=100956&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Sun Apr 11 02:04:01 2010
@@ -650,7 +650,7 @@
Sel, SourceRange(lbrac,rbrac));
if (Method && !OCIType->getInterfaceDecl()->isForwardDecl())
Diag(lbrac, diag::warn_maynot_respond)
- << OCIType->getInterfaceDecl()->getIdentifier()->getName() << Sel;
+ << OCIType->getInterfaceDecl()->getIdentifier() << Sel;
}
}
}
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=100956&r1=100955&r2=100956&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/class-method-lookup.m (original)
+++ cfe/trunk/test/SemaObjC/class-method-lookup.m Sun Apr 11 02:04:01 2010
@@ -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=100956&r1=100955&r2=100956&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/warn-selector-selection.m (original)
+++ cfe/trunk/test/SemaObjC/warn-selector-selection.m Sun Apr 11 02:04:01 2010
@@ -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