Lines Matching defs:NTTP
1673 // Necessary because the type of the NTTP might be what refers to the parent
2255 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) {
2256 if (!NTTP->isParameterPack() &&
2257 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(),
2258 NTTP->getTypeSourceInfo(),
2531 else if (NonTypeTemplateParmDecl *NTTP
2533 NTTP->removeDefaultArgument();
3790 const NonTypeTemplateParmDecl *NTTP =
3792 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index;
5000 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) {
5004 QualType NTTPType = NTTP->getType();
5005 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack())
5006 NTTPType = NTTP->getExpansionType(ArgumentPackIndex);
5012 InstantiatingTemplate Inst(*this, TemplateLoc, Template, NTTP,
5024 NTTPType = SubstType(PET->getPattern(), MLTAL, NTTP->getLocation(),
5025 NTTP->getDeclName());
5027 NTTPType = SubstType(NTTPType, MLTAL, NTTP->getLocation(),
5028 NTTP->getDeclName());
5035 NTTP->getLocation());
5048 ExprResult Res = CheckTemplateArgument(NTTP, NTTPType, E, SugaredResult,
5113 E = CheckTemplateArgument(NTTP, NTTPType, E.get(), SugaredResult,
5476 } else if (NonTypeTemplateParmDecl *NTTP
5478 if (!hasReachableDefaultArgument(NTTP))
5479 return diagnoseMissingArgument(*this, TemplateLoc, Template, NTTP,
5483 NTTP, SugaredConverted,
7298 if (NonTypeTemplateParmDecl *NTTP =
7300 QualType TemplateParamType = NTTP->getType();
7305 RefExpr.get()->getExprLoc(), RefExpr.get(), VD, NTTP->getIndex(),
8137 } else if (NonTypeTemplateParmDecl *NTTP
8139 if (NTTP->hasDefaultArgument()) {
8140 Diag(NTTP->getDefaultArgumentLoc(),
8142 << NTTP->getDefaultArgument().getSourceRange();
8143 NTTP->removeDefaultArgument();
10740 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param);
10742 = RebuildTypeInCurrentInstantiation(NTTP->getTypeSourceInfo(),
10743 NTTP->getLocation(),
10744 NTTP->getDeclName());
10757 if (NewTSI != NTTP->getTypeSourceInfo()) {
10758 NTTP->setTypeSourceInfo(NewTSI);
10759 NTTP->setType(NewTSI->getType());