[cfe-dev] Confusing comment on LexTokenInternal
neil at daikokuya.co.uk
Wed Jul 8 15:25:21 PDT 2009
> The problem is not that string_literal cannot handle the wide_string_literal cases, that was easy to fix up. However, there are a few places in the grammar that require string literal be exactly that - a narrow string literal. Examples are #include "myfile" and extern "C".
That doesn't seem like a reason to scrap the plan. All such places
need the spelling as they're going to do something with it, such
as check it is "C" or "C++" in the extern case. Rather than check
the token type to be a narrow string, they simply need to check
spelling is a single quote.
More information about the cfe-dev