diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-11 23:17:01 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-11 23:17:01 +0000 |
commit | e5b5953672d237ca8c1354dc79844790311dc6d5 (patch) | |
tree | e795022ec40b03d6cb0a3fad244f84c9f67ec5c4 /clang/lib/Analysis/CheckObjCInstMethSignature.cpp | |
parent | ba1196298a07ad8e6947e2e3ac78eba99c96041c (diff) | |
download | bcm5719-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.cpp | 6 |
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."; |