[clang] [clang][NFC] Prevent scope pollution from repeat type specifiers (PR #193144)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 20 23:00:34 PDT 2026


================
@@ -1694,8 +1694,12 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
   PreserveAtomicIdentifierInfoRAII AtomicTokenGuard(
       Tok, ShouldChangeAtomicToIdentifier);
 
+  // We use a temporary scope when parsing the name specifier for a
+  // declaration with additional invalid type specifiers
----------------
tbaederr wrote:

```suggestion
  // declaration with additional invalid type specifiers.
```

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


More information about the cfe-commits mailing list