Lines Matching defs:Pack
386 for (auto &Pack : Unexpanded) {
388 if (auto *TTPT = Pack.first.dyn_cast<const TemplateTypeParmType *>()) {
392 return declaresSameEntity(cast<NamedDecl *>(Pack.first), LocalPack);
395 ParamPackReferences.push_back(Pack);
845 ArrayRef<TemplateArgument> Pack =
847 NewPackSize = Pack.size();
849 llvm::count_if(Pack, [](const TemplateArgument &TA) {
905 // Consider an instantiation attempt like 'S<int>::Alias<Pack...>', where
906 // Pack comes from another template parameter. 'S<int>' is first
910 // '<Pack...>'.
912 // Since we have no idea of the size of '<Pack...>' until its expansion,
1333 case TemplateArgument::Pack:
1349 TemplateArgument Pack;
1353 Pack = Subst->getArgumentPack();
1361 Pack = Subst->getArgumentPack();
1374 Pack = Subst->getArgumentPack();
1384 case TemplateArgument::Pack:
1390 for (TemplateArgument Elem : Pack.pack_elements()) {
1407 return Pack.pack_size();
1458 Expr *Pack = LHS ? LHS : RHS;
1459 assert(Pack && "fold expression with neither LHS nor RHS");
1460 if (!Pack->containsUnexpandedParameterPack()) {
1463 << Pack->getSourceRange();