[clang] C++26 Annotation (PR #166287)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 15:48:47 PST 2025
================
@@ -4442,6 +4443,27 @@ static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName,
}
}
+void Parser::ParseAnnotationSpecifier(ParsedAttributes &Attrs,
+ SourceLocation *EndLoc) {
+ assert(Tok.is(tok::equal) && "not an annotation");
+ SourceLocation EqLoc = ConsumeToken();
+
+ ExprResult AnnotExpr = ParseConstantExpression();
+ if (AnnotExpr.isInvalid() || AnnotExpr.get()->containsErrors())
+ return;
+
+ IdentifierTable &IT = Actions.PP.getIdentifierTable();
+ IdentifierInfo &Placeholder = IT.get("__annotation_placeholder");
----------------
zebullax wrote:
Thanks, I took a crack at it in https://github.com/llvm/llvm-project/pull/166287/commits/91095572881f9f3f646ef19c555415602dd173bd , is that what you had in mind ?
https://github.com/llvm/llvm-project/pull/166287
More information about the cfe-commits
mailing list