Home
last modified time | relevance | path

Searched refs:getAsTemplateDecl (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateName.cpp145 TemplateDecl *TemplateName::getAsTemplateDecl() const { in getAsTemplateDecl() function in TemplateName
155 return QTN->getUnderlyingTemplate().getAsTemplateDecl(); in getAsTemplateDecl()
158 return sub->getReplacement().getAsTemplateDecl(); in getAsTemplateDecl()
236 if (TemplateDecl *Template = getAsTemplateDecl()) { in getDependence()
270 else if (const auto *TD = getAsTemplateDecl()) in Profile()
297 TemplateDecl *Template = getAsTemplateDecl(); in print()
315 TemplateDecl *UTD = Underlying.getAsTemplateDecl(); in print()
H A DASTDiagnostic.cpp1189 Tree.SetTemplateDiff(FromArgTST->getTemplateName().getAsTemplateDecl(), in DiffTypes()
1190 ToArgTST->getTemplateName().getAsTemplateDecl(), in DiffTypes()
1376 FromTST->getTemplateName().getAsTemplateDecl()->getTemplateParameters(); in DiffTemplate()
1378 ToTST->getTemplateName().getAsTemplateDecl()->getTemplateParameters(); in DiffTemplate()
1432 return FromTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl() == in hasSameBaseTemplate()
1433 ToTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl(); in hasSameBaseTemplate()
1489 return Iter->getAsTemplate().getAsTemplateDecl(); in GetTemplateDecl()
1491 return Iter.getDesugaredTA().getAsTemplate().getAsTemplateDecl(); in GetTemplateDecl()
2134 Tree.SetTemplateDiff(FromOrigTST->getTemplateName().getAsTemplateDecl(), in DiffTemplate()
2135 ToOrigTST->getTemplateName().getAsTemplateDecl(), in DiffTemplate()
H A DQualTypeNames.cpp62 TemplateDecl *ArgTDecl = TName.getAsTemplateDecl(); in getFullyQualifiedTemplateName()
331 Decl = TST->getTemplateName().getAsTemplateDecl(); in createNestedNameSpecifierForScopeOf()
H A DCXXInheritance.cpp258 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl())) in lookupInBases()
423 const auto *TD = dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()); in findOrdinaryMemberInDependentClasses()
H A DItaniumMangle.cpp2230 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in mangleTemplatePrefix()
2343 TD = TN.getAsTemplateDecl(); in mangleType()
2489 TemplateDecl *TD = TN.getAsTemplateDecl(); in mangleUnresolvedTypeOrSimpleId()
2522 TemplateDecl *TD = TN.getAsTemplateDecl(); in mangleUnresolvedTypeOrSimpleId()
4267 if (TemplateDecl *TD = T->getTemplateName().getAsTemplateDecl()) { in mangleType()
4415 TemplateDecl *TD = T->getTemplateName().getAsTemplateDecl(); in mangleType()
5840 if (TemplateDecl *TD = TN.getAsTemplateDecl()) in TemplateArgManglingInfo()
5903 const TemplateDecl *ArgTemplate = ArgTemplateName.getAsTemplateDecl(); in needToMangleTemplateParam()
6770 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in mangleSubstitution()
6942 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in addSubstitution()
H A DASTStructuralEquivalence.cpp583 TemplateDecl *TemplateDeclN1 = N1.getAsTemplateDecl(); in IsStructurallyEquivalent()
584 TemplateDecl *TemplateDeclN2 = N2.getAsTemplateDecl(); in IsStructurallyEquivalent()
H A DODRHash.cpp147 AddDecl(Name.getAsTemplateDecl()); in AddTemplateName()
H A DTypePrinter.cpp1617 TemplateDecl *TD = T->getTemplateName().getAsTemplateDecl(); in printTemplateId()
2291 TemplateDecl *PatTD = Pattern.getAsTemplate().getAsTemplateDecl(); in isSubstitutedTemplateArgument()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp87 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsStdVector()
101 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsSmallVector()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp158 } else if (const TemplateDecl *D = TemplName.getAsTemplateDecl()) { in HandleTemplateSpecializationTypeLoc()
221 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()); in VisitDependentNameTypeLoc()
H A DIndexBody.cpp179 dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()); in indexDependentReference()
H A DIndexDecl.cpp67 .getAsTemplateDecl()) { in handleTemplateArgumentLoc()
H A DUSRGeneration.cpp1019 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in VisitTemplateName()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h97 if (!visit(TemplateSpecType->getTemplateName().getAsTemplateDecl(), in VisitTypeLoc()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeductionGuide.cpp114 !isa_and_present<TypeAliasTemplateDecl>(Template.getAsTemplateDecl())) in RebuildTemplateSpecializationType()
118 auto *TATD = cast<TypeAliasTemplateDecl>(Template.getAsTemplateDecl()); in RebuildTemplateSpecializationType()
685 if (auto *TD = Template.getAsTemplateDecl()) in TemplateParamsReferencedInTemplateArgumentList()
964 Template = TST->getTemplateName().getAsTemplateDecl(); in getRHSTemplateDeclAndArgs()
H A DSemaTemplate.cpp1071 ConceptDecl *CD = cast<ConceptDecl>(TN.getAsTemplateDecl()); in CheckTypeConstraint()
1112 ConceptDecl *CD = cast<ConceptDecl>(TN.getAsTemplateDecl()); in BuildTypeConstraint()
2615 dyn_cast_or_null<TemplateTemplateParmDecl>(N.getAsTemplateDecl())) in TraverseTemplateName()
2729 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
2868 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
3037 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in NoteAllFoundTemplates()
3302 TemplateDecl *Template = Name.getAsTemplateDecl(); in CheckTemplateIdType()
3709 dyn_cast_or_null<TypeAliasTemplateDecl>(Template.getAsTemplateDecl())) { in ActOnTagTemplateIdType()
3798 Arg.getAsTemplateOrTemplatePattern().getAsTemplateDecl()); in isTemplateArgumentTemplateParameter()
3965 dyn_cast_or_null<VarTemplateDecl>(Name.getAsTemplateDecl()); in ActOnVarTemplateSpecialization()
[all …]
H A DSemaCXXScopeSpec.cpp81 SpecType->getTemplateName().getAsTemplateDecl())) { in computeDeclContext()
898 TemplateDecl *TD = Template.getAsTemplateDecl(); in ActOnCXXNestedNameSpecifier()
H A DSemaTemplateDeduction.cpp573 TemplateDecl *ParamDecl = Param.getAsTemplateDecl(); in DeduceTemplateArguments()
591 Arg.getAsTemplateDecl())) { in DeduceTemplateArguments()
686 if (const auto *TD = TNP.getAsTemplateDecl(); TD && TD->isTypeAlias()) in DeduceTemplateSpecArguments()
712 if (const auto *TD = TNA.getAsTemplateDecl(); TD && TD->isTypeAlias()) in DeduceTemplateSpecArguments()
3415 return Spec->getTemplateName().getAsTemplateDecl() != nullptr; in isSimpleTemplateIdType()
6259 Template.getAsTemplateDecl())) in TraverseTemplateName()
6332 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in MarkUsedTemplateParameters()
H A DSemaTemplateVariadic.cpp107 Template.getAsTemplateDecl())) { in TraverseTemplateName()
H A DSemaTemplateInstantiate.cpp1833 assert(!Template.isNull() && Template.getAsTemplateDecl() && in TransformDecl()
1835 return Template.getAsTemplateDecl(); in TransformDecl()
1961 = dyn_cast_or_null<TemplateTemplateParmDecl>(Name.getAsTemplateDecl())) { in TransformTemplateName()
H A DSemaAttr.cpp160 TST->getTemplateName().getAsTemplateDecl()->getTemplatedDecl()); in inferGslPointerAttribute()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTemplateName.h274 TemplateDecl *getAsTemplateDecl() const;
H A DPropertiesBase.td633 let Read = [{ node.getAsTemplateDecl() }];
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp135 if (auto *decl = specialT->getTemplateName().getAsTemplateDecl()) { in isReturnValueRefCounted()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp403 if (const auto *TemplDecl = TemplName.getAsTemplateDecl()) in getFragmentsForType()
1140 CTA.getAsTemplateOrTemplatePattern().getAsTemplateDecl()) in getFragmentsForTemplateArguments()

12