Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp291 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument() argument
296 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument()
302 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument()
305 Info.Param = NTTP; in DeduceNonTypeTemplateArgument()
306 Info.FirstArg = Deduced[NTTP->getIndex()]; in DeduceNonTypeTemplateArgument()
311 Deduced[NTTP->getIndex()] = Result; in DeduceNonTypeTemplateArgument()
321 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument() argument
325 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument()
332 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument()
336 Info.Param = NTTP; in DeduceNonTypeTemplateArgument()
[all …]
DSemaTemplateInstantiate.cpp614 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local
615 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
1086 NonTypeTemplateParmDecl *NTTP) { in TransformTemplateParmRefExpr() argument
1091 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr()
1092 NTTP->getPosition())) in TransformTemplateParmRefExpr()
1095 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr()
1096 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr()
1104 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr()
1106 NTTP->getDeclName()); in TransformTemplateParmRefExpr()
1111 NTTP, in TransformTemplateParmRefExpr()
[all …]
DSemaTemplate.cpp1230 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in DiagnoseUnexpandedParameterPacks() local
1231 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks()
1232 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(), in DiagnoseUnexpandedParameterPacks()
1233 NTTP->getTypeSourceInfo(), in DiagnoseUnexpandedParameterPacks()
1485 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList() local
1487 NTTP->removeDefaultArgument(); in CheckTemplateParameterList()
2365 const NonTypeTemplateParmDecl *NTTP = in isTemplateArgumentTemplateParameter() local
2367 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter()
3410 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) { in CheckTemplateArgument() local
3414 QualType NTTPType = NTTP->getType(); in CheckTemplateArgument()
[all …]
DSemaTemplateVariadic.cpp531 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local
532 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
DSemaCodeComplete.cpp2336 } else if (NonTypeTemplateParmDecl *NTTP in AddTemplateParameterChunks() local
2338 if (NTTP->getIdentifier()) in AddTemplateParameterChunks()
2339 PlaceholderStr = NTTP->getIdentifier()->getName(); in AddTemplateParameterChunks()
2340 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks()
2341 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks()
2685 else if (NonTypeTemplateParmDecl *NTTP in CreateCodeCompletionString() local
2687 HasDefaultArg = NTTP->hasDefaultArgument(); in CreateCodeCompletionString()
DSemaTemplateInstantiateDecl.cpp2061 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*I)) in collectUnexpandedParameterPacks() local
2062 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
DSemaOverload.cpp9067 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local
9069 index = NTTP->getIndex(); in DiagnoseBadDeduction()
/external/clang/lib/AST/
DDeclTemplate.cpp42 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in TemplateParameterList() local
43 if (NTTP->getType()->containsUnexpandedParameterPack()) in TemplateParameterList()
75 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) in getMinRequiredArguments() local
76 if (NTTP->isExpandedParameterPack()) { in getMinRequiredArguments()
77 NumRequiredArgs += NTTP->getNumExpansionTypes(); in getMinRequiredArguments()
87 } else if (NonTypeTemplateParmDecl *NTTP in getMinRequiredArguments() local
89 if (NTTP->hasDefaultArgument()) in getMinRequiredArguments()
108 else if (const NonTypeTemplateParmDecl *NTTP in getDepth() local
110 return NTTP->getDepth(); in getDepth()
217 } else if (NonTypeTemplateParmDecl *NTTP = in GenerateInjectedTemplateArgs() local
[all …]
DDeclPrinter.cpp863 } else if (const NonTypeTemplateParmDecl *NTTP = in PrintTemplateParameters() local
866 if (IdentifierInfo *II = NTTP->getIdentifier()) in PrintTemplateParameters()
868 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); in PrintTemplateParameters()
873 } else if (NTTP->hasDefaultArgument()) { in PrintTemplateParameters()
875 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, in PrintTemplateParameters()
DStmtProfile.cpp1391 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local
1393 ID.AddInteger(NTTP->getDepth()); in VisitDecl()
1394 ID.AddInteger(NTTP->getIndex()); in VisitDecl()
1395 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl()
1396 VisitType(NTTP->getType()); in VisitDecl()
DExpr.cpp1163 while (SubstNonTypeTemplateParmExpr *NTTP in getCalleeDecl() local
1165 CEE = NTTP->getReplacement()->IgnoreParenCasts(); in getCalleeDecl()
2452 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenCasts() local
2454 E = NTTP->getReplacement(); in IgnoreParenCasts()
2473 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreCasts() local
2475 E = NTTP->getReplacement(); in IgnoreCasts()
2499 } else if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenLValueCasts() local
2501 E = NTTP->getReplacement(); in IgnoreParenLValueCasts()
2539 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenImpCasts() local
2541 E = NTTP->getReplacement(); in IgnoreParenImpCasts()
[all …]
DASTContext.cpp564 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in Profile() local
566 ID.AddBoolean(NTTP->isParameterPack()); in Profile()
567 ID.AddPointer(NTTP->getType().getCanonicalType().getAsOpaquePtr()); in Profile()
568 if (NTTP->isExpandedParameterPack()) { in Profile()
570 ID.AddInteger(NTTP->getNumExpansionTypes()); in Profile()
571 for (unsigned I = 0, N = NTTP->getNumExpansionTypes(); I != N; ++I) { in Profile()
572 QualType T = NTTP->getExpansionType(I); in Profile()
613 else if (NonTypeTemplateParmDecl *NTTP in getCanonicalTemplateTemplateParmDecl() local
615 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl()
618 if (NTTP->isExpandedParameterPack()) { in getCanonicalTemplateTemplateParmDecl()
[all …]
DDecl.cpp249 if (const NonTypeTemplateParmDecl *NTTP = in getLVForTemplateParameterList() local
252 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList()
253 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList()
254 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList()
260 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList()
261 QualType type = NTTP->getExpansionType(i); in getLVForTemplateParameterList()
DDeclBase.cpp146 if (const NonTypeTemplateParmDecl *NTTP in isTemplateParameterPack() local
148 return NTTP->isParameterPack(); in isTemplateParameterPack()
DItaniumMangle.cpp3328 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local
3330 mangleTemplateParameter(NTTP->getIndex()); in mangleExpression()
/external/clang/lib/Index/
DUSRGeneration.cpp736 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local
737 if (NTTP->isParameterPack()) in VisitTemplateParameterList()
740 VisitType(NTTP->getType()); in VisitTemplateParameterList()
/external/clang/tools/libclang/
DCIndex.cpp3442 if (const SubstNonTypeTemplateParmPackExpr *NTTP in getDeclFromExpr() local
3444 return NTTP->getParameterPack(); in getDeclFromExpr()
3884 else if (NonTypeTemplateParmDecl *NTTP in clang_getCursorDisplayName() local
3886 OS << NTTP->getType().getAsString(Policy); in clang_getCursorDisplayName()