[clang] [clang-tools-extra] [clang] support pack expansions for trailing requires clauses (PR #133190)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 2 05:14:52 PDT 2025


================
@@ -5464,7 +5464,7 @@ FunctionDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
 FunctionDecl *FunctionDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) {
   return new (C, ID) FunctionDecl(
       Function, C, nullptr, SourceLocation(), DeclarationNameInfo(), QualType(),
-      nullptr, SC_None, false, false, ConstexprSpecKind::Unspecified, nullptr);
+      nullptr, SC_None, false, false, ConstexprSpecKind::Unspecified, {});
----------------
cor3ntin wrote:

```suggestion
      nullptr, SC_None, false, false, ConstexprSpecKind::Unspecified, /*TrailingRequiresClause=*/{});
```

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


More information about the cfe-commits mailing list