[clang] [clang-repl] Don't double-remove extern "C" decls from the IdResolver (PR #218129)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 06:56:01 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 &&
----------------
vgvassilev wrote:
Good point -- we should move that into a lambda to avoid code duplication.
https://github.com/llvm/llvm-project/pull/218129
More information about the cfe-commits
mailing list