[clang] [clang-repl] Keep earlier declarations alive when an input fails (PR #218149)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 2 06:14:38 PDT 2026
================
@@ -264,6 +264,7 @@ class CXXRecordDecl : public RecordDecl {
friend class ASTRecordWriter;
friend class ASTWriter;
friend class DeclContext;
+ friend class IncrementalParser;
----------------
SahilPatidar wrote:
This is the DC repair I was developing as part of the new error-recovery model: https://gist.github.com/SahilPatidar/cb8dcf89a7fcb2a5834c47ac7bea8e74
It’s still under construction, and I hadn’t checked whether it was working correctly yet. Given the current design changes, I may need to adjust it, but this is what I have at the moment.
For the current issue, I think we can keep this implementation as it is for now. The broader error-recovery work will eventually cover this.
https://github.com/llvm/llvm-project/pull/218149
More information about the cfe-commits
mailing list