[PATCH] D16012: Carry raw string literal information through to the AST StringLiteral representation

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 27 06:11:00 PST 2016


On Wed, Jan 27, 2016 at 9:08 AM, Richard Smith <richard at metafoo.co.uk> wrote:
> What's the benefit of storing this? You can get the same effect by
> re-lexing. We don't guarantee that the pretty printed version of the AST
> comprises the same sequence of tokens in general.

So we don't lose information the user wrote. For instance, this can be
used by http://reviews.llvm.org/D16529 or other clang-tidy checks.

~Aaron

>
> On 27 Jan 2016 3:03 p.m., "Aaron Ballman via cfe-commits"
> <cfe-commits at lists.llvm.org> wrote:
>>
>> aaron.ballman added a comment.
>>
>> In http://reviews.llvm.org/D16012#331219, @aaron.ballman wrote:
>>
>> > Ping
>>
>>
>> Ping
>>
>>
>> http://reviews.llvm.org/D16012
>>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list