Searched refs:NTTP (Results 1 - 17 of 17) sorted by relevance

/external/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp318 NonTypeTemplateParmDecl *NTTP,
323 assert(NTTP->getDepth() == 0 &&
329 Deduced[NTTP->getIndex()],
332 Info.Param = NTTP;
333 Info.FirstArg = Deduced[NTTP->getIndex()];
338 Deduced[NTTP->getIndex()] = Result;
348 NonTypeTemplateParmDecl *NTTP,
352 assert(NTTP->getDepth() == 0 &&
359 Deduced[NTTP->getIndex()],
363 Info.Param = NTTP;
317 DeduceNonTypeTemplateArgument(Sema &S, NonTypeTemplateParmDecl *NTTP, llvm::APSInt Value, QualType ValueType, bool DeducedFromArrayBound, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument
347 DeduceNonTypeTemplateArgument(Sema &S, NonTypeTemplateParmDecl *NTTP, Expr *Value, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument
378 DeduceNonTypeTemplateArgument(Sema &S, NonTypeTemplateParmDecl *NTTP, ValueDecl *D, TemplateDeductionInfo &Info, SmallVectorImpl<DeducedTemplateArgument> &Deduced) argument
4720 const NonTypeTemplateParmDecl *NTTP local
[all...]
H A DSemaTemplateInstantiate.cpp630 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND))
631 return std::make_pair(NTTP->getDepth(), NTTP->getIndex());
1094 NonTypeTemplateParmDecl *NTTP) {
1099 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(),
1100 NTTP->getPosition()))
1103 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition());
1104 if (NTTP->isParameterPack()) {
1112 QualType TargetType = SemaRef.SubstType(NTTP
1093 TransformTemplateParmRefExpr(DeclRefExpr *E, NonTypeTemplateParmDecl *NTTP) argument
[all...]
H A DSemaTemplate.cpp1212 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) {
1213 if (!NTTP->isParameterPack() &&
1214 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(),
1215 NTTP->getTypeSourceInfo(),
1467 else if (NonTypeTemplateParmDecl *NTTP
1469 NTTP->removeDefaultArgument();
2347 const NonTypeTemplateParmDecl *NTTP = local
2349 return NTTP && NTTP->getDepth() == Depth && NTTP
8096 NonTypeTemplateParmDecl *NTTP = cast<NonTypeTemplateParmDecl>(Param); local
[all...]
H A DSemaTemplateVariadic.cpp522 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND))
523 return std::make_pair(NTTP->getDepth(), NTTP->getIndex());
H A DSemaCodeComplete.cpp2333 } else if (NonTypeTemplateParmDecl *NTTP
2335 if (NTTP->getIdentifier())
2336 PlaceholderStr = NTTP->getIdentifier()->getName();
2337 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy);
2338 HasDefaultArg = NTTP->hasDefaultArgument();
2681 else if (NonTypeTemplateParmDecl *NTTP
2683 HasDefaultArg = NTTP->hasDefaultArgument();
H A DSemaTemplateInstantiateDecl.cpp1973 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*I))
1974 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(),
H A DSemaOverload.cpp8908 else if (NonTypeTemplateParmDecl *NTTP
8910 index = NTTP->getIndex();
/external/clang/lib/AST/
H A DDeclTemplate.cpp42 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P))
43 if (NTTP->getType()->containsUnexpandedParameterPack())
75 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P))
76 if (NTTP->isExpandedParameterPack()) {
77 NumRequiredArgs += NTTP->getNumExpansionTypes();
87 } else if (NonTypeTemplateParmDecl *NTTP
89 if (NTTP->hasDefaultArgument())
108 else if (const NonTypeTemplateParmDecl *NTTP
110 return NTTP->getDepth();
191 } else if (NonTypeTemplateParmDecl *NTTP
[all...]
H A DDeclPrinter.cpp844 } else if (const NonTypeTemplateParmDecl *NTTP =
846 Out << NTTP->getType().getAsString(Policy);
848 if (NTTP->isParameterPack() && !isa<PackExpansionType>(NTTP->getType()))
851 if (IdentifierInfo *Name = NTTP->getIdentifier()) {
859 } else if (NTTP->hasDefaultArgument()) {
861 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy,
H A DStmtProfile.cpp1242 if (const NonTypeTemplateParmDecl *NTTP =
1244 ID.AddInteger(NTTP->getDepth());
1245 ID.AddInteger(NTTP->getIndex());
1246 ID.AddBoolean(NTTP->isParameterPack());
1247 VisitType(NTTP->getType());
H A DExpr.cpp1152 while (SubstNonTypeTemplateParmExpr *NTTP
1154 CEE = NTTP->getReplacement()->IgnoreParenCasts();
2397 if (SubstNonTypeTemplateParmExpr *NTTP
2399 E = NTTP->getReplacement();
2418 if (SubstNonTypeTemplateParmExpr *NTTP
2420 E = NTTP->getReplacement();
2444 } else if (SubstNonTypeTemplateParmExpr *NTTP
2446 E = NTTP->getReplacement();
2484 if (SubstNonTypeTemplateParmExpr *NTTP
2486 E = NTTP
[all...]
H A DASTContext.cpp564 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) {
566 ID.AddBoolean(NTTP->isParameterPack());
567 ID.AddPointer(NTTP->getType().getCanonicalType().getAsOpaquePtr());
568 if (NTTP->isExpandedParameterPack()) {
570 ID.AddInteger(NTTP->getNumExpansionTypes());
571 for (unsigned I = 0, N = NTTP->getNumExpansionTypes(); I != N; ++I) {
572 QualType T = NTTP->getExpansionType(I);
613 else if (NonTypeTemplateParmDecl *NTTP
615 QualType T = getCanonicalType(NTTP->getType());
618 if (NTTP
[all...]
H A DDeclBase.cpp146 if (const NonTypeTemplateParmDecl *NTTP
148 return NTTP->isParameterPack();
H A DDecl.cpp243 if (const NonTypeTemplateParmDecl *NTTP =
246 if (!NTTP->isExpandedParameterPack()) {
247 if (!NTTP->getType()->isDependentType()) {
248 LV.merge(getLVForType(*NTTP->getType(), computation));
254 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) {
255 QualType type = NTTP->getExpansionType(i);
H A DItaniumMangle.cpp3168 else if (const NonTypeTemplateParmDecl *NTTP
3170 mangleTemplateParameter(NTTP->getIndex());
/external/clang/lib/Index/
H A DUSRGeneration.cpp694 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) {
695 if (NTTP->isParameterPack())
698 VisitType(NTTP->getType());
/external/clang/tools/libclang/
H A DCIndex.cpp3255 if (const SubstNonTypeTemplateParmPackExpr *NTTP
3257 return NTTP->getParameterPack();
3654 else if (NonTypeTemplateParmDecl *NTTP
3656 OS << NTTP->getType().getAsString(Policy);

Completed in 639 milliseconds