This is an archive of the discontinued LLVM Phabricator instance.

[Parser] Perform CachedTokens update dependent on token consume request
AbandonedPublic

Authored by bruno on Feb 4 2016, 4:25 PM.

Details

Summary

In the context where we break one tok::greatergreater into two tok::greater in order to correctly update the cached tokens; update the CachedTokens with two tok::greater only if ParseGreaterThanInTemplateList clients asks to consume the last token. Otherwise we only need to add one because the second is already added later on, as the current token.

This is a follow up from r259311.

Diff Detail

Event Timeline

bruno abandoned this revision.Feb 4 2016, 4:25 PM
bruno updated this revision to Diff 46976.
bruno retitled this revision from to [Parser] Perform CachedTokens update dependent on token consume request.
bruno updated this object.
bruno added reviewers: rsmith, doug.gregor, akyrtzi.

Forgot to add cfe-commits.