[cfe-dev] Using the Lexer...

Chris Lattner clattner at apple.com
Wed Feb 11 18:10:40 PST 2009


On Feb 11, 2009, at 6:09 PM, Alexei Svitkine wrote:

>> Ok, if you're using a preprocessor and you want it to expand macros  
>> etc,
>> then the preprocessor has to own the lexer.  You should not create  
>> a lexer
>> on the stack, you should do what the clang driver does.
>
> Ah. Shouldn't there be an assert for this or something?

You haven't shown me enough code to know what you're doing.

-Chris



More information about the cfe-dev mailing list