r251115 - [StaticAnalyzer] Use llvm::utostr and not to_string.
Davide Italiano via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 09:43:19 PDT 2015
Author: davide
Date: Fri Oct 23 11:43:18 2015
New Revision: 251115
URL: http://llvm.org/viewvc/llvm-project?rev=251115&view=rev
Log:
[StaticAnalyzer] Use llvm::utostr and not to_string.
The latter seems unsupported (at least) on MinGW and FreeBSD (where
I hit this failure). We can't have nice things.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp?rev=251115&r1=251114&r2=251115&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/IssueHash.cpp Fri Oct 23 11:43:18 2015
@@ -14,6 +14,7 @@
#include "clang/Basic/Specifiers.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/LineIterator.h"
@@ -179,7 +180,7 @@ std::string clang::GetIssueString(const
return (llvm::Twine(CheckerName) + Delimiter +
GetEnclosingDeclContextSignature(D) + Delimiter +
- std::to_string(IssueLoc.getExpansionColumnNumber()) + Delimiter +
+ llvm::utostr(IssueLoc.getExpansionColumnNumber()) + Delimiter +
NormalizeLine(SM, IssueLoc, D) + Delimiter + BugType)
.str();
}
More information about the cfe-commits
mailing list