diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 00:17:44 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-05 00:17:44 +0000 |
commit | 69f50e7f29766ce76e79c69c38302ba654202377 (patch) | |
tree | a8f2dc16968a91464874b36cf1939362de3f2e97 /test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp | |
parent | e31b8fb25b458f00e31dcd657c0840e5238e0f05 (diff) |
Fix assertions and wrong output from StmtPrinter's string literal printing.
String literals (including unicode ones) can contain non-Unicode codepoints
if they were written using \x or similar. Write those out using \x, but be
careful that the following character can't be misinterpreted as part of the
\x escape sequence. Convert UTF-16 surrogate pairs back to codepoints before
rendering them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p12.cpp')
0 files changed, 0 insertions, 0 deletions