/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclTemplate.h | 51 class FunctionTemplateDecl; variable 476 llvm::PointerIntPair<FunctionTemplateDecl *, 2> Template; 493 FunctionDecl *FD, FunctionTemplateDecl *Template, in FunctionTemplateSpecializationInfo() 513 Create(ASTContext &C, FunctionDecl *FD, FunctionTemplateDecl *Template, 522 FunctionTemplateDecl *getTemplate() const { return Template.getPointer(); } in getTemplate() 689 FunctionTemplateDecl *> { 708 ArrayRef<FunctionTemplateDecl *> getCandidates() const { in getCandidates() 709 return {getTrailingObjects<FunctionTemplateDecl *>(), NumCandidates}; in getCandidates() 957 class FunctionTemplateDecl : public RedeclarableTemplateDecl { 971 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L, [all …]
|
H A D | ASTMutationListener.h | 27 class FunctionTemplateDecl; variable 74 virtual void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD, in AddedCXXTemplateSpecialization()
|
H A D | GlobalDecl.h | 135 (isa<FunctionTemplateDecl>(getDecl()) && in getKernelReferenceKind() 136 cast<FunctionTemplateDecl>(getDecl()) in getKernelReferenceKind()
|
H A D | ASTDumper.h | 44 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D);
|
H A D | DeclFriend.h | 151 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | CodeCompleteConsumer.h | 41 class FunctionTemplateDecl; variable 1060 FunctionTemplateDecl *FunctionTemplate; 1085 OverloadCandidate(FunctionTemplateDecl *FunctionTemplateDecl) in OverloadCandidate() argument 1086 : Kind(CK_FunctionTemplate), FunctionTemplate(FunctionTemplateDecl) { in OverloadCandidate() 1087 assert(FunctionTemplateDecl != nullptr); in OverloadCandidate() 1116 FunctionTemplateDecl *getFunctionTemplate() const { in getFunctionTemplate()
|
H A D | SemaCUDA.h | 260 void inheritTargetAttrs(FunctionDecl *FD, const FunctionTemplateDecl &TD);
|
H A D | Overload.h | 1266 FunctionTemplateDecl *ConstructorTmpl; 1282 Info.ConstructorTmpl = dyn_cast<FunctionTemplateDecl>(D); in getConstructorInfo()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | DeclTemplate.cpp | 410 FunctionTemplateDecl * 411 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create() 415 auto *TD = new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create() 421 FunctionTemplateDecl * 422 FunctionTemplateDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized() 423 return new (C, ID) FunctionTemplateDecl(C, nullptr, SourceLocation(), in CreateDeserialized() 428 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon() 434 void FunctionTemplateDecl::LoadLazySpecializations() const { in LoadLazySpecializations() 439 FunctionTemplateDecl::getSpecializations() const { in getSpecializations() 445 FunctionTemplateDecl::findSpecialization(ArrayRef<TemplateArgument> Args, in findSpecialization() [all …]
|
H A D | DeclFriend.cpp | 44 isa<FunctionTemplateDecl>(D) || in Create()
|
H A D | DeclPrinter.cpp | 85 void VisitFunctionTemplateDecl(FunctionTemplateDecl *D); 505 } else if (auto TD = dyn_cast<FunctionTemplateDecl>(*D)) { in VisitDeclContext() 527 (isa<FunctionTemplateDecl>(*D) && in VisitDeclContext() 528 cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody()))) in VisitDeclContext() 878 else if (FunctionTemplateDecl *FTD = in VisitFriendDecl() 879 dyn_cast<FunctionTemplateDecl>(D->getFriendDecl())) { in VisitFriendDecl() 1264 void DeclPrinter::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
|
H A D | Decl.cpp | 399 FunctionTemplateDecl *temp = specInfo->getTemplate(); in mergeTemplateLV() 3185 if (const FunctionTemplateDecl *Template = getDescribedFunctionTemplate()) { in isThisDeclarationInstantiatedFromAFriendDefinition() 3186 if (const FunctionTemplateDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition() 3598 if (FunctionTemplateDecl *FunTmpl = getDescribedFunctionTemplate()) { in setPreviousDeclaration() 3599 FunctionTemplateDecl *PrevFunTmpl in setPreviousDeclaration() 3991 assert(isa<FunctionTemplateDecl>(ND) && in getTemplatedKind() 4034 FunctionTemplateDecl *FunctionDecl::getDescribedFunctionTemplate() const { in getDescribedFunctionTemplate() 4035 return dyn_cast_if_present<FunctionTemplateDecl>( in getDescribedFunctionTemplate() 4040 FunctionTemplateDecl *Template) { in setDescribedFunctionTemplate() 4138 if (FunctionTemplateDecl *Primary = getPrimaryTemplate()) { in getTemplateInstantiationPattern() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaTemplateDeductionGuide.cpp | 231 auto *GuideTemplate = FunctionTemplateDecl::Create( 327 NamedDecl *transformConstructor(FunctionTemplateDecl *FTD, in transformConstructor() 748 buildAssociatedConstraints(Sema &SemaRef, FunctionTemplateDecl *F, in buildAssociatedConstraints() 983 FunctionTemplateDecl * 986 FunctionTemplateDecl *F, SourceLocation Loc) { in BuildDeductionGuideForTypeAlias() 1170 auto *Result = cast<FunctionTemplateDecl>(buildDeductionGuide( in BuildDeductionGuideForTypeAlias() 1244 FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(G); in DeclareImplicitDeductionGuidesForTypeAlias() 1259 FunctionTemplateDecl *DeclareAggregateDeductionGuideForTypeAlias( in DeclareAggregateDeductionGuideForTypeAlias() 1291 FunctionTemplateDecl *Sema::DeclareAggregateDeductionGuideFromInitList( in DeclareAggregateDeductionGuideFromInitList() 1348 auto *FTD = cast<FunctionTemplateDecl>( in DeclareAggregateDeductionGuideFromInitList() [all …]
|
H A D | SemaAccess.cpp | 421 FunctionTemplateDecl *Context, in MightInstantiateTo() 422 FunctionTemplateDecl *Friend) { in MightInstantiateTo() 533 FunctionTemplateDecl *Friend) { in MatchesFriend() 541 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend() 580 if (isa<FunctionTemplateDecl>(Friend)) in MatchesFriend() 581 return MatchesFriend(S, EC, cast<FunctionTemplateDecl>(Friend)); in MatchesFriend() 1095 (isa<FunctionTemplateDecl>(D) && in TryDiagnoseProtectedAccess() 1097 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
|
H A D | SemaLambda.cpp | 1001 FunctionTemplateDecl *TemplateMethod = FunctionTemplateDecl::Create( in AddTemplateParametersToLambdaCallOperator() 1026 FunctionTemplateDecl *TemplateMethod = in CompleteLambdaCallOperator() 1768 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion() 1770 FunctionTemplateDecl *ConversionTemplate = in addFunctionPointerConversion() 1771 FunctionTemplateDecl::Create(S.Context, Class, in addFunctionPointerConversion() 1812 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion() 1814 FunctionTemplateDecl *StaticInvokerTemplate = in addFunctionPointerConversion() 1815 FunctionTemplateDecl::Create( in addFunctionPointerConversion() 2365 FunctionTemplateDecl *FTD = FD->getPrimaryTemplate(); in getPatternFunctionDecl()
|
H A D | SemaTemplateDeduction.cpp | 1359 static unsigned getFirstInnerIndex(FunctionTemplateDecl *FTD) { in getFirstInnerIndex() 3432 FunctionTemplateDecl *FunctionTemplate, in SubstituteExplicitTemplateArguments() 3745 FunctionTemplateDecl *FunctionTemplate, in getPackIndexForParam() 3772 TemplateDeductionInfo &Info, FunctionTemplateDecl *FunctionTemplate, in instantiateExplicitSpecifierDeferred() 3809 FunctionTemplateDecl *FunctionTemplate, in FinishTemplateArgumentDeduction() 4086 if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D)) { in ResolveOverloadForDeduction() 4241 hasDeducibleTemplateParameters(Sema &S, FunctionTemplateDecl *FunctionTemplate, 4363 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments() 4624 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments() 4751 FunctionTemplateDecl *ConversionTemplate, QualType ObjectType, in DeduceTemplateArguments() [all …]
|
H A D | SemaSYCL.cpp | 165 const FunctionTemplateDecl *FT = FD->getDescribedFunctionTemplate(); in handleKernelAttr()
|
H A D | SemaLookup.cpp | 338 isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl()))); in checkDebugAssumptions() 480 isa<FunctionTemplateDecl>(D) || isa<FieldDecl>(D) || in canHideTag() 499 if (isa<FunctionTemplateDecl>(D)) in resolveKind() 599 } else if (isa<FunctionTemplateDecl>(D)) { in resolveKind() 1160 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(*U); in LookupDirect() 3467 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember() 3468 dyn_cast<FunctionTemplateDecl>(Cand->getUnderlyingDecl())) { in LookupSpecialMember() 3644 if (FunctionTemplateDecl *FD = dyn_cast<FunctionTemplateDecl>(D)) { in LookupLiteralOperator() 3824 !isa<FunctionTemplateDecl>(Underlying)) in ArgumentDependentLookup() 5429 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate() [all …]
|
H A D | SemaOverload.cpp | 1211 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload() 1300 FunctionTemplateDecl *OldTemplate = Old->getDescribedFunctionTemplate(); in IsOverloadOrOverrideImpl() 1301 FunctionTemplateDecl *NewTemplate = New->getDescribedFunctionTemplate(); in IsOverloadOrOverrideImpl() 3840 FunctionTemplateDecl *ConvTemplate; in IsUserDefinedConversion() 3841 if ((ConvTemplate = dyn_cast<FunctionTemplateDecl>(D))) in IsUserDefinedConversion() 4928 FunctionTemplateDecl *ConvTemplate in FindConversionForRefInit() 4929 = dyn_cast<FunctionTemplateDecl>(D); in FindConversionForRefInit() 6509 FunctionTemplateDecl *ConvTemplate; in collectViableConversionCandidates() 6510 if ((ConvTemplate = dyn_cast<FunctionTemplateDecl>(D))) in collectViableConversionCandidates() 6612 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(D); in PerformContextualImplicitConversion() [all …]
|
H A D | SemaTemplateInstantiate.cpp | 94 if (auto *FTD = dyn_cast_if_present<FunctionTemplateDecl>( in getPrimaryTemplateOfGenericLambda() 330 Response HandleFunctionTemplateDecl(const FunctionTemplateDecl *FTD, in HandleFunctionTemplateDecl() 334 const_cast<FunctionTemplateDecl *>(FTD), in HandleFunctionTemplateDecl() 335 const_cast<FunctionTemplateDecl *>(FTD)->getInjectedTemplateArgs(), in HandleFunctionTemplateDecl() 371 const_cast<FunctionTemplateDecl *>(FTD), Arguments, in HandleFunctionTemplateDecl() 517 } else if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(CurDecl)) { in getTemplateInstantiationArgs() 642 FunctionTemplateDecl *FunctionTemplate, in InstantiatingTemplate() 981 FunctionTemplateDecl *FnTmpl = cast<FunctionTemplateDecl>(Active->Entity); in PrintInstantiationStack() 993 if (FunctionTemplateDecl *FnTmpl = in PrintInstantiationStack() 994 dyn_cast<FunctionTemplateDecl>(Active->Entity)) { in PrintInstantiationStack() [all …]
|
H A D | SemaTemplateInstantiateDecl.cpp | 334 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareSimdDeclAttr() 417 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareVariantAttr() 1918 TemplateDeclInstantiator::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl() 1945 FunctionTemplateDecl *InstTemplate in VisitFunctionTemplateDecl() 2100 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitFunctionDecl() 2252 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, DC, in VisitFunctionDecl() 2289 if (FunctionTemplateDecl *FT = Function->getDescribedFunctionTemplate()) in VisitFunctionDecl() 2321 for (FunctionTemplateDecl *FTD : DFTSI->getCandidates()) { in VisitFunctionDecl() 2467 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitCXXMethodDecl() 2658 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, Record, in VisitCXXMethodDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InterfaceStubFunctionsConsumer.cpp | 151 void HandleTemplateSpecializations(const FunctionTemplateDecl &FTD, in HandleTemplateSpecializations() 184 HandleTemplateSpecializations(*cast<FunctionTemplateDecl>(ND), Symbols, in HandleNamedDecl()
|
H A D | MultiplexConsumer.cpp | 98 void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD, 163 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseCXXInlineMethods.cpp | 470 if (const auto *FunTmpl = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration() 515 if (FunctionTemplateDecl *FunTmpl in ParseLexedMethodDeclaration() 516 = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration() 656 !isa<FunctionTemplateDecl>(LM.D) || in ParseLexedMethodDef() 657 cast<FunctionTemplateDecl>(LM.D)->getTemplateParameters()->getDepth() in ParseLexedMethodDef()
|
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
H A D | ExtractAPIVisitor.h | 78 bool WalkUpFromFunctionTemplateDecl(const FunctionTemplateDecl *Decl); 114 bool VisitFunctionTemplateDecl(const FunctionTemplateDecl *Decl); 507 const FunctionTemplateDecl *Decl) { in WalkUpFromFunctionTemplateDecl() 669 if (FunctionTemplateDecl *TemplateDecl = in VisitCXXMethodDecl() 976 const FunctionTemplateDecl *Decl) { in VisitFunctionTemplateDecl()
|