================
@@ -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:
----------------
vgvassilev wrote:

> IIUC, we should reset states like ModuleDeclState when we meet a 
> tok::annot_repl_input_end token in preprocessor.

Quite possibly. This change was introduced by @ChuanqiXu9, maybe he has a 
better idea?

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