[clang] [llvm] [Clang-Repl] Introduce Error Recovery for Clang-Repl. (PR #223305)

via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 1 20:19:05 PST 2026


================
@@ -54,6 +54,7 @@
 namespace clang {
 
 class ASTContext;
+class DeclStateReverter;
----------------
SahilPatidar wrote:

Do you mean VisitX will decide which operation to execute and dispatch it based on the condition? If you mean putting everything inside VisitX, I’m not clear on how that will work.

If VisitX is expected to conditionally select between commit, restore ... I was thinking that this operation dispatch should live in `PTUMutationActions`. It would select the operation based on the current action and delegate the declaration-specific work to `ASTDeclUnmerger`.

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


More information about the cfe-commits mailing list