[cfe-commits] r53493 - /cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp
Ted Kremenek
kremenek at apple.com
Fri Jul 11 16:17:01 PDT 2008
Author: kremenek
Date: Fri Jul 11 18:17:01 2008
New Revision: 53493
URL: http://llvm.org/viewvc/llvm-project?rev=53493&view=rev
Log:
Tidy up error message.
Modified:
cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp
Modified: cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp?rev=53493&r1=53492&r2=53493&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp (original)
+++ cfe/trunk/lib/Analysis/CheckObjCInstMethSignature.cpp Fri Jul 11 18:17:01 2008
@@ -56,8 +56,10 @@
<< MethDerived->getSelector().getName()
<< "' whose return type is '"
<< ResDerived.getAsString()
- << "'. The same method (same selector) is defined in class 'B' and has "
- "a return type of '"
+ << "'. A method with the same name (same selector) is also defined in "
+ "class '"
+ << MethAncestor->getClassInterface()->getName()
+ << "' and has a return type of '"
<< ResAncestor.getAsString()
<< "'. These two types are incompatible, and may result in undefined "
"behavior for clients of these classes.";
More information about the cfe-commits
mailing list