1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Demangle
Nico Weber 37ae5d8646 llvm-undname: Fix hex escapes in wchar_t, char16_t, char32_t strings
llvm-undname used to put '\x' in front of every pair of nibbles, but
u"\xD7\xFF" produces a string with 6 bytes: \xD7 \0 \xFF \0 (and \0\0). Correct
for a single character (plus terminating \0) is u\xD7FF instead.
Now, wchar_t, char16_t, and char32_t strings roundtrip from source to
clang-cl (and cl.exe) and then llvm-undname.

(...at least as long as it's not a string like L"\xD7FF" L"foo" which
gets demangled as L"\xD7FFfoo", where the compiler then considers the
"f" as part of the hex escape. That seems ok.)

Also add a comment saying that the "almost-valid" char32_t string I
added in my last commit is actually produced by compilers.

llvm-svn: 358857
2019-04-21 17:19:27 +00:00
..
invalid-manglings.test llvm-undname: Fix stack overflow on invalid found by oss-fuzz 2019-04-21 14:25:07 +00:00
ms-arg-qualifiers.test
ms-back-references.test
ms-basic.test llvm-undname: add a missing CHECK: to a passing test 2019-04-16 13:30:50 +00:00
ms-conversion-operators.test
ms-cxx11.test
ms-cxx14.test
ms-cxx17-noexcept.test
ms-mangle.test
ms-md5.test
ms-nested-scopes.test llvm-undname: Tweak arena allocator 2019-04-16 13:52:30 +00:00
ms-operators.test
ms-return-qualifiers.test
ms-string-literals.test llvm-undname: Fix hex escapes in wchar_t, char16_t, char32_t strings 2019-04-21 17:19:27 +00:00
ms-template-callback.test
ms-templates-memptrs-2.test
ms-templates-memptrs.test
ms-templates.test
ms-thunks.test
ms-windows.test