akyrtzi at gmail.com
Wed Jul 9 15:54:34 PDT 2008
I incorporated the suggestions and committed the patches here:
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 ?
More information about the cfe-dev