akyrtzi added a comment. In D133674#3784710 <https://reviews.llvm.org/D133674#3784710>, @akyrtzi wrote:
> In D133674#3784602 <https://reviews.llvm.org/D133674#3784602>, @jansvoboda11 > wrote: > >> Could you explain why this is necessary and even correct? I'd expect Clang >> to give an error when seeing `##` in this position, and I'd expect the >> scanner to do the same. > > `##` is lexed as `tok::hashhash`; it is ignored by the preprocessor (it is > not treated as the start of a preprocessor directive) and passed on to the > parser to interpret, like any other token. @jansvoboda11 I've added a comment in code to make it clear why it skips. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133674/new/ https://reviews.llvm.org/D133674 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits