[PATCH] D39279: Stringizing raw string literals containing newline
Taewook Oh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 24 23:58:48 PDT 2017
twoh created this revision.
This patch implements 4.3 of http://open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4220.pdf. If a raw string contains a newline character, replace each newline character with the \n escape code. Without this patch, included test case (macro_raw_string.cpp) results compilation failure.
https://reviews.llvm.org/D39279
Files:
lib/Lex/Lexer.cpp
test/Preprocessor/macro_raw_string.cpp
unittests/Lex/LexerTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39279.120194.patch
Type: text/x-patch
Size: 12511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171025/c25637bf/attachment-0001.bin>
More information about the cfe-commits
mailing list