| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 185 return NTTP; in getDeducedParameterFromExpr() 1710 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 1928 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 1951 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 1977 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2000 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2116 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2137 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2156 if (!NTTP) in DeduceTemplateArgumentsByTypeMatch() 2632 S.SubstType(NTTP->getType(), Args, NTTP->getLocation(), in ConvertDeducedTemplateArgument() [all …]
|
| H A D | SemaTemplate.cpp | 1255 if (NTTP->getType() != TL.getType() || in AttachTypeConstraint() 1265 BuildDeclRefExpr(NTTP, NTTP->getType(), VK_PRValue, NTTP->getLocation()); in AttachTypeConstraint() 2629 if (!NTTP->isParameterPack() && in DiagnoseUnexpandedParameterPacks() 2936 NTTP->removeDefaultArgument(); in CheckTemplateParameterList() 4192 const NonTypeTemplateParmDecl *NTTP = in isTemplateArgumentTemplateParameter() local 4194 return NTTP && NTTP->getDepth() == Depth && NTTP->getIndex() == Index; in isTemplateArgumentTemplateParameter() 5443 QualType NTTPType = NTTP->getType(); in CheckTemplateArgument() 5444 if (NTTP->isParameterPack() && NTTP->isExpandedParameterPack()) in CheckTemplateArgument() 8365 NTTP->removeDefaultArgument(); in ActOnClassTemplateSpecialization() 10991 NTTP->setTypeSourceInfo(NewTSI); in RebuildTemplateParamsInCurrentInstantiation() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 1451 if (!TemplateArgs.hasTemplateArgument(NTTP->getDepth(), in TransformTemplateParmRefExpr() 1452 NTTP->getPosition())) in TransformTemplateParmRefExpr() 1455 TemplateArgument Arg = TemplateArgs(NTTP->getDepth(), NTTP->getPosition()); in TransformTemplateParmRefExpr() 1472 if (NTTP->isParameterPack()) { in TransformTemplateParmRefExpr() 1480 QualType TargetType = SemaRef.SubstType(NTTP->getType(), TemplateArgs, in TransformTemplateParmRefExpr() 1482 NTTP->getDeclName()); in TransformTemplateParmRefExpr() 1492 NTTP, E->getLocation(), Arg); in TransformTemplateParmRefExpr() 1498 return transformNonTypeTemplateParmRef(NTTP, E->getLocation(), Arg); in TransformTemplateParmRefExpr() 1726 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in TransformDeclRefExpr() local 1727 if (NTTP->getDepth() < TemplateArgs.getNumLevels()) in TransformDeclRefExpr() [all …]
|
| H A D | SemaCodeComplete.cpp | 3094 } else if (NonTypeTemplateParmDecl *NTTP = in AddTemplateParameterChunks() local 3096 if (NTTP->getIdentifier()) in AddTemplateParameterChunks() 3097 PlaceholderStr = std::string(NTTP->getIdentifier()->deuglifiedName()); in AddTemplateParameterChunks() 3098 NTTP->getType().getAsStringInternal(PlaceholderStr, Policy); in AddTemplateParameterChunks() 3099 HasDefaultArg = NTTP->hasDefaultArgument(); in AddTemplateParameterChunks() 3504 else if (NonTypeTemplateParmDecl *NTTP = in createCodeCompletionStringForDecl() local 3506 HasDefaultArg = NTTP->hasDefaultArgument(); in createCodeCompletionStringForDecl()
|
| H A D | SemaDeclCXX.cpp | 6200 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinSurfaceClassTemplate() local 6201 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinSurfaceClassTemplate() 6254 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(1)); in checkCUDADeviceBuiltinTextureClassTemplate() local 6255 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate() 6263 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Params->getParam(2)); in checkCUDADeviceBuiltinTextureClassTemplate() local 6264 if (!NTTP || !NTTP->getType()->isIntegralOrEnumerationType()) { in checkCUDADeviceBuiltinTextureClassTemplate()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 2964 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in collectUnexpandedParameterPacks() local 2965 S.collectUnexpandedParameterPacks(NTTP->getTypeSourceInfo()->getTypeLoc(), in collectUnexpandedParameterPacks()
|
| /llvm-project-15.0.7/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 | 3411 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { 3412 if (NTTP->isExpandedParameterPack()) 3413 return NTTP->getNumExpansionTypes();
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclTemplate.cpp | 63 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in TemplateParameterList() local 66 if (NTTP->hasPlaceholderTypeConstraint()) in TemplateParameterList() 145 if (NTTP->hasDefaultArgument()) in getMinRequiredArguments() 164 return NTTP->getDepth(); in getDepth() 193 if (const Expr *E = NTTP->getPlaceholderTypeConstraint()) in getAssociatedConstraints() 518 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in ProfileTemplateParameterList() local 520 ID.AddBoolean(NTTP->isParameterPack()); in ProfileTemplateParameterList() 521 NTTP->getType().getCanonicalType().Profile(ID); in ProfileTemplateParameterList() 770 auto *NTTP = in CreateDeserialized() local 777 NTTP->NumExpandedTypes = NumExpandedTypes; in CreateDeserialized() [all …]
|
| H A D | DeclPrinter.cpp | 110 void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *NTTP); 1091 } else if (auto NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in printTemplateParameters() local 1092 VisitNonTypeTemplateParmDecl(NTTP); in printTemplateParameters() 1778 const NonTypeTemplateParmDecl *NTTP) { in VisitNonTypeTemplateParmDecl() argument 1780 if (IdentifierInfo *II = NTTP->getIdentifier()) in VisitNonTypeTemplateParmDecl() 1783 printDeclType(NTTP->getType(), Name, NTTP->isParameterPack()); in VisitNonTypeTemplateParmDecl() 1785 if (NTTP->hasDefaultArgument()) { in VisitNonTypeTemplateParmDecl() 1787 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, Indentation, in VisitNonTypeTemplateParmDecl()
|
| H A D | StmtProfile.cpp | 97 if (const NonTypeTemplateParmDecl *NTTP = in VisitDecl() local 99 ID.AddInteger(NTTP->getDepth()); in VisitDecl() 100 ID.AddInteger(NTTP->getIndex()); in VisitDecl() 101 ID.AddBoolean(NTTP->isParameterPack()); in VisitDecl() 102 VisitType(NTTP->getType()); in VisitDecl()
|
| H A D | ASTContext.cpp | 695 ID.AddBoolean(NTTP->isParameterPack()); in Profile() 697 if (NTTP->isExpandedParameterPack()) { in Profile() 699 ID.AddInteger(NTTP->getNumExpansionTypes()); in Profile() 701 QualType T = NTTP->getExpansionType(I); in Profile() 816 QualType T = getCanonicalType(NTTP->getType()); in getCanonicalTemplateTemplateParmDecl() 819 if (NTTP->isExpandedParameterPack()) { in getCanonicalTemplateTemplateParmDecl() 831 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl() 841 NTTP->getDepth(), in getCanonicalTemplateTemplateParmDecl() 5147 *this, NTTP, /*enclosing*/ false, T, in getInjectedTemplateArg() 5148 Expr::getValueKindForType(NTTP->getType()), NTTP->getLocation()); in getInjectedTemplateArg() [all …]
|
| H A D | TypePrinter.cpp | 2020 if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl())) in isSubstitutedTemplateArgument() local 2021 return NTTP->getDepth() == Depth && Args.size() > NTTP->getIndex() && in isSubstitutedTemplateArgument() 2022 Args[NTTP->getIndex()].structurallyEquals(Arg); in isSubstitutedTemplateArgument()
|
| H A D | Decl.cpp | 264 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getLVForTemplateParameterList() local 266 if (!NTTP->isExpandedParameterPack()) { in getLVForTemplateParameterList() 267 if (!NTTP->getType()->isDependentType()) { in getLVForTemplateParameterList() 268 LV.merge(getLVForType(*NTTP->getType(), computation)); in getLVForTemplateParameterList() 274 for (unsigned i = 0, n = NTTP->getNumExpansionTypes(); i != n; ++i) { in getLVForTemplateParameterList() 275 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 | 5057 else if (const NonTypeTemplateParmDecl *NTTP in mangleExpression() local 5059 mangleTemplateParameter(NTTP->getDepth(), NTTP->getIndex()); in mangleExpression() 5319 auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param); in needExactType() local 5320 return NTTP && NTTP->getType()->getContainedDeducedType(); in needExactType()
|
| H A D | Expr.cpp | 1449 while (SubstNonTypeTemplateParmExpr *NTTP = in getReferencedDeclOfCallee() local 1451 CEE = NTTP->getReplacement()->IgnoreParenImpCasts(); in getReferencedDeclOfCallee() 2997 } else if (auto *NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) in IgnoreParenNoopCasts() local 2998 return NTTP->getReplacement(); in IgnoreParenNoopCasts()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 189 HoverInfo::PrintedType printType(const NonTypeTemplateParmDecl *NTTP, in printType() argument 191 auto PrintedType = printType(NTTP->getType(), NTTP->getASTContext(), PP); in printType() 192 if (NTTP->isParameterPack()) { in printType() 211 else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) in printType() local 212 OS << printType(NTTP, PP).Type; in printType() 239 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in fetchTemplateParameters() local 240 P.Type = printType(NTTP, PP); in fetchTemplateParameters() 242 if (IdentifierInfo *II = NTTP->getIdentifier()) in fetchTemplateParameters() 245 if (NTTP->hasDefaultArgument()) { in fetchTemplateParameters() 248 NTTP->getDefaultArgument()->printPretty(Out, nullptr, PP); in fetchTemplateParameters()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | cxx17-compat.cpp | 125 namespace NTTP { namespace
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 707 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(TP)) { in indexTemplateParameters() local 708 if (NTTP->hasDefaultArgument()) in indexTemplateParameters() 709 IndexCtx.indexBody(NTTP->getDefaultArgument(), Parent); in indexTemplateParameters()
|
| H A D | USRGeneration.cpp | 921 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList() local 922 if (NTTP->isParameterPack()) in VisitTemplateParameterList() 925 VisitType(NTTP->getType()); in VisitTemplateParameterList()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 4707 if (const SubstNonTypeTemplateParmPackExpr *NTTP = in getDeclFromExpr() local 4709 return NTTP->getParameterPack(); in getDeclFromExpr() 5364 else if (NonTypeTemplateParmDecl *NTTP = in clang_getCursorDisplayName() local 5366 OS << NTTP->getType().getAsString(Policy); in clang_getCursorDisplayName()
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | Cxx20Issues.csv | 288 "`3382 <https://wg21.link/LWG3382>`__","NTTP for ``pair``\ and ``array``\ ","Prague","",""
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 5115 } else if (auto NTTP = dyn_cast<SubstNonTypeTemplateParmExpr>(E)) { in EmitCallee() local 5116 return EmitCallee(NTTP->getReplacement()); in EmitCallee()
|