[llvm-branch-commits] [clang] [clang-tools-extra] [clang] support pack expansions for trailing requires clauses (PR #133190)
Matheus Izvekov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 1 16:10:52 PDT 2025
================
@@ -78,6 +78,22 @@ class UnresolvedSetImpl;
class VarTemplateDecl;
enum class ImplicitParamKind;
+// Holds a constraint expression along with a pack expansion index, if
+// expanded.
+struct AssociatedConstraint {
+ const Expr *ConstraintExpr = nullptr;
+ int ArgumentPackSubstitutionIndex = -1;
----------------
mizvekov wrote:
I'd prefer consistency here, as right now it's easy to grep for `ArgumentPackSubstitutionIndex`, expect it to be int, and expect -1 to mean no expansion.
https://github.com/llvm/llvm-project/pull/133190
More information about the llvm-branch-commits
mailing list