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

Jared Wyles via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 27 19:06:22 PST 2026


jaredwy wrote:

Are there now two clang::ASTDeclUnmerger? Seems like there is, wouldn't this be ODR violation?

Does anything actually run this? I can't find a PTUMutationRecorder instantiation for example.  

If i was to split it, I would add all the llvm changes and their tests into to 1 PR first. 

Then another one that is the extension of ASTDeclUnmerger, write a lot of tests for it make sure it picks up everything we need. Make sure we are looking inside namespaces etc etc. 

The next one would do the heavy lifting, would do the work of removing the decls on rollback. 

The last one would be what you have a todo for the ASTMutationListener this would rewrite any decls etc that are needed to restore the previous PTU.


They all seem to make sense to me as easy testable, gateable checks? 


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


More information about the cfe-commits mailing list