//===----------------------------------------------------------------------===//
#include "llvm/ADT/SmallString.h"
-#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallSet.h"
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Record.h"
// present in the caller.
Test = "LangOpts.CPlusPlus11";
- // FIXME: When MinGW support is dropped, or they gain support for
- // std::to_string, this hack can be dropped as well.
- std::stringstream ss;
- ss << Version;
-
std::string TestStr =
- !Test.empty() ? Test + " ? " + ss.str() + " : 0" : "1";
+ !Test.empty() ? Test + " ? " + llvm::itostr(Version) + " : 0" : "1";
std::vector<FlattenedSpelling> Spellings = GetFlattenedSpellings(*Attr);
for (const auto &S : Spellings)
if (Variety.empty() || (Variety == S.variety() &&