diff options
| author | Enrico Granata <egranata@apple.com> | 2015-09-09 22:30:24 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-09-09 22:30:24 +0000 |
| commit | ac49453b58779dbc2f9949d797aa422249023432 (patch) | |
| tree | a92d25c5fcb733ce01a00599d4587b9bcb900a40 /lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp | |
| parent | 255652e828ea84957f76d6719436e34ece09605d (diff) | |
| download | bcm5719-llvm-ac49453b58779dbc2f9949d797aa422249023432.tar.gz bcm5719-llvm-ac49453b58779dbc2f9949d797aa422249023432.zip | |
Introduce the notion of an escape helper. Different languages have different notion of what to print in a string and how to escape non-printable things. The escape helper is where this notion is provided to LLDB
This is NFC, other than a code re-org
llvm-svn: 247200
Diffstat (limited to 'lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp')
| -rw-r--r-- | lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp b/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp index 7d7156858a3..5928293789b 100644 --- a/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp +++ b/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp @@ -570,7 +570,7 @@ lldb_private::formatters::LibcxxWStringSummaryProvider (ValueObject& valobj, Str // std::wstring::size() is measured in 'characters', not bytes auto wchar_t_size = valobj.GetTargetSP()->GetScratchClangASTContext()->GetBasicType(lldb::eBasicTypeWChar).GetByteSize(nullptr); - ReadBufferAndDumpToStreamOptions options(valobj); + StringPrinter::ReadBufferAndDumpToStreamOptions options(valobj); options.SetData(extractor); options.SetStream(&stream); options.SetPrefixToken('L'); @@ -581,15 +581,15 @@ lldb_private::formatters::LibcxxWStringSummaryProvider (ValueObject& valobj, Str switch (wchar_t_size) { case 1: - StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringElementType::UTF8>(options); + StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringPrinter::StringElementType::UTF8>(options); break; case 2: - lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringElementType::UTF16>(options); + lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringPrinter::StringElementType::UTF16>(options); break; case 4: - lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringElementType::UTF32>(options); + lldb_private::formatters::StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringPrinter::StringElementType::UTF32>(options); break; default: @@ -623,14 +623,14 @@ lldb_private::formatters::LibcxxStringSummaryProvider (ValueObject& valobj, Stre size = std::min<decltype(size)>(size, valobj.GetTargetSP()->GetMaximumSizeOfStringSummary()); location_sp->GetPointeeData(extractor, 0, size); - ReadBufferAndDumpToStreamOptions options(valobj); + StringPrinter::ReadBufferAndDumpToStreamOptions options(valobj); options.SetData(extractor); options.SetStream(&stream); options.SetPrefixToken(0); options.SetQuote('"'); options.SetSourceSize(size); options.SetBinaryZeroIsTerminator(false); - StringPrinter::ReadBufferAndDumpToStream<lldb_private::formatters::StringElementType::ASCII>(options); + StringPrinter::ReadBufferAndDumpToStream<StringPrinter::StringElementType::ASCII>(options); return true; } |

