/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() 191 } else if (NonTypeTemplateParmDecl *NTTP = in GenerateInjectedTemplateArgs() local [all …]
|
D | DeclPrinter.cpp | 844 } else if (const NonTypeTemplateParmDecl *NTTP = in PrintTemplateParameters() local 846 Out << NTTP->getType().getAsString(Policy); in PrintTemplateParameters() 848 if (NTTP->isParameterPack() && !isa<PackExpansionType>(NTTP->getType())) in PrintTemplateParameters() 851 if (IdentifierInfo *Name = NTTP->getIdentifier()) { in PrintTemplateParameters() 859 } else if (NTTP->hasDefaultArgument()) { in PrintTemplateParameters() 861 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, in PrintTemplateParameters()
|
D | StmtProfile.cpp | 1242 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local 1244 ID.AddInteger(NTTP->getDepth()); in VisitDecl() 1245 ID.AddInteger(NTTP->getIndex()); in VisitDecl() 1246 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl() 1247 VisitType(NTTP->getType()); in VisitDecl()
|
D | Expr.cpp | 1152 while (SubstNonTypeTemplateParmExpr *NTTP in getCalleeDecl() local 1154 CEE = NTTP->getReplacement()->IgnoreParenCasts(); in getCalleeDecl() 2397 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenCasts() local 2399 E = NTTP->getReplacement(); in IgnoreParenCasts() 2418 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreCasts() local 2420 E = NTTP->getReplacement(); in IgnoreCasts() 2444 } else if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenLValueCasts() local 2446 E = NTTP->getReplacement(); in IgnoreParenLValueCasts() 2484 if (SubstNonTypeTemplateParmExpr *NTTP in IgnoreParenImpCasts() local 2486 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 | 243 if (const NonTypeTemplateParmDecl *NTTP = in getLVForTemplateParameterList() local 246 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList() 247 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList() 248 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList() 254 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList() 255 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 | 3168 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local 3170 mangleTemplateParameter(NTTP->getIndex()); in mangleExpression()
|
/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 318 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument() argument 323 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument() 329 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument() 332 Info.Param = NTTP; in DeduceNonTypeTemplateArgument() 333 Info.FirstArg = Deduced[NTTP->getIndex()]; in DeduceNonTypeTemplateArgument() 338 Deduced[NTTP->getIndex()] = Result; in DeduceNonTypeTemplateArgument() 348 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument() argument 352 assert(NTTP->getDepth() == 0 && in DeduceNonTypeTemplateArgument() 359 Deduced[NTTP->getIndex()], in DeduceNonTypeTemplateArgument() 363 Info.Param = NTTP; in DeduceNonTypeTemplateArgument() [all …]
|
D | SemaTemplateInstantiate.cpp | 630 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local 631 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex() 1094 NonTypeTemplateParmDecl *NTTP) { in TransformTemplateParmRefExpr() argument 1099 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr() 1100 NTTP->getPosition())) in TransformTemplateParmRefExpr() 1103 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr() 1104 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr() 1112 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr() 1114 NTTP->getDeclName()); in TransformTemplateParmRefExpr() 1119 NTTP, in TransformTemplateParmRefExpr() [all …]
|
D | SemaTemplate.cpp | 1212 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in DiagnoseUnexpandedParameterPacks() local 1213 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks() 1214 S.DiagnoseUnexpandedParameterPack(NTTP->getLocation(), in DiagnoseUnexpandedParameterPacks() 1215 NTTP->getTypeSourceInfo(), in DiagnoseUnexpandedParameterPacks() 1467 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList() local 1469 NTTP->removeDefaultArgument(); in CheckTemplateParameterList() 2347 const NonTypeTemplateParmDecl *NTTP = in isTemplateArgumentTemplateParameter() local 2349 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter() 3392 if (NonTypeTemplateParmDecl *NTTP =dyn_cast<NonTypeTemplateParmDecl>(Param)) { in CheckTemplateArgument() local 3396 QualType NTTPType = NTTP->getType(); in CheckTemplateArgument() [all …]
|
D | SemaTemplateVariadic.cpp | 522 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local 523 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
|
D | SemaCodeComplete.cpp | 2333 } else if (NonTypeTemplateParmDecl *NTTP in AddTemplateParameterChunks() local 2335 if (NTTP->getIdentifier()) in AddTemplateParameterChunks() 2336 PlaceholderStr = NTTP->getIdentifier()->getName(); in AddTemplateParameterChunks() 2337 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks() 2338 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks() 2681 else if (NonTypeTemplateParmDecl *NTTP in CreateCodeCompletionString() local 2683 HasDefaultArg = NTTP->hasDefaultArgument(); in CreateCodeCompletionString()
|
D | SemaTemplateInstantiateDecl.cpp | 1973 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*I)) in collectUnexpandedParameterPacks() local 1974 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
|
D | SemaOverload.cpp | 8908 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local 8910 index = NTTP->getIndex(); in DiagnoseBadDeduction()
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 694 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local 695 if (NTTP->isParameterPack()) in VisitTemplateParameterList() 698 VisitType(NTTP->getType()); in VisitTemplateParameterList()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 3255 if (const SubstNonTypeTemplateParmPackExpr *NTTP in getDeclFromExpr() local 3257 return NTTP->getParameterPack(); in getDeclFromExpr() 3654 else if (NonTypeTemplateParmDecl *NTTP in clang_getCursorDisplayName() local 3656 OS << NTTP->getType().getAsString(Policy); in clang_getCursorDisplayName()
|