From bdaa384453c5b1b4470b99da96c25cddfb1cda88 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 28 Jan 2009 06:01:42 +0000 Subject: retain/release checker: More diagnostic refactoring. llvm-svn: 63184 --- clang/lib/Analysis/CFRefCount.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'clang') diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 61c1f1835b0..bd11c3a0b27 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -606,8 +606,6 @@ public: } // end anonymous namespace - - //===----------------------------------------------------------------------===// // Implementation of checker data structures. //===----------------------------------------------------------------------===// @@ -2343,15 +2341,15 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode* N, if (loc::FuncVal* FV = dyn_cast(&X)) os << "Call to function '" << FV->getDecl()->getNameAsString() <<'\''; else - os << "function call"; - - os << " returns an object with a "; + os << "function call"; } else { assert (isa(S)); - os << "Method returns an object with a "; + os << "Method"; } + os << " returns an object with a "; + if (CurrV.isOwned()) os << "+1 retain count (owning reference)."; else { -- cgit v1.2.3