summaryrefslogtreecommitdiffstats
path: root/clang/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
commite5b5953672d237ca8c1354dc79844790311dc6d5 (patch)
treee795022ec40b03d6cb0a3fad244f84c9f67ec5c4 /clang/lib/Analysis/CheckObjCInstMethSignature.cpp
parentba1196298a07ad8e6947e2e3ac78eba99c96041c (diff)
downloadbcm5719-llvm-e5b5953672d237ca8c1354dc79844790311dc6d5.tar.gz
bcm5719-llvm-e5b5953672d237ca8c1354dc79844790311dc6d5.zip
Tidy up error message.
llvm-svn: 53493
Diffstat (limited to 'clang/lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r--clang/lib/Analysis/CheckObjCInstMethSignature.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
index 2572edbc121..f5966ecc724 100644
--- a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp
+++ b/clang/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.";
OpenPOWER on IntegriCloud