| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 199 return NTTP; in getDeducedParameterFromExpr() 1768 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2026 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2050 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2079 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2105 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2229 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2252 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2271 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2771 S.SubstType(NTTP->getType(), Args, NTTP->getLocation(), in ConvertDeducedTemplateArgument() [all …]
|
| H A D | SemaTemplate.cpp | 1250 if (NTTP->getType() != TL.getType() || in AttachTypeConstraint() 1260 BuildDeclRefExpr(NTTP, NTTP->getType(), VK_PRValue, NTTP->getLocation()); in AttachTypeConstraint() 1267 BuildDecltypeType(Ref, NTTP->getLocation()), NTTP->getLocation(), in AttachTypeConstraint() 2624 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks() 2880 NTTP->removeDefaultArgument(); in CheckTemplateParameterList() 4136 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter() 5381 QualType NTTPType = NTTP->getType(); in CheckTemplateArgument() 5382 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack()) in CheckTemplateArgument() 8301 NTTP->removeDefaultArgument(); in ActOnClassTemplateSpecialization() 10889 NTTP->setTypeSourceInfo(NewTSI); in RebuildTemplateParamsInCurrentInstantiation() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 1438 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr() 1439 NTTP->getPosition())) in TransformTemplateParmRefExpr() 1442 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr() 1459 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr() 1467 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr() 1469 NTTP->getDeclName()); in TransformTemplateParmRefExpr() 1479 NTTP, E->getLocation(), Arg); in TransformTemplateParmRefExpr() 1485 return transformNonTypeTemplateParmRef(NTTP, E->getLocation(), Arg); in TransformTemplateParmRefExpr() 1713 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in TransformDeclRefExpr() local 1714 if (NTTP->getDepth() < TemplateArgs.getNumLevels()) in TransformDeclRefExpr() [all …]
|
| H A D | SemaCodeComplete.cpp | 3087 } else if (NonTypeTemplateParmDecl *NTTP = in AddTemplateParameterChunks() local 3089 if (NTTP->getIdentifier()) in AddTemplateParameterChunks() 3090 PlaceholderStr = std::string(NTTP->getIdentifier()->getName()); in AddTemplateParameterChunks() 3091 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks() 3092 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks() 3497 else if (NonTypeTemplateParmDecl *NTTP = in createCodeCompletionStringForDecl() local 3499 HasDefaultArg = NTTP->hasDefaultArgument(); in createCodeCompletionStringForDecl()
|
| H A D | SemaDeclCXX.cpp | 6095 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinSurfaceClassTemplate() local 6096 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinSurfaceClassTemplate() 6149 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinTextureClassTemplate() local 6150 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate() 6158 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(2)); in checkCUDADeviceBuiltinTextureClassTemplate() local 6159 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 2913 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in collectUnexpandedParameterPacks() local 2914 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
|
| H A D | SemaOverload.cpp | 10829 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local 10831 index = NTTP->getIndex(); in DiagnoseBadDeduction()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | IgnoreExpr.h | 68 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreImplicitCastsExtraSingleStep() local 69 return NTTP->getReplacement(); in IgnoreImplicitCastsExtraSingleStep() 84 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreCastsSingleStep() local 85 return NTTP->getReplacement(); in IgnoreCastsSingleStep()
|
| H A D | DeclTemplate.h | 3374 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { 3375 if (NTTP->isExpandedParameterPack()) 3376 return NTTP->getNumExpansionTypes();
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | DeclTemplate.cpp | 62 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in TemplateParameterList() local 65 if (NTTP->hasPlaceholderTypeConstraint()) in TemplateParameterList() 144 if (NTTP->hasDefaultArgument()) in getMinRequiredArguments() 163 return NTTP->getDepth(); in getDepth() 186 if (const Expr *E = NTTP->getPlaceholderTypeConstraint()) in getAssociatedConstraints() 508 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in ProfileTemplateParameterList() local 510 ID.AddBoolean(NTTP->isParameterPack()); in ProfileTemplateParameterList() 511 NTTP->getType().getCanonicalType().Profile(ID); in ProfileTemplateParameterList() 760 auto *NTTP = in CreateDeserialized() local 767 NTTP->NumExpandedTypes = NumExpandedTypes; in CreateDeserialized() [all …]
|
| H A D | DeclPrinter.cpp | 110 void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *NTTP); 1082 } else if (auto NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in printTemplateParameters() local 1083 VisitNonTypeTemplateParmDecl(NTTP); in printTemplateParameters() 1760 const NonTypeTemplateParmDecl *NTTP) { in VisitNonTypeTemplateParmDecl() argument 1762 if (IdentifierInfo *II = NTTP->getIdentifier()) in VisitNonTypeTemplateParmDecl() 1764 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); in VisitNonTypeTemplateParmDecl() 1766 if (NTTP->hasDefaultArgument()) { in VisitNonTypeTemplateParmDecl() 1768 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, Indentation, in VisitNonTypeTemplateParmDecl()
|
| H A D | ASTContext.cpp | 689 ID.AddBoolean(NTTP->isParameterPack()); in Profile() 691 if (NTTP->isExpandedParameterPack()) { in Profile() 693 ID.AddInteger(NTTP->getNumExpansionTypes()); in Profile() 695 QualType T = NTTP->getExpansionType(I); in Profile() 811 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl() 814 if (NTTP->isExpandedParameterPack()) { in getCanonicalTemplateTemplateParmDecl() 826 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl() 836 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl() 4992 *this, NTTP, /*enclosing*/ false, T, in getInjectedTemplateArg() 4993 Expr::getValueKindForType(NTTP->getType()), NTTP->getLocation()); in getInjectedTemplateArg() [all …]
|
| H A D | StmtProfile.cpp | 93 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local 95 ID.AddInteger(NTTP->getDepth()); in VisitDecl() 96 ID.AddInteger(NTTP->getIndex()); in VisitDecl() 97 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl() 98 VisitType(NTTP->getType()); in VisitDecl()
|
| H A D | TypePrinter.cpp | 1949 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl())) in isSubstitutedTemplateArgument() local 1950 return NTTP->getDepth() == Depth && Args.size() > NTTP->getIndex() && in isSubstitutedTemplateArgument() 1951 Args[NTTP->getIndex()].structurallyEquals(Arg); in isSubstitutedTemplateArgument()
|
| H A D | Decl.cpp | 262 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getLVForTemplateParameterList() local 264 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList() 265 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList() 266 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList() 272 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList() 273 QualType type = NTTP->getExpansionType(i); in getLVForTemplateParameterList()
|
| H A D | DeclBase.cpp | 204 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(this)) in isTemplateParameterPack() local 205 return NTTP->isParameterPack(); in isTemplateParameterPack()
|
| H A D | ItaniumMangle.cpp | 4977 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local 4979 mangleTemplateParameter(NTTP->getDepth(), NTTP->getIndex()); in mangleExpression() 5239 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param); in needExactType() local 5240 return NTTP && NTTP->getType()->getContainedDeducedType(); in needExactType()
|
| H A D | Expr.cpp | 1477 while (SubstNonTypeTemplateParmExpr *NTTP = in getReferencedDeclOfCallee() local 1479 CEE = NTTP->getReplacement()->IgnoreParenImpCasts(); in getReferencedDeclOfCallee() 2972 } else if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreParenNoopCasts() local 2973 return NTTP->getReplacement(); in IgnoreParenNoopCasts()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaInternal.h | 69 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local 70 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 690 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(TP)) { in VisitTemplateDecl() local 691 if (NTTP->hasDefaultArgument()) in VisitTemplateDecl() 692 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent); in VisitTemplateDecl()
|
| H A D | USRGeneration.cpp | 919 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local 920 if (NTTP->isParameterPack()) in VisitTemplateParameterList() 923 VisitType(NTTP->getType()); in VisitTemplateParameterList()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 4921 } else if (auto NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) { in EmitCallee() local 4922 return EmitCallee(NTTP->getReplacement()); in EmitCallee()
|