Add libc++ name for std::string.

This commit is contained in:
Axel Naumann 2014-01-28 18:12:07 +01:00 committed by sftnight
parent 00e3fd5e7c
commit 651219e6e4

View File

@ -264,7 +264,11 @@ static void StreamValue(llvm::raw_ostream& o, const void* const p,
StreamObj(o, p, ValuePrinterInfo(Ty, &C));
}
}
else if (Ty.getAsString().compare("class std::basic_string<char>") == 0) {
else if (Ty.getAsString().compare("class std::basic_string<char>") == 0
|| Ty.getAsString().compare("class std::__1::basic_string<char, "
"struct std::__1::char_traits<char>, "
"class std::__1::allocator<char> >")
== 0) {
StreamObj(o, p, ValuePrinterInfo(Ty, &C));
o << " "; // force a space
o <<"c_str: ";