Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DDeclTemplate.cpp43 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in TemplateParameterList() local
44 if (NTTP->getType()->containsUnexpandedParameterPack()) in TemplateParameterList()
70 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in getMinRequiredArguments() local
71 if (NTTP->isExpandedParameterPack()) { in getMinRequiredArguments()
72 NumRequiredArgs += NTTP->getNumExpansionTypes(); in getMinRequiredArguments()
82 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getMinRequiredArguments() local
83 if (NTTP->hasDefaultArgument()) in getMinRequiredArguments()
102 else if (const NonTypeTemplateParmDecl *NTTP in getDepth() local
104 return NTTP->getDepth(); in getDepth()
213 } else if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in GenerateInjectedTemplateArgs() local
[all …]
DDeclPrinter.cpp928 } else if (const NonTypeTemplateParmDecl *NTTP = in PrintTemplateParameters() local
931 if (IdentifierInfo *II = NTTP->getIdentifier()) in PrintTemplateParameters()
933 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); in PrintTemplateParameters()
938 } else if (NTTP->hasDefaultArgument()) { in PrintTemplateParameters()
940 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, in PrintTemplateParameters()
DExpr.cpp1188 while (SubstNonTypeTemplateParmExpr *NTTP in getCalleeDecl() local
1190 CEE = NTTP->getReplacement()->IgnoreParenCasts(); in getCalleeDecl()
2339 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenCasts() local
2341 E = NTTP->getReplacement(); in IgnoreParenCasts()
2360 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreCasts() local
2362 E = NTTP->getReplacement(); in IgnoreCasts()
2386 } else if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenLValueCasts() local
2388 E = NTTP->getReplacement(); in IgnoreParenLValueCasts()
2426 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenImpCasts() local
2428 E = NTTP->getReplacement(); in IgnoreParenImpCasts()
[all …]
DStmtProfile.cpp1639 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local
1641 ID.AddInteger(NTTP->getDepth()); in VisitDecl()
1642 ID.AddInteger(NTTP->getIndex()); in VisitDecl()
1643 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl()
1644 VisitType(NTTP->getType()); in VisitDecl()
DASTContext.cpp566 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in Profile() local
568 ID.AddBoolean(NTTP->isParameterPack()); in Profile()
569 ID.AddPointer(NTTP->getType().getCanonicalType().getAsOpaquePtr()); in Profile()
570 if (NTTP->isExpandedParameterPack()) { in Profile()
572 ID.AddInteger(NTTP->getNumExpansionTypes()); in Profile()
573 for (unsigned I = 0, N = NTTP->getNumExpansionTypes(); I != N; ++I) { in Profile()
574 QualType T = NTTP->getExpansionType(I); in Profile()
615 else if (NonTypeTemplateParmDecl *NTTP in getCanonicalTemplateTemplateParmDecl() local
617 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl()
620 if (NTTP->isExpandedParameterPack()) { in getCanonicalTemplateTemplateParmDecl()
[all …]
DDecl.cpp256 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getLVForTemplateParameterList() local
258 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList()
259 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList()
260 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList()
266 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList()
267 QualType type = NTTP->getExpansionType(i); in getLVForTemplateParameterList()
DDeclBase.cpp172 if (const NonTypeTemplateParmDecl *NTTP in isTemplateParameterPack() local
174 return NTTP->isParameterPack(); in isTemplateParameterPack()
DItaniumMangle.cpp3885 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local
3887 mangleTemplateParameter(NTTP->getIndex()); in mangleExpression()
/external/clang/lib/Sema/
DSemaTemplateDeduction.cpp290 Sema &S, NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value, in DeduceNonTypeTemplateArgument() argument
293 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument()
299 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument()
302 Info.Param = NTTP; in DeduceNonTypeTemplateArgument()
303 Info.FirstArg = Deduced[NTTP->getIndex()]; in DeduceNonTypeTemplateArgument()
308 Deduced[NTTP->getIndex()] = Result; in DeduceNonTypeTemplateArgument()
318 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument() argument
322 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument()
329 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument()
333 Info.Param = NTTP; in DeduceNonTypeTemplateArgument()
[all …]
DSemaTemplateInstantiate.cpp611 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local
612 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
1072 NonTypeTemplateParmDecl *NTTP) { in TransformTemplateParmRefExpr() argument
1077 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr()
1078 NTTP->getPosition())) in TransformTemplateParmRefExpr()
1081 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr()
1082 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr()
1090 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr()
1092 NTTP->getDeclName()); in TransformTemplateParmRefExpr()
1097 NTTP, in TransformTemplateParmRefExpr()
[all …]
DSemaTemplate.cpp1269 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in DiagnoseUnexpandedParameterPacks() local
1270 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks()
1271 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(), in DiagnoseUnexpandedParameterPacks()
1272 NTTP->getTypeSourceInfo(), in DiagnoseUnexpandedParameterPacks()
1514 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList() local
1516 NTTP->removeDefaultArgument(); in CheckTemplateParameterList()
2470 const NonTypeTemplateParmDecl *NTTP = in isTemplateArgumentTemplateParameter() local
2472 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter()
3499 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) { in CheckTemplateArgument() local
3503 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.cpp2398 } else if (NonTypeTemplateParmDecl *NTTP in AddTemplateParameterChunks() local
2400 if (NTTP->getIdentifier()) in AddTemplateParameterChunks()
2401 PlaceholderStr = NTTP->getIdentifier()->getName(); in AddTemplateParameterChunks()
2402 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks()
2403 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks()
2745 else if (NonTypeTemplateParmDecl *NTTP in CreateCodeCompletionString() local
2747 HasDefaultArg = NTTP->hasDefaultArgument(); in CreateCodeCompletionString()
DSemaTemplateInstantiateDecl.cpp2197 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in collectUnexpandedParameterPacks() local
2198 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
DSemaOverload.cpp9459 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local
9461 index = NTTP->getIndex(); in DiagnoseBadDeduction()
/external/clang/lib/Index/
DUSRGeneration.cpp772 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local
773 if (NTTP->isParameterPack()) in VisitTemplateParameterList()
776 VisitType(NTTP->getType()); in VisitTemplateParameterList()
/external/clang/tools/libclang/
DCIndex.cpp4002 if (const SubstNonTypeTemplateParmPackExpr *NTTP in getDeclFromExpr() local
4004 return NTTP->getParameterPack(); in getDeclFromExpr()
4454 else if (NonTypeTemplateParmDecl *NTTP in clang_getCursorDisplayName() local
4456 OS << NTTP->getType().getAsString(Policy); in clang_getCursorDisplayName()