/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 291 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 …]
|
D | SemaTemplateInstantiate.cpp | 614 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 …]
|
D | SemaTemplate.cpp | 1230 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 …]
|
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 | 2336 } 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()
|
D | SemaTemplateInstantiateDecl.cpp | 2061 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*I)) in collectUnexpandedParameterPacks() local 2062 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
|
D | SemaOverload.cpp | 9067 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local 9069 index = NTTP->getIndex(); in DiagnoseBadDeduction()
|
/external/clang/lib/AST/ |
D | DeclTemplate.cpp | 42 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 …]
|
D | DeclPrinter.cpp | 863 } 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()
|
D | StmtProfile.cpp | 1391 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()
|
D | Expr.cpp | 1163 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 …]
|
D | ASTContext.cpp | 564 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 …]
|
D | Decl.cpp | 249 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()
|
D | DeclBase.cpp | 146 if (const NonTypeTemplateParmDecl *NTTP in isTemplateParameterPack() local 148 return NTTP->isParameterPack(); in isTemplateParameterPack()
|
D | ItaniumMangle.cpp | 3328 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local 3330 mangleTemplateParameter(NTTP->getIndex()); in mangleExpression()
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 736 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/ |
D | CIndex.cpp | 3442 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()
|