================
@@ -6409,6 +6409,60 @@ static void handleRequiresCapabilityAttr(Sema &S, Decl
*D,
D->addAttr(RCA);
}
+static void handleCxx26AnnotationAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
+ Expr *CE = AL.getArgAsExpr(0);
+ if (CE->isLValue()) {
----------------
zwuis wrote:
I think most checks of `handleCxx26AnnotationAttr` should be (maybe indirectly)
delegated to `CheckTemplateArgument` in SemaTemplate.cpp .
`meta::reflect_constant(E)` requires `E` as a valid template argument.
https://github.com/llvm/llvm-project/pull/166287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits