llvm-project/lldb/source/Plugins/Language/CPlusPlus
Dawn Perchik 045c829223 Fix evaluation of unicode character arrays (char16_t[] and char32_t[])
Suppose we have the UTF-16 string:
    char16_t[] s = u"hello";
Before this patch, evaluating the string in lldb would get:
    (char16_t [6]) $0 = ([0] = U+0068 u'h', [1] = U+0065 u'e', [2] = U+006c u'l', [3] = U+006c u'l', [4] = U+006f u'o', [5] = U+0000 u'\0')
After applying the patch, we now get:
    (char16_t [6]) $0 = u"hello"

Patch from evgeny.leviant@gmail.com
Reviewed by: granata.enrico
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D13053

llvm-svn: 248555
2015-09-25 02:16:52 +00:00
..
CMakeLists.txt Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
CPlusPlusLanguage.cpp Fix evaluation of unicode character arrays (char16_t[] and char32_t[]) 2015-09-25 02:16:52 +00:00
CPlusPlusLanguage.h Move hardcoded formatters from the FormatManager to the Language plugins 2015-09-16 18:28:11 +00:00
CxxStringTypes.cpp Fix evaluation of unicode character arrays (char16_t[] and char32_t[]) 2015-09-25 02:16:52 +00:00
CxxStringTypes.h Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxx.cpp 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 2015-09-09 22:30:24 +00:00
LibCxx.h Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxxInitializerList.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxxList.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxxMap.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxxUnorderedMap.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibCxxVector.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibStdcpp.cpp Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
LibStdcpp.h Move the C++ data formatters to the C++ language plugin 2015-09-04 21:01:18 +00:00
Makefile Fix Makefile build 2015-09-05 20:01:56 +00:00