================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits