• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:NTTP

1220 bool Sema::AttachTypeConstraint(AutoTypeLoc TL, NonTypeTemplateParmDecl *NTTP,
1222 if (NTTP->getType() != TL.getType() ||
1224 Diag(NTTP->getTypeSourceInfo()->getTypeLoc().getBeginLoc(),
1226 << NTTP->getTypeSourceInfo()->getTypeLoc().getSourceRange();
1231 DeclRefExpr *Ref = BuildDeclRefExpr(NTTP, NTTP->getType(), VK_RValue,
1232 NTTP->getLocation());
1239 BuildDecltypeType(Ref, NTTP->getLocation()), NTTP->getLocation(),
1248 NTTP->setPlaceholderTypeConstraint(ImmediatelyDeclaredConstraint.get());
2433 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) {
2434 if (!NTTP->isParameterPack() &&
2435 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(),
2436 NTTP->getTypeSourceInfo(),
2688 else if (NonTypeTemplateParmDecl *NTTP
2690 NTTP->removeDefaultArgument();
3936 const NonTypeTemplateParmDecl *NTTP =
3938 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index;
5164 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) {
5168 QualType NTTPType = NTTP->getType();
5169 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack())
5170 NTTPType = NTTP->getExpansionType(ArgumentPackIndex);
5177 NTTP, Converted,
5191 NTTP->getLocation(),
5192 NTTP->getDeclName());
5196 NTTP->getLocation(),
5197 NTTP->getDeclName());
5204 NTTP->getLocation());
5217 CheckTemplateArgument(NTTP, NTTPType, Arg.getArgument().getAsExpr(),
5278 E = CheckTemplateArgument(NTTP, NTTPType, E.get(), Result);
5415 if (NonTypeTemplateParmDecl *NTTP
5417 if (NTTP->isExpandedParameterPack())
5418 return NTTP->getNumExpansionTypes();
5643 } else if (NonTypeTemplateParmDecl *NTTP
5645 if (!hasVisibleDefaultArgument(NTTP))
5646 return diagnoseMissingArgument(*this, TemplateLoc, Template, NTTP,
5652 NTTP,
8062 } else if (NonTypeTemplateParmDecl *NTTP
8064 if (Expr *DefArg = NTTP->getDefaultArgument()) {
8065 Diag(NTTP->getDefaultArgumentLoc(),
8068 NTTP->removeDefaultArgument();
10623 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param);
10625 = RebuildTypeInCurrentInstantiation(NTTP->getTypeSourceInfo(),
10626 NTTP->getLocation(),
10627 NTTP->getDeclName());
10640 if (NewTSI != NTTP->getTypeSourceInfo()) {
10641 NTTP->setTypeSourceInfo(NewTSI);
10642 NTTP->setType(NewTSI->getType());