Rely on Preprocessor::LexTokensUntilEOF() and just replace tok::comma by tok::eof and push a tok::eof as the last element.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Hahnfeld added a parent revision: D158413: [Lex] Introduce Preprocessor::LexTokensUntilEOF().Aug 21 2023, 5:09 AM
Hahnfeld retitled this revision from [LexerTest] Use LexAll() in StringifyArgs to [LexerTest] Use LexTokensUntilEOF() in StringifyArgs.