Hahnfeld created this revision. Hahnfeld added reviewers: aaron.ballman, v.g.vassilev. Herald added a project: All. Hahnfeld requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
This fixes many unit tests when trying to enable `IncrementalExtensions` by default for testing purposes. Repository: rG LLVM Github Monorepo 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 @@ -1000,7 +1000,7 @@ while (1) { Token tok; Lex(tok); - if (tok.is(tok::eof)) + if (tok.isOneOf(tok::eof, tok::annot_repl_input_end)) break; toks.push_back(tok); }
Index: clang/lib/Lex/Preprocessor.cpp =================================================================== --- clang/lib/Lex/Preprocessor.cpp +++ clang/lib/Lex/Preprocessor.cpp @@ -1000,7 +1000,7 @@ while (1) { Token tok; Lex(tok); - if (tok.is(tok::eof)) + if (tok.isOneOf(tok::eof, tok::annot_repl_input_end)) break; toks.push_back(tok); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits