/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateDeduction.cpp | 191 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl())) 192 if (NTTP->getDepth() == Info.getDeducedDepth()) 193 return NTTP; 377 NonTypeTemplateParmDecl *NTTP, const DeducedTemplateArgument &NewDeduced, 380 assert(NTTP->getDepth() == Info.getDeducedDepth() && 384 S.Context, Deduced[NTTP->getIndex()], NewDeduced); 386 Info.Param = NTTP; 387 Info.FirstArg = Deduced[NTTP->getIndex()]; 392 Deduced[NTTP->getIndex()] = Result; 396 if (NTTP 375 DeduceNonTypeTemplateArgument( Sema &S, TemplateParameterList *TemplateParams, NonTypeTemplateParmDecl *NTTP, const DeducedTemplateArgument &NewDeduced, QualType ValueType, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument 422 DeduceNonTypeTemplateArgument( Sema &S, TemplateParameterList *TemplateParams, NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value, QualType ValueType, bool DeducedFromArrayBound, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument 436 DeduceNullPtrTemplateArgument( Sema &S, TemplateParameterList *TemplateParams, NonTypeTemplateParmDecl *NTTP, QualType NullPtrType, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument 455 DeduceNonTypeTemplateArgument( Sema &S, TemplateParameterList *TemplateParams, NonTypeTemplateParmDecl *NTTP, Expr *Value, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument 468 DeduceNonTypeTemplateArgument( Sema &S, TemplateParameterList *TemplateParams, NonTypeTemplateParmDecl *NTTP, ValueDecl *D, QualType T, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument [all...] |
H A D | SemaTemplate.cpp | 1220 bool Sema::AttachTypeConstraint(AutoTypeLoc TL, NonTypeTemplateParmDecl *NTTP, argument 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 3936 const NonTypeTemplateParmDecl *NTTP = local 10623 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param); local [all...] |
H A D | SemaTemplateInstantiate.cpp | 1397 NonTypeTemplateParmDecl *NTTP) { 1402 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), 1403 NTTP->getPosition())) 1406 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); 1424 if (NTTP->isParameterPack()) { 1432 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, 1434 NTTP->getDeclName()); 1440 TargetType->isReferenceType() ? VK_LValue : VK_RValue, NTTP, 1447 return transformNonTypeTemplateParmRef(NTTP, 1396 TransformTemplateParmRefExpr(DeclRefExpr *E, NonTypeTemplateParmDecl *NTTP) argument [all...] |
H A D | SemaCodeComplete.cpp | 3002 } else if (NonTypeTemplateParmDecl *NTTP = 3004 if (NTTP->getIdentifier()) 3005 PlaceholderStr = NTTP->getIdentifier()->getName(); 3006 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); 3007 HasDefaultArg = NTTP->hasDefaultArgument(); 3412 else if (NonTypeTemplateParmDecl *NTTP = 3414 HasDefaultArg = NTTP->hasDefaultArgument();
|
H A D | SemaTemplateInstantiateDecl.cpp | 2771 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) 2772 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(),
|
H A D | SemaOverload.cpp | 10579 else if (NonTypeTemplateParmDecl *NTTP 10581 index = NTTP->getIndex();
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclTemplate.cpp | 62 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { 63 if (!IsPack && NTTP->getType()->containsUnexpandedParameterPack()) 65 if (NTTP->hasPlaceholderTypeConstraint()) 105 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { 106 if (NTTP->isExpandedParameterPack()) { 107 NumRequiredArgs += NTTP->getNumExpansionTypes(); 129 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { 130 if (NTTP->hasDefaultArgument()) 148 else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(FirstParm)) 149 return NTTP 734 auto *NTTP = local [all...] |
H A D | DeclPrinter.cpp | 1074 } else if (auto NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { 1076 if (IdentifierInfo *II = NTTP->getIdentifier()) 1078 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); 1080 if (NTTP->hasDefaultArgument()) { 1082 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy,
|
H A D | StmtProfile.cpp | 92 if (const NonTypeTemplateParmDecl *NTTP = 94 ID.AddInteger(NTTP->getDepth()); 95 ID.AddInteger(NTTP->getIndex()); 96 ID.AddBoolean(NTTP->isParameterPack()); 97 VisitType(NTTP->getType());
|
H A D | ASTContext.cpp | 693 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { 695 ID.AddBoolean(NTTP->isParameterPack()); 696 ID.AddPointer(NTTP->getType().getCanonicalType().getAsOpaquePtr()); 697 if (NTTP->isExpandedParameterPack()) { 699 ID.AddInteger(NTTP->getNumExpansionTypes()); 700 for (unsigned I = 0, N = NTTP->getNumExpansionTypes(); I != N; ++I) { 701 QualType T = NTTP->getExpansionType(I); 816 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { 817 QualType T = getCanonicalType(NTTP->getType()); 820 if (NTTP [all...] |
H A D | Expr.cpp | 1446 while (SubstNonTypeTemplateParmExpr *NTTP 1448 CEE = NTTP->getReplacement()->IgnoreParenCasts(); 2845 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) 2846 return NTTP->getReplacement(); 2861 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) 2862 return NTTP->getReplacement(); 2950 else if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) 2951 return NTTP->getReplacement();
|
H A D | Decl.cpp | 262 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { 264 if (!NTTP->isExpandedParameterPack()) { 265 if (!NTTP->getType()->isDependentType()) { 266 LV.merge(getLVForType(*NTTP->getType(), computation)); 272 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { 273 QualType type = NTTP->getExpansionType(i);
|
H A D | DeclBase.cpp | 204 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(this)) 205 return NTTP->isParameterPack();
|
H A D | ItaniumMangle.cpp | 4341 else if (const NonTypeTemplateParmDecl *NTTP 4343 mangleTemplateParameter(NTTP->getDepth(), NTTP->getIndex());
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaInternal.h | 69 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) 70 return std::make_pair(NTTP->getDepth(), NTTP->getIndex());
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexDecl.cpp | 685 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(TP)) { 686 if (NTTP->hasDefaultArgument()) 687 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent);
|
H A D | USRGeneration.cpp | 912 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { 913 if (NTTP->isParameterPack()) 916 VisitType(NTTP->getType());
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 4661 } else if (auto NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) { 4662 return EmitCallee(NTTP->getReplacement());
|