in a diagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100956
91177308-0d34-0410-b5e6-
96231b3b80d8
Sel, SourceRange(lbrac,rbrac));
if (Method && !OCIType->getInterfaceDecl()->isForwardDecl())
Diag(lbrac, diag::warn_maynot_respond)
- << OCIType->getInterfaceDecl()->getIdentifier()->getName() << Sel;
+ << OCIType->getInterfaceDecl()->getIdentifier() << Sel;
}
}
}
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;
}
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:'}}
}