/external/clang/lib/AST/ |
D | DeclTemplate.cpp | 43 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 …]
|
D | DeclPrinter.cpp | 928 } 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()
|
D | Expr.cpp | 1188 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 …]
|
D | StmtProfile.cpp | 1639 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()
|
D | ASTContext.cpp | 566 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 …]
|
D | Decl.cpp | 256 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()
|
D | DeclBase.cpp | 172 if (const NonTypeTemplateParmDecl *NTTP in isTemplateParameterPack() local 174 return NTTP->isParameterPack(); in isTemplateParameterPack()
|
D | ItaniumMangle.cpp | 3885 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local 3887 mangleTemplateParameter(NTTP->getIndex()); in mangleExpression()
|
/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 290 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 …]
|
D | SemaTemplateInstantiate.cpp | 611 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 …]
|
D | SemaTemplate.cpp | 1269 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 …]
|
D | SemaTemplateVariadic.cpp | 531 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local 532 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
|
D | SemaCodeComplete.cpp | 2398 } 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()
|
D | SemaTemplateInstantiateDecl.cpp | 2197 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in collectUnexpandedParameterPacks() local 2198 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
|
D | SemaOverload.cpp | 9459 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local 9461 index = NTTP->getIndex(); in DiagnoseBadDeduction()
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 772 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/ |
D | CIndex.cpp | 4002 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()
|