yronglin wrote:

Do we also need to update `peekNextToken` in Lexer/TokenLexer? 

> so the return value std::nullopt and tok::eof have two different meanings.

We depent std::nullopt to walk up in macro stack in `isNextTokenOneOf`.

https://github.com/llvm/llvm-project/pull/143898
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to