From: Ted Kremenek <kremenek@apple.com> Date: Wed, 28 Jan 2009 06:06:36 +0000 (+0000) Subject: retain/release checker: Indicate whether a tracked object is a Core Foundation or... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=961b61d6b469b9fa6391c9e59327c6a5810aec57;p=clang retain/release checker: Indicate whether a tracked object is a Core Foundation or Objective-C object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63186 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index bd11c3a0b2..bd5e3b4d53 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -2348,7 +2348,13 @@ PathDiagnosticPiece* CFRefReport::VisitNode(const ExplodedNode<GRState>* N, os << "Method"; } - os << " returns an object with a "; + if (CurrV.getObjKind() == RetEffect::CF) { + os << " returns a Core Foundation object with a "; + } + else { + assert (CurrV.getObjKind() == RetEffect::ObjC); + os << " returns an Objective-C object with a "; + } if (CurrV.isOwned()) os << "+1 retain count (owning reference).";