Lines Matching defs:NTTP

1682     // Necessary because the type of the NTTP might be what refers to the parent
2281 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) {
2282 if (!NTTP->isParameterPack() &&
2283 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(),
2284 NTTP->getTypeSourceInfo(),
2557 else if (NonTypeTemplateParmDecl *NTTP
2559 NTTP->removeDefaultArgument();
3981 const NonTypeTemplateParmDecl *NTTP =
3983 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index;
5217 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) {
5221 QualType NTTPType = NTTP->getType();
5222 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack())
5223 NTTPType = NTTP->getExpansionType(ArgumentPackIndex);
5229 InstantiatingTemplate Inst(*this, TemplateLoc, Template, NTTP,
5241 NTTPType = SubstType(PET->getPattern(), MLTAL, NTTP->getLocation(),
5242 NTTP->getDeclName());
5244 NTTPType = SubstType(NTTPType, MLTAL, NTTP->getLocation(),
5245 NTTP->getDeclName());
5252 NTTP->getLocation());
5261 CheckTemplateArgument(NTTP, NTTPType, E, SugaredResult,
5289 // As for the converted NTTP kinds, they still might need another
5341 E = CheckTemplateArgument(NTTP, NTTPType, E.get(), SugaredResult,
5742 if (NonTypeTemplateParmDecl *NTTP =
5744 return diagnoseMissingArgument(*this, TemplateLoc, Template, NTTP,
7540 if (NonTypeTemplateParmDecl *NTTP =
7542 QualType TemplateParamType = NTTP->getType();
7547 RefExpr.get()->getExprLoc(), RefExpr.get(), VD, NTTP->getIndex(),
8361 } else if (NonTypeTemplateParmDecl *NTTP
8363 if (NTTP->hasDefaultArgument()) {
8364 Diag(NTTP->getDefaultArgumentLoc(),
8366 << NTTP->getDefaultArgument().getSourceRange();
8367 NTTP->removeDefaultArgument();
11087 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param);
11089 = RebuildTypeInCurrentInstantiation(NTTP->getTypeSourceInfo(),
11090 NTTP->getLocation(),
11091 NTTP->getDeclName());
11104 if (NewTSI != NTTP->getTypeSourceInfo()) {
11105 NTTP->setTypeSourceInfo(NewTSI);
11106 NTTP->setType(NewTSI->getType());