[clang] [clang-repl] Fix error recovery while PTU cleanup (PR #127467)

Anutosh Bhat via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 06:34:18 PST 2025


================
@@ -114,6 +114,13 @@ TEST_F(InterpreterTest, Errors) {
 
   RecoverErr = Interp->Parse("var1 = 424;");
   EXPECT_TRUE(!!RecoverErr);
+
+  Err = Interp->Parse("int x = 5; auto capture = [&]() { return x * 2; };").takeError();
----------------
anutosh491 wrote:

I meant I see quite some error recovery stuff being added in this place hence I added it here !

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


More information about the cfe-commits mailing list