[clang] [clang-repl] Don't double-remove extern "C" decls from the IdResolver (PR #218129)

Vipul Cariappa via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 22 06:44:35 PDT 2026


================
@@ -235,7 +235,9 @@ void IncrementalParser::CleanUpPTU(TranslationUnitDecl *MostRecentTU) {
       }
       for (NamedDecl *D : NamedDeclsToRemove) {
         List.remove(D);
-        S.IdResolver.RemoveDecl(D);
+        if (D->getDeclName().getFETokenInfo() && !D->getLangOpts().ObjC &&
----------------
Vipul-Cariappa wrote:

Look at Line 250. I am just replicating the same.

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


More information about the cfe-commits mailing list