[cfe-commits] r59472 - in /cfe/trunk: include/clang/Lex/Preprocessor.h lib/Lex/PPLexerChange.cpp

Chris Lattner clattner at apple.com
Wed Nov 19 23:26:47 PST 2008


On Nov 17, 2008, at 4:12 PM, Ted Kremenek wrote:

> Author: kremenek
> Date: Mon Nov 17 18:12:49 2008
> New Revision: 59472
>
> URL: http://llvm.org/viewvc/llvm-project?rev=59472&view=rev
> Log:
> - Add 'CurPPLexer' to Preprocessor to keep track of the current
>  PreprocessorLexer, which will either be a 'Lexer' or 'PTHLexer'.
> - Added stub field 'CurPTHLexer' to keep track of the current  
> PTHLexer.
> - Modified IncludeStackInfo to track both the current PTHLexer and
>  current PreprocessorLexer.

Ok.

>   /// #included, and macros currently being expanded from, not  
> counting
>   /// CurLexer/CurTokenLexer.
>   struct IncludeStackInfo {
> -    Lexer *TheLexer;
> +    Lexer                 *TheLexer;
> +    PTHLexer              *ThePTHLexer;
> +    PreprocessorLexer     *ThePPLexer;
> +    TokenLexer            *TheTokenLexer;
>     const DirectoryLookup *TheDirLookup;

Do you plan to kill off ThePTHLexer/TheLexer?  We should just need  
ThePPLexer eventually.

-Chris




More information about the cfe-commits mailing list