[clang] [clang-repl] Keep earlier declarations alive when an input fails (PR #218149)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 22 00:06:35 PDT 2026


================
@@ -25,7 +25,11 @@ class ASTConsumer;
 class CompilerInstance;
 class Parser;
 class Sema;
+class ASTContext;
+class CXXRecordDecl;
+class NamedDecl;
 class TranslationUnitDecl;
+template <typename decl_type> class Redeclarable;
----------------
vgvassilev wrote:

Why do we need these new forward declarations in the header file?

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


More information about the cfe-commits mailing list