From f7ccbad5d9949e7ddd1cbef43d482553b811e026 Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Sun, 5 Feb 2012 02:13:05 +0000 Subject: Basic: import SmallString<> into clang namespace (I was going to fix the TODO about DenseMap too, but that would break self-host right now. See PR11922.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149799 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp') diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 4eebdb7f8d..94368b5f4e 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -441,7 +441,7 @@ public: // Create the diagnostic. if (Loc::isLocType(VD->getType())) { - llvm::SmallString<64> buf; + SmallString<64> buf; llvm::raw_svector_ostream os(buf); os << '\'' << *VD << "' now aliases '" << *MostRecent << '\''; PathDiagnosticLocation L = @@ -1897,7 +1897,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) { StringRef desc = exampleReport->getShortDescription(); unsigned ErrorDiag; { - llvm::SmallString<512> TmpStr; + SmallString<512> TmpStr; llvm::raw_svector_ostream Out(TmpStr); for (StringRef::iterator I=desc.begin(), E=desc.end(); I!=E; ++I) if (*I == '%') @@ -1952,7 +1952,7 @@ void BugReporter::EmitBasicReport(StringRef name, BugType *BugReporter::getBugTypeForName(StringRef name, StringRef category) { - llvm::SmallString<136> fullDesc; + SmallString<136> fullDesc; llvm::raw_svector_ostream(fullDesc) << name << ":" << category; llvm::StringMapEntry & entry = StrBugTypes.GetOrCreateValue(fullDesc); -- cgit v1.2.3-70-g09d2