[cfe-dev] Parse error on //*

Magnus Reftel magnus.reftel at gmail.com
Wed Mar 24 04:47:35 PDT 2010


Hi,

On 18 March 2010 14:56, Magnus Reftel <magnus.reftel at gmail.com> wrote:
> I'm trying to build a simple source code transformation tool. I'm
> having problems getting the parser to accept single-line comments that
> start with an asterisk. Even a file containing only the three
> characters "//*" fails, while one with "// *" succeeds.
[...]
> I've tried to explicitly set C99 to 1 in the LangOptions,
> but with no success.

Solved it by setting LangOptions::BCPLComment to 1. I thought
//-comments would be implied by LangOptions::C99, but it's not.

/Magnus



More information about the cfe-dev mailing list