This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by bruno on Feb 4 2016, 4:27 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 updated this revision to Diff 46978.Feb 4 2016, 4:27 PM
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.
bruno added subscribers: cfe-commits, dexonsmith.
doug.gregor accepted this revision.Feb 4 2016, 8:37 PM
doug.gregor edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Feb 4 2016, 8:37 PM
bruno closed this revision.Feb 5 2016, 11:47 AM

Committed r259910