Lines Matching defs:NTTP

196     if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()))
197 if (NTTP->getDepth() == Depth)
198 return NTTP;
410 const NonTypeTemplateParmDecl *NTTP,
416 assert(NTTP->getDepth() == Info.getDeducedDepth() &&
420 S.Context, Deduced[NTTP->getIndex()], NewDeduced);
422 Info.Param = const_cast<NonTypeTemplateParmDecl*>(NTTP);
423 Info.FirstArg = Deduced[NTTP->getIndex()];
428 Deduced[NTTP->getIndex()] = Result;
432 if (NTTP->isExpandedParameterPack())
435 // type stored on the NTTP itself is nonsense. Perhaps the type of an
436 // expanded NTTP should be a pack expansion type?
441 QualType ParamType = S.Context.getAdjustedParameterType(NTTP->getType());
468 const NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value,
473 S, TemplateParams, NTTP,
483 const NonTypeTemplateParmDecl *NTTP,
490 NTTP->getLocation()),
496 S, TemplateParams, NTTP, DeducedTemplateArgument(Value), Value->getType(),
506 const NonTypeTemplateParmDecl *NTTP, Expr *Value,
511 S, TemplateParams, NTTP, DeducedTemplateArgument(Value), Value->getType(),
521 const NonTypeTemplateParmDecl *NTTP, ValueDecl *D,
528 S, TemplateParams, NTTP, DeducedTemplateArgument(New), T, Info,
767 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D))
768 return TemplateParameter(NTTP);
860 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(
862 if (!NTTP->isExpandedParameterPack())
866 S.Context.getUnconstrainedType(NTTP->getType())))
1721 // We can also get inconsistencies when matching NTTP type.
1951 const NonTypeTemplateParmDecl *NTTP =
1953 if (!NTTP)
1958 assert(NTTP->getDepth() == Info.getDeducedDepth() &&
1963 S, TemplateParams, NTTP, Size, S.Context.getSizeType(),
1970 S, TemplateParams, NTTP, DAA->getSizeExpr(), Info,
2015 if (const NonTypeTemplateParmDecl *NTTP =
2018 assert(NTTP->getDepth() == Info.getDeducedDepth() &&
2031 S, TemplateParams, NTTP, Noexcept, S.Context.BoolTy,
2038 S, TemplateParams, NTTP, ArgNoexceptExpr, Info,
2192 const NonTypeTemplateParmDecl *NTTP =
2194 if (!NTTP)
2203 S, TemplateParams, NTTP, ArgSize, S.Context.UnsignedIntTy, true,
2218 const NonTypeTemplateParmDecl *NTTP =
2220 if (!NTTP)
2224 S, TemplateParams, NTTP, VA->getSizeExpr(), Info,
2247 const NonTypeTemplateParmDecl *NTTP =
2249 if (!NTTP)
2258 S, TemplateParams, NTTP, ArgSize, S.Context.IntTy, true, Info,
2272 const NonTypeTemplateParmDecl *NTTP =
2274 if (!NTTP)
2278 S, TemplateParams, NTTP, VA->getSizeExpr(), Info,
2349 const NonTypeTemplateParmDecl *NTTP =
2351 if (!NTTP)
2359 S, TemplateParams, NTTP, ArgConst, S.Context.getSizeType(),
2365 S, TemplateParams, NTTP, (ADM->*GetArgDimensionExpr)(), Info,
2396 const NonTypeTemplateParmDecl *NTTP =
2398 if (!NTTP)
2402 S, TemplateParams, NTTP, ASA->getAddrSpaceExpr(), Info,
2421 const NonTypeTemplateParmDecl *NTTP =
2423 if (!NTTP)
2427 S, TemplateParams, NTTP, ArgAddressSpace, S.Context.IntTy, true,
2441 const NonTypeTemplateParmDecl *NTTP =
2443 if (!NTTP)
2450 S, TemplateParams, NTTP, ArgSize, S.Context.IntTy, true, Info,
2573 if (const NonTypeTemplateParmDecl *NTTP =
2578 // When checking NTTP, if either the parameter or the argument is
2597 S, TemplateParams, NTTP, DeducedTemplateArgument(A), E->getType(),
2603 S, TemplateParams, NTTP, DeducedTemplateArgument(A),
2609 S, TemplateParams, NTTP, A.getNullPtrType(), Info, PartialOrdering,
2614 S, TemplateParams, NTTP, A.getAsDecl(), A.getParamTypeForDecl(),
3028 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) {
3030 NTTP, CTAI.SugaredConverted,
3033 S.SubstType(NTTP->getType(), Args, NTTP->getLocation(),
3034 NTTP->getDeclName()).isNull())
4499 if (const NonTypeTemplateParmDecl *NTTP =
4508 S, TemplateParams, NTTP, llvm::APSInt(Size), T,
6693 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(E->getDecl()))
6694 if (NTTP->getDepth() == Depth)
6695 Used[NTTP->getIndex()] = true;
6719 const NonTypeTemplateParmDecl *NTTP = getDeducedParameterFromExpr(E, Depth);
6720 if (!NTTP)
6723 if (NTTP->getDepth() == Depth)
6724 Used[NTTP->getIndex()] = true;
6729 MarkUsedTemplateParameters(Ctx, NTTP->getType(), OnlyDeduced, Depth, Used);