HomePhabricator

[NFC] Refactor PasteTokens so that it can be passed the Token Stream and Index…

Description

[NFC] Refactor PasteTokens so that it can be passed the Token Stream and Index to start concatenating at.

In passing:
  - change the name of the function to pasteTokens c/w coding standards
  - rename CurToken to CurTokenIdx (since it is not the token, but the index)
  - add doxygen comments to document some of pasteTokens' functionality
  - use parameter names different from the data member names.

This will be useful for implementing VA_OPT (https://reviews.llvm.org/D35782#inline-322587)

Details

Committed
faisalvOct 2 2017, 5:52 PM
Parents
rL314746: Add a comment.
Branches
Unknown
Tags
Unknown