[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 19:22:32 PDT 2024


================
@@ -905,6 +912,7 @@ void Preprocessor::Lex(Token &Result) {
     // This token is injected to represent the translation of '#include "a.h"'
     // into "import a.h;". Mimic the notional ';'.
     case tok::annot_module_include:
+    case tok::annot_repl_input_end:
----------------
ChuanqiXu9 wrote:

I introduced  `Interpreter/cxx20-modules.cppm` but I don't have a feeling for change here. Just for its name, it looks slightly odd that we will still handle things after we see `annot_repl_input_end`. (It is an end, isn't it?)

https://github.com/llvm/llvm-project/pull/90574


More information about the cfe-commits mailing list