/external/clang/lib/Sema/ |
H A D | SemaTemplateDeduction.cpp | 318 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 D | SemaTemplateInstantiate.cpp | 630 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 D | SemaTemplate.cpp | 1212 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 D | SemaTemplateVariadic.cpp | 522 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) 523 return std::make_pair(NTTP->getDepth(), NTTP->getIndex());
|
H A D | SemaCodeComplete.cpp | 2333 } 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 D | SemaTemplateInstantiateDecl.cpp | 1973 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*I)) 1974 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(),
|
H A D | SemaOverload.cpp | 8908 else if (NonTypeTemplateParmDecl *NTTP 8910 index = NTTP->getIndex();
|
/external/clang/lib/AST/ |
H A D | DeclTemplate.cpp | 42 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 D | DeclPrinter.cpp | 844 } 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 D | StmtProfile.cpp | 1242 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 D | Expr.cpp | 1152 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 D | ASTContext.cpp | 564 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 D | DeclBase.cpp | 146 if (const NonTypeTemplateParmDecl *NTTP 148 return NTTP->isParameterPack();
|
H A D | Decl.cpp | 243 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 D | ItaniumMangle.cpp | 3168 else if (const NonTypeTemplateParmDecl *NTTP 3170 mangleTemplateParameter(NTTP->getIndex());
|
/external/clang/lib/Index/ |
H A D | USRGeneration.cpp | 694 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { 695 if (NTTP->isParameterPack()) 698 VisitType(NTTP->getType());
|
/external/clang/tools/libclang/ |
H A D | CIndex.cpp | 3255 if (const SubstNonTypeTemplateParmPackExpr *NTTP 3257 return NTTP->getParameterPack(); 3654 else if (NonTypeTemplateParmDecl *NTTP 3656 OS << NTTP->getType().getAsString(Policy);
|