Home
last modified time | relevance | path

Searched refs:FunctionTemplateDecl (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclTemplate.h49 class FunctionTemplateDecl; variable
1044 FunctionTemplateDecl *getCanonicalDecl() override {
1045 return cast<FunctionTemplateDecl>(
1049 return cast<FunctionTemplateDecl>(
1055 FunctionTemplateDecl *getPreviousDecl() {
1056 return cast_or_null<FunctionTemplateDecl>(
1060 return cast_or_null<FunctionTemplateDecl>(
1064 FunctionTemplateDecl *getMostRecentDecl() {
1065 return cast<FunctionTemplateDecl>(
1074 return cast_or_null<FunctionTemplateDecl>(
[all …]
H A DASTLambda.h55 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D)) in isLambdaConversionOperator()
H A DASTMutationListener.h27 class FunctionTemplateDecl; variable
72 virtual void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD, in AddedCXXTemplateSpecialization()
H A DASTDumper.h43 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D);
H A DDeclFriend.h152 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DDeclTemplate.cpp342 FunctionTemplateDecl *FunctionTemplateDecl::Create(ASTContext &C, in Create()
349 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
352 FunctionTemplateDecl *FunctionTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
354 return new (C, ID) FunctionTemplateDecl(C, nullptr, SourceLocation(), in CreateDeserialized()
359 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
365 void FunctionTemplateDecl::LoadLazySpecializations() const { in LoadLazySpecializations()
370 FunctionTemplateDecl::getSpecializations() const { in getSpecializations()
381 void FunctionTemplateDecl::addSpecialization( in addSpecialization()
403 void FunctionTemplateDecl::mergePrevDecl(FunctionTemplateDecl *Prev) { in mergePrevDecl()
413 SmallVector<FunctionTemplateDecl *, 8> PreviousDecls; in mergePrevDecl()
[all …]
H A DDeclFriend.cpp44 isa<FunctionTemplateDecl>(D) || in Create()
H A DComment.cpp263 const FunctionTemplateDecl *FTD = cast<FunctionTemplateDecl>(CommentDecl); in fill()
H A DDecl.cpp395 FunctionTemplateDecl *temp = specInfo->getTemplate(); in mergeTemplateLV()
2954 if (const FunctionTemplateDecl *InstantiatedFrom = in isThisDeclarationInstantiatedFromAFriendDefinition()
3253 if (FunctionTemplateDecl *FunTmpl = getDescribedFunctionTemplate()) { in setPreviousDeclaration()
3254 FunctionTemplateDecl *PrevFunTmpl in setPreviousDeclaration()
3629 if (TemplateOrSpecialization.is<FunctionTemplateDecl *>()) in getTemplatedKind()
3671 return TemplateOrSpecialization.dyn_cast<FunctionTemplateDecl *>(); in getDescribedFunctionTemplate()
3755 if (FunctionTemplateDecl *Primary = getPrimaryTemplate()) { in getTemplateInstantiationPattern()
3771 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3853 totalSizeToAlloc<TemplateArgumentLoc, FunctionTemplateDecl *>( in Create()
3865 FunctionTemplateDecl **TsArray = getTrailingObjects<FunctionTemplateDecl *>(); in DependentFunctionTemplateSpecializationInfo()
[all …]
H A DDeclPrinter.cpp83 void VisitFunctionTemplateDecl(FunctionTemplateDecl *D);
459 } else if (auto TD = dyn_cast<FunctionTemplateDecl>(*D)) { in VisitDeclContext()
484 (isa<FunctionTemplateDecl>(*D) && in VisitDeclContext()
485 cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody()))) in VisitDeclContext()
815 else if (FunctionTemplateDecl *FTD = in VisitFriendDecl()
816 dyn_cast<FunctionTemplateDecl>(D->getFriendDecl())) { in VisitFriendDecl()
1152 void DeclPrinter::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
H A DASTDumper.cpp139 void ASTDumper::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h42 class FunctionTemplateDecl; variable
1028 FunctionTemplateDecl *FunctionTemplate;
1039 OverloadCandidate(FunctionTemplateDecl *FunctionTemplateDecl) in OverloadCandidate() argument
1040 : Kind(CK_FunctionTemplate), FunctionTemplate(FunctionTemplateDecl) {} in OverloadCandidate()
1053 FunctionTemplateDecl *getFunctionTemplate() const { in getFunctionTemplate()
H A DOverload.h1164 FunctionTemplateDecl *ConstructorTmpl;
1180 Info.ConstructorTmpl = dyn_cast<FunctionTemplateDecl>(D); in getConstructorInfo()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp87 } else if (const auto *FD = dyn_cast<FunctionTemplateDecl>(FoundDecl)) { in Find()
138 void handleFunctionTemplateDecl(const FunctionTemplateDecl *FTD) { in handleFunctionTemplateDecl()
172 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) in addUSRsOfCtorDtors()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp413 FunctionTemplateDecl *Context, in MightInstantiateTo()
414 FunctionTemplateDecl *Friend) { in MightInstantiateTo()
525 FunctionTemplateDecl *Friend) { in MatchesFriend()
533 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend()
572 if (isa<FunctionTemplateDecl>(Friend)) in MatchesFriend()
573 return MatchesFriend(S, EC, cast<FunctionTemplateDecl>(Friend)); in MatchesFriend()
1087 (isa<FunctionTemplateDecl>(D) && in TryDiagnoseProtectedAccess()
1089 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
H A DSemaTemplateDeduction.cpp3555 FunctionTemplateDecl *FunctionTemplate, in FinishTemplateArgumentDeduction()
3787 if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D)) { in ResolveOverloadForDeduction()
4074 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
4294 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
4557 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
5272 FunctionTemplateDecl *
5273 Sema::getMoreSpecializedTemplate(FunctionTemplateDecl *FT1, in getMoreSpecializedTemplate()
5274 FunctionTemplateDecl *FT2, in getMoreSpecializedTemplate()
5373 FunctionTemplateDecl *BestTemplate in getMostSpecialized()
5377 FunctionTemplateDecl *Challenger in getMostSpecialized()
[all …]
H A DSemaLambda.cpp405 FunctionTemplateDecl *const TemplateMethod = TemplateParams ? in startLambdaDefinition()
406 FunctionTemplateDecl::Create(Context, Class, in startLambdaDefinition()
1460 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1462 FunctionTemplateDecl *ConversionTemplate = in addFunctionPointerConversion()
1463 FunctionTemplateDecl::Create(S.Context, Class, in addFunctionPointerConversion()
1499 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1501 FunctionTemplateDecl *StaticInvokerTemplate = FunctionTemplateDecl::Create( in addFunctionPointerConversion()
H A DSemaLookup.cpp333 isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl()))); in sanity()
474 isa<FunctionTemplateDecl>(D) || isa<FieldDecl>(D) || in canHideTag()
493 if (isa<FunctionTemplateDecl>(D)) in resolveKind()
571 } else if (isa<FunctionTemplateDecl>(D)) { in resolveKind()
1133 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(*U); in LookupDirect()
3230 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember()
3231 dyn_cast<FunctionTemplateDecl>(Cand->getUnderlyingDecl())) { in LookupSpecialMember()
3425 if (FunctionTemplateDecl *FD = dyn_cast<FunctionTemplateDecl>(D)) { in LookupLiteralOperator()
3599 !isa<FunctionTemplateDecl>(Underlying)) in ArgumentDependentLookup()
5221 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate()
[all …]
H A DSemaTemplateInstantiateDecl.cpp294 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareSimdDeclAttr()
377 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareVariantAttr()
1792 FunctionTemplateDecl *InstTemplate in VisitFunctionTemplateDecl()
2163 Previous.addDecl(cast<FunctionTemplateDecl>(Temp)); in VisitFunctionDecl()
2526 Previous.addDecl(cast<FunctionTemplateDecl>(Temp)); in VisitCXXMethodDecl()
4558 FunctionTemplateDecl *Template = Decl->getPrimaryTemplate(); in CheckInstantiatedFunctionTemplateConstraints()
4627 if (FunctionTemplateDecl *FunTmpl in InitFunctionInstantiation()
4745 Sema::InstantiateFunctionDeclaration(FunctionTemplateDecl *FTD, in InstantiateFunctionDeclaration()
5744 static bool isInstantiationOf(FunctionTemplateDecl *Pattern, in isInstantiationOf()
5745 FunctionTemplateDecl *Instance) { in isInstantiationOf()
[all …]
H A DSemaOverload.cpp4627 FunctionTemplateDecl *ConvTemplate in FindConversionForRefInit()
4628 = dyn_cast<FunctionTemplateDecl>(D); in FindConversionForRefInit()
5996 FunctionTemplateDecl *ConvTemplate; in collectViableConversionCandidates()
6097 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(D); in PerformContextualImplicitConversion()
6751 FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D); in AddFunctionCandidates()
6822 if (FunctionTemplateDecl *TD = dyn_cast<FunctionTemplateDecl>(Decl)) { in AddMethodCandidate()
7624 FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D); in AddNonMemberOperatorCandidates()
8043 if (isa<FunctionTemplateDecl>(D)) in AddTypesConvertedFrom()
10352 if (FunctionTemplateDecl *FunTmpl = in NoteAllOverloadCandidates()
12619 if (FunctionTemplateDecl *FuncTemplate in AddOverloadedCallCandidate()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp150 void HandleTemplateSpecializations(const FunctionTemplateDecl &FTD, in HandleTemplateSpecializations()
183 HandleTemplateSpecializations(*cast<FunctionTemplateDecl>(ND), Symbols, in HandleNamedDecl()
H A DMultiplexConsumer.cpp89 void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,
149 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp409 if (const auto *FunTmpl = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration()
453 if (FunctionTemplateDecl *FunTmpl in ParseLexedMethodDeclaration()
454 = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration()
575 !isa<FunctionTemplateDecl>(LM.D) || in ParseLexedMethodDef()
576 cast<FunctionTemplateDecl>(LM.D)->getTemplateParameters()->getDepth() in ParseLexedMethodDef()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp83 if (FunctionTemplateDecl *FTD = LE->getDependentCallOperator()) in VisitLambdaExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp90 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D);
231 if (FunctionTemplateDecl *FunTmpl = D->getDescribedFunctionTemplate()) { in VisitFunctionDecl()
372 void USRGenerator::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()

1234