Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DIgnoreExpr.h69 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreImplicitCastsExtraSingleStep() local
70 return NTTP->getReplacement(); in IgnoreImplicitCastsExtraSingleStep()
85 if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreCastsSingleStep() local
86 return NTTP->getReplacement(); in IgnoreCastsSingleStep()
H A DDeclTemplate.h3359 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) {
3360 if (NTTP->isExpandedParameterPack())
3361 return NTTP->getNumExpansionTypes();
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp187 return NTTP; in getDeducedParameterFromExpr()
1769 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
1987 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2010 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2036 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2059 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2175 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2196 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2215 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch()
2729 S.SubstType(NTTP->getType(), Args, NTTP->getLocation(), in ConvertDeducedTemplateArgument()
[all …]
H A DSemaTemplate.cpp2897 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks()
3199 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList() local
3201 NTTP->removeDefaultArgument(); in CheckTemplateParameterList()
4480 const NonTypeTemplateParmDecl *NTTP = in isTemplateArgumentTemplateParameter() local
4482 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter()
5729 QualType NTTPType = NTTP->getType(); in CheckTemplateArgument()
5730 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack()) in CheckTemplateArgument()
6198 } else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateArgumentList() local
8909 NTTP->removeDefaultArgument(); in ActOnClassTemplateSpecialization()
11555 NTTP->setTypeSourceInfo(NewTSI); in RebuildTemplateParamsInCurrentInstantiation()
[all …]
H A DSemaTemplateInstantiate.cpp1848 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr()
1849 NTTP->getPosition())) in TransformTemplateParmRefExpr()
1852 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr()
1869 auto [AssociatedDecl, _] = TemplateArgs.getAssociatedDecl(NTTP->getDepth()); in TransformTemplateParmRefExpr()
1871 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr()
1879 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr()
1881 NTTP->getDeclName()); in TransformTemplateParmRefExpr()
1891 E->getLocation(), Arg, AssociatedDecl, NTTP->getPosition()); in TransformTemplateParmRefExpr()
2149 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in TransformDeclRefExpr() local
2150 if (NTTP->getDepth() < TemplateArgs.getNumLevels()) in TransformDeclRefExpr()
[all …]
H A DSemaCodeComplete.cpp3191 } else if (NonTypeTemplateParmDecl *NTTP = in AddTemplateParameterChunks() local
3193 if (NTTP->getIdentifier()) in AddTemplateParameterChunks()
3194 PlaceholderStr = std::string(NTTP->getIdentifier()->deuglifiedName()); in AddTemplateParameterChunks()
3195 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks()
3196 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks()
3607 else if (NonTypeTemplateParmDecl *NTTP = in createCodeCompletionStringForDecl() local
3609 HasDefaultArg = NTTP->hasDefaultArgument(); in createCodeCompletionStringForDecl()
H A DSemaDeclCXX.cpp6439 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinSurfaceClassTemplate() local
6440 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinSurfaceClassTemplate()
6493 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinTextureClassTemplate() local
6494 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate()
6502 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(2)); in checkCUDADeviceBuiltinTextureClassTemplate() local
6503 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate()
H A DSemaTemplateInstantiateDecl.cpp3101 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in collectUnexpandedParameterPacks() local
3102 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
H A DSemaOverload.cpp11548 else if (NonTypeTemplateParmDecl *NTTP in DiagnoseBadDeduction() local
11550 index = NTTP->getIndex(); in DiagnoseBadDeduction()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDeclTemplate.cpp63 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in TemplateParameterList() local
66 if (NTTP->hasPlaceholderTypeConstraint()) in TemplateParameterList()
140 ID.AddBoolean(NTTP->isParameterPack()); in Profile()
141 NTTP->getType().getCanonicalType().Profile(ID); in Profile()
142 ID.AddBoolean(NTTP->hasPlaceholderTypeConstraint()); in Profile()
143 if (const Expr *E = NTTP->getPlaceholderTypeConstraint()) in Profile()
178 if (NTTP->hasDefaultArgument()) in getMinRequiredArguments()
197 return NTTP->getDepth(); in getDepth()
778 auto *NTTP = in CreateDeserialized() local
785 NTTP->NumExpandedTypes = NumExpandedTypes; in CreateDeserialized()
[all …]
H A DDeclPrinter.cpp123 void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *NTTP);
1234 } else if (auto NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in printTemplateParameters() local
1235 VisitNonTypeTemplateParmDecl(NTTP); in printTemplateParameters()
1936 const NonTypeTemplateParmDecl *NTTP) { in VisitNonTypeTemplateParmDecl() argument
1938 if (IdentifierInfo *II = NTTP->getIdentifier()) in VisitNonTypeTemplateParmDecl()
1941 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); in VisitNonTypeTemplateParmDecl()
1943 if (NTTP->hasDefaultArgument()) { in VisitNonTypeTemplateParmDecl()
1945 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, Indentation, in VisitNonTypeTemplateParmDecl()
H A DStmtProfile.cpp101 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local
103 ID.AddInteger(NTTP->getDepth()); in VisitDecl()
104 ID.AddInteger(NTTP->getIndex()); in VisitDecl()
105 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl()
114 VisitType(Context.getUnconstrainedType(NTTP->getType())); in VisitDecl()
H A DASTContext.cpp708 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in Profile() local
710 ID.AddBoolean(NTTP->isParameterPack()); in Profile()
713 if (NTTP->isExpandedParameterPack()) { in Profile()
715 ID.AddInteger(NTTP->getNumExpansionTypes()); in Profile()
717 QualType T = NTTP->getExpansionType(I); in Profile()
765 if (NTTP->isExpandedParameterPack()) { in getCanonicalTemplateTemplateParmDecl()
777 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl()
787 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl()
5175 } else if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in getInjectedTemplateArg() local
5186 Expr::getValueKindForType(NTTP->getType()), NTTP->getLocation()); in getInjectedTemplateArg()
[all …]
H A DTypePrinter.cpp2154 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl())) in isSubstitutedTemplateArgument() local
2155 return NTTP->getDepth() == Depth && Args.size() > NTTP->getIndex() && in isSubstitutedTemplateArgument()
2156 Args[NTTP->getIndex()].structurallyEquals(Arg); in isSubstitutedTemplateArgument()
H A DItaniumMangle.cpp5603 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local
5605 mangleTemplateParameter(NTTP->getDepth(), NTTP->getIndex()); in mangleExpression()
5864 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) in needToMangleTemplateParam() local
5865 return NTTP->getType()->isInstantiationDependentType() || in needToMangleTemplateParam()
5866 NTTP->getType()->getContainedDeducedType(); in needToMangleTemplateParam()
5950 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param); in getArgInfo() local
5951 bool NeedExactType = NTTP && NTTP->getType()->getContainedDeducedType(); in getArgInfo()
H A DDecl.cpp263 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getLVForTemplateParameterList() local
265 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList()
266 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList()
267 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList()
273 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList()
274 QualType type = NTTP->getExpansionType(i); in getLVForTemplateParameterList()
H A DODRDiagsEmitter.cpp853 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) in diagnoseMismatch() local
854 return NTTP->hasDefaultArgument() && in diagnoseMismatch()
855 !NTTP->defaultArgumentWasInherited(); in diagnoseMismatch()
H A DDeclBase.cpp213 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(this)) in isTemplateParameterPack() local
214 return NTTP->isParameterPack(); in isTemplateParameterPack()
H A DExpr.cpp1518 while (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(CEE)) in getReferencedDeclOfCallee() local
1519 CEE = NTTP->getReplacement()->IgnoreParenImpCasts(); in getReferencedDeclOfCallee()
3078 } else if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreParenNoopCasts() local
3079 return NTTP->getReplacement(); in IgnoreParenNoopCasts()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h69 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex() local
70 return std::make_pair(NTTP->getDepth(), NTTP->getIndex()); in getDepthAndIndex()
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp707 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(TP)) { in indexTemplateParameters() local
708 IndexCtx.indexTypeSourceInfo(NTTP->getTypeSourceInfo(), Parent); in indexTemplateParameters()
709 if (NTTP->hasDefaultArgument()) in indexTemplateParameters()
710 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent); in indexTemplateParameters()
H A DUSRGeneration.cpp986 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local
987 if (NTTP->isParameterPack()) in VisitTemplateParameterList()
990 VisitType(NTTP->getType()); in VisitTemplateParameterList()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp5508 } else if (auto NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) { in EmitCallee() local
5509 return EmitCallee(NTTP->getReplacement()); in EmitCallee()