[cfe-dev] Review request: Patch for adding raw string support to clang

Cédric Venet cedric.venet at laposte.net
Thu Jun 26 06:05:24 PDT 2008


Hi,

I mostly implemented the C++0x proposal for raw string. You can declare 
a string like:

const char* s2 = R"[test]"; // test
const char* s3 = R"azerty[test]azerty"; // test
const char* s4 = R"azerty[\t\\e]azertst]azerty"; // \t\\e]azertst
const char* s5 = R"[\
a
multiline
string
literal]";

This isn't a very important functionnality, but it can be useful (think 
regex). I have some point on which I would like comment marked with TO 
REVIEW.
The patch is not yet ready for commit, but handle the mentioned case 
without problem.

Regards,

Cédric
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rawstringliteral_review1.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080626/0f8e6ae5/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test2.cpp
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080626/0f8e6ae5/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cpp
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080626/0f8e6ae5/attachment-0002.ksh>


More information about the cfe-dev mailing list