]> granicus.if.org Git - clang/commitdiff
Tidy up error message.
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Jul 2008 23:17:01 +0000 (23:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Jul 2008 23:17:01 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53493 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CheckObjCInstMethSignature.cpp

index 2572edbc1215dc8488a1b50445344b81b5eb793f..f5966ecc724041264eb27fdbccc175a312f9d642 100644 (file)
@@ -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.";