[clang] [Clang][C23] Memoize typedef lookups for C23 auto disambiguation (PR #224019)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 22 07:37:23 PDT 2026
================
@@ -425,6 +425,11 @@ bool Parser::SkipUntil(ArrayRef<tok::TokenKind> Toks, SkipUntilFlags Flags) {
//===----------------------------------------------------------------------===//
void Parser::EnterScope(unsigned ScopeFlags) {
+ // Invalidate the typedef-name cache: an identifier may resolve differently
+ // in the new scope.
+ if (!IsTypedefNameCache.empty())
----------------
zahiraam wrote:
Dropped the cache.
https://github.com/llvm/llvm-project/pull/224019
More information about the cfe-commits
mailing list