diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-28 06:06:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-28 06:06:36 +0000 |
commit | f0ec316a04d358c5dd1023a30b1e65f68d15c5ce (patch) | |
tree | ece5c05501857e685f8decab089128213f7065b8 /clang/lib/Analysis | |
parent | e1d49c25729afb99beba4f8113308a03a1aec17e (diff) | |
download | bcm5719-llvm-f0ec316a04d358c5dd1023a30b1e65f68d15c5ce.tar.gz bcm5719-llvm-f0ec316a04d358c5dd1023a30b1e65f68d15c5ce.zip |
retain/release checker: Indicate whether a tracked object is a Core Foundation or Objective-C object.
llvm-svn: 63186
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index bd11c3a0b27..bd5e3b4d537 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/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)."; |