yronglin wrote:

> My reading is that
> 
> ```c++
> #define SOME_MACRO
> module foo SOME_MACRO;
> ```
> 
> SOME_MACRO is expanded

If this is the case,  the current processing in the 
`Preprocessor::LexAfterModuleDecl` function is incorrect. The implementation in 
this PR treats the tokens between `module` and `;` as normal text(use 
`LexUnexpandedToken`). So I'm a bit confused about the wording of 
[cpp.module]/p3 and the note.

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

Reply via email to