[clang] [Clang] Implement consteval blocks for C++26 (PR #188665)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 14 15:49:51 PDT 2026
================
@@ -1917,6 +1917,15 @@ Parser::DeclGroupPtrTy Parser::ParseDeclaration(DeclaratorContext Context,
ProhibitAttributes(DeclSpecAttrs);
SingleDecl = ParseStaticAssertDeclaration(DeclEnd);
break;
+ case tok::kw_consteval:
+ if (NextToken().is(tok::l_brace)) {
+ ProhibitAttributes(DeclAttrs);
----------------
Sirraide wrote:
Ah yeah, I always forget those...
https://github.com/llvm/llvm-project/pull/188665
More information about the cfe-commits
mailing list