summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-01-28 06:01:42 +0000
committerTed Kremenek <kremenek@apple.com>2009-01-28 06:01:42 +0000
commitbdaa384453c5b1b4470b99da96c25cddfb1cda88 (patch)
tree9619aebd65f64c31380a36d0048c4dde122c80d0 /clang/lib/Analysis
parentaeb115f93a6e582dc9cb615bbd0263e21309401d (diff)
downloadbcm5719-llvm-bdaa384453c5b1b4470b99da96c25cddfb1cda88.tar.gz
bcm5719-llvm-bdaa384453c5b1b4470b99da96c25cddfb1cda88.zip
retain/release checker: More diagnostic refactoring.
llvm-svn: 63184
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp10
1 files changed, 4 insertions, 6 deletions
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<GRState>* N,
if (loc::FuncVal* FV = dyn_cast<loc::FuncVal>(&X))
os << "Call to function '" << FV->getDecl()->getNameAsString() <<'\'';
else
- os << "function call";
-
- os << " returns an object with a ";
+ os << "function call";
}
else {
assert (isa<ObjCMessageExpr>(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 {
OpenPOWER on IntegriCloud