[clang] Fix clang reject valid C++ code after d999ce0302f06d250f6d496b56a5a5f (PR #94471)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 5 12:11:55 PDT 2024
================
@@ -413,7 +413,9 @@ void IncrementalParser::CleanUpPTU(PartialTranslationUnit &PTU) {
if (!ND)
continue;
// Check if we need to clean up the IdResolver chain.
- if (ND->getDeclName().getFETokenInfo())
+ if (ND->getDeclName().getFETokenInfo() &&
+ CI->getPreprocessor().isIncrementalProcessingEnabled() &&
----------------
hokein wrote:
good point. Removed.
https://github.com/llvm/llvm-project/pull/94471
More information about the cfe-commits
mailing list