From: Ted Kremenek Date: Sat, 7 Feb 2009 21:59:45 +0000 (+0000) Subject: Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9e3d8663a1e3eb406cca93d75706209b0490d69;p=clang Convert a use of 'std::ostringstream' to 'llvm::raw_string_ostream'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64033 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index ee17a57e9f..a530905760 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -30,7 +30,6 @@ #include "llvm/Support/Compiler.h" #include "llvm/ADT/STLExtras.h" #include -#include #include using namespace clang; @@ -2479,13 +2478,13 @@ CFRefReport::getEndPath(BugReporter& br, const ExplodedNode* EndN) { // Generate the diagnostic. FullSourceLoc L( S->getLocStart(), SMgr); - std::ostringstream os; + std::string sbuf; + llvm::raw_string_ostream os(sbuf); os << "Object allocated on line " << AllocLine; if (FirstBinding) os << " and stored into '" << FirstBinding->getString() << '\''; - // Get the retain count. const RefVal* RV = EndN->getState()->get(Sym);