HomePhabricator

Stringizing raw string literals containing newline

Description

Stringizing raw string literals containing newline

Summary: 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.

Reviewers: rsmith, doug.gregor, jkorous-apple

Reviewed By: jkorous-apple

Subscribers: jkorous-apple, vsapsai, cfe-commits

Differential Revision: https://reviews.llvm.org/D39279

Details

Committed
twohDec 6 2017, 9:00 AM
Reviewer
jkorous-apple
Differential Revision
D39279: Stringizing raw string literals containing newline
Branches
Unknown
Tags
Unknown