[cfe-dev] Preprocessor::LookNext
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Jul 9 15:54:34 PDT 2008
I incorporated the suggestions and committed the patches here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080707/006444.html
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080707/006445.html
Chris Lattner wrote:
>
> +++ lib/Lex/PPLexerChange.cpp (working copy)
> @@ -85,6 +85,10 @@
> // size we new to a multiple of 16 tokens. If the previous buffer
> has space
> // left, we can just grow it. This means we only have to do the
> new 1/16th as
> // often.
> +
> + // Optimized LookAhead(0) case.
> + if (N == 0)
> + return LookNext();
>
> Token *LookaheadTokens = new Token[N+1];
>
> Is this correct for the LookAhead(1) case?
I don't quite understand what you mean, LookAhead(1) isn't affected by
this change, can you elaborate ?
-Argiris
More information about the cfe-dev
mailing list