This revision was automatically updated to reflect the committed changes. Closed by commit rGabb9eb2778dc: [Lex] Handle repl_input_end in Preprocessor::LexTokensUntilEOF() (authored by Hahnfeld).
Changed prior to commit: https://reviews.llvm.org/D158415?vs=556849&id=557607#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158415/new/ https://reviews.llvm.org/D158415 Files: clang/lib/Lex/Preprocessor.cpp Index: clang/lib/Lex/Preprocessor.cpp =================================================================== --- clang/lib/Lex/Preprocessor.cpp +++ clang/lib/Lex/Preprocessor.cpp @@ -1002,7 +1002,8 @@ while (1) { Token Tok; Lex(Tok); - if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod)) + if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod, + tok::annot_repl_input_end)) break; if (Tokens != nullptr) Tokens->push_back(Tok);
Index: clang/lib/Lex/Preprocessor.cpp =================================================================== --- clang/lib/Lex/Preprocessor.cpp +++ clang/lib/Lex/Preprocessor.cpp @@ -1002,7 +1002,8 @@ while (1) { Token Tok; Lex(Tok); - if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod)) + if (Tok.isOneOf(tok::unknown, tok::eof, tok::eod, + tok::annot_repl_input_end)) break; if (Tokens != nullptr) Tokens->push_back(Tok);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits