]> granicus.if.org Git - clang/commit
[Lex] A source-file new-line in a raw string literal results in a new-line
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 23 Sep 2015 16:04:47 +0000 (16:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 23 Sep 2015 16:04:47 +0000 (16:04 +0000)
commit4bb5c31d2c26e4fe2cd6d0fede53293ea6dfff66
tree3ae6f1021c6134aaf5e8a2274685e7659b2536d5
parentc0ddea50a743ce0601ea705bb14188cd94c0fe8a
[Lex] A source-file new-line in a raw string literal results in a new-line

Our string literal parser copied any source-file new-line characters
into the execution string-literal.  This is incorrect if the source-file
new-line character was a \r\n sequence because new-line characters are
merely \n.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248392 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/LiteralSupport.cpp
test/CXX/lex/lex.literal/lex.string/p4.cpp [new file with mode: 0644]