]> granicus.if.org Git - clang/commitdiff
retain/release checker: More diagnostic refactoring.
authorTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 06:01:42 +0000 (06:01 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 28 Jan 2009 06:01:42 +0000 (06:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 61c1f1835b05032fa9a508169c350292b6950de0..bd11c3a0b2721c26b9231792f29ea63a0b068494 100644 (file)
@@ -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 {