Teach Lexer::getSpelling about raw string literals. Specifically, if a raw
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 28 Nov 2012 07:29:00 +0000 (07:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 28 Nov 2012 07:29:00 +0000 (07:29 +0000)
commit9a67f47882901e4cd3ab16935a7ca9a59a2e3c97
treea70842e39d33812b9288e61fe3f3782bf0e7cf27
parent1c33fe8feae103191a3cd75e371d80032ad5f607
Teach Lexer::getSpelling about raw string literals. Specifically, if a raw
string literal needs cleaning (because it contains line-splicing in the
encoding prefix or in the ud-suffix), do not clean the section between the
double-quotes -- that's the "raw" bit!

llvm-svn: 168776
clang/lib/Lex/Lexer.cpp
clang/test/CXX/lex/lex.literal/lex.ext/p5.cpp
clang/test/CodeGen/string-literal.c