[clang] C++26 Annotation (PR #166287)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 21:01:41 PST 2025


================
@@ -4681,16 +4703,21 @@ void Parser::ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs,
       Diag(Tok.getLocation(), diag::err_expected) << tok::colon;
   }
 
-  bool AttrParsed = false;
+  bool hasAttribute = false;
+  bool hasAnnotation = false;
----------------
tbaederr wrote:

```suggestion
  bool HasAttribute = false;
  bool HasAnnotation = false;
```

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


More information about the cfe-commits mailing list