aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CheckObjCInstMethSignature.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-11 23:17:01 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-11 23:17:01 +0000
commite4773eb6398acb03ad692050cb84b53ca1750b5b (patch)
tree7f0bb877a0796e21dd228fe2de8038dc3220ef54 /lib/Analysis/CheckObjCInstMethSignature.cpp
parent170db7c38d363f6ca34b502f3ff1bb17e5eba6b7 (diff)
Tidy up error message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53493 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r--lib/Analysis/CheckObjCInstMethSignature.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Analysis/CheckObjCInstMethSignature.cpp b/lib/Analysis/CheckObjCInstMethSignature.cpp
index 2572edbc12..f5966ecc72 100644
--- a/lib/Analysis/CheckObjCInstMethSignature.cpp
+++ b/lib/Analysis/CheckObjCInstMethSignature.cpp
@@ -56,8 +56,10 @@ static void CompareReturnTypes(ObjCMethodDecl* MethDerived,
<< 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.";