Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclTemplate.h49 class FunctionTemplateDecl; variable
1039 FunctionTemplateDecl *getCanonicalDecl() override {
1040 return cast<FunctionTemplateDecl>(
1044 return cast<FunctionTemplateDecl>(
1050 FunctionTemplateDecl *getPreviousDecl() {
1051 return cast_or_null<FunctionTemplateDecl>(
1055 return cast_or_null<FunctionTemplateDecl>(
1059 FunctionTemplateDecl *getMostRecentDecl() {
1060 return cast<FunctionTemplateDecl>(
1069 return cast_or_null<FunctionTemplateDecl>(
[all …]
H A DASTLambda.h56 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D)) in isLambdaConversionOperator()
H A DASTMutationListener.h28 class FunctionTemplateDecl; variable
73 virtual void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD, in AddedCXXTemplateSpecialization()
H A DDeclFriend.h153 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
H A DDecl.h61 class FunctionTemplateDecl; variable
1784 llvm::PointerUnion4<FunctionTemplateDecl *,
1816 FunctionTemplateDecl *Template,
2434 FunctionTemplateDecl *getDescribedFunctionTemplate() const;
2436 void setDescribedFunctionTemplate(FunctionTemplateDecl *Template);
2472 FunctionTemplateDecl *getPrimaryTemplate() const;
2510 void setFunctionTemplateSpecialization(FunctionTemplateDecl *Template,
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclTemplate.cpp244 FunctionTemplateDecl *FunctionTemplateDecl::Create(ASTContext &C, in Create()
251 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
254 FunctionTemplateDecl *FunctionTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
256 return new (C, ID) FunctionTemplateDecl(C, nullptr, SourceLocation(), in CreateDeserialized()
261 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
267 void FunctionTemplateDecl::LoadLazySpecializations() const { in LoadLazySpecializations()
272 FunctionTemplateDecl::getSpecializations() const { in getSpecializations()
278 FunctionTemplateDecl::findSpecialization(ArrayRef<TemplateArgument> Args, in findSpecialization()
283 void FunctionTemplateDecl::addSpecialization( in addSpecialization()
305 void FunctionTemplateDecl::mergePrevDecl(FunctionTemplateDecl *Prev) { in mergePrevDecl()
[all …]
H A DDeclFriend.cpp45 isa<FunctionTemplateDecl>(D) || in Create()
H A DComment.cpp249 const FunctionTemplateDecl *FTD = cast<FunctionTemplateDecl>(CommentDecl); in fill()
H A DDeclPrinter.cpp83 void VisitFunctionTemplateDecl(FunctionTemplateDecl *D);
436 } else if (auto TD = dyn_cast<FunctionTemplateDecl>(*D)) { in VisitDeclContext()
461 (isa<FunctionTemplateDecl>(*D) && in VisitDeclContext()
462 cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody()))) in VisitDeclContext()
757 else if (FunctionTemplateDecl *FTD = in VisitFriendDecl()
758 dyn_cast<FunctionTemplateDecl>(D->getFriendDecl())) { in VisitFriendDecl()
1087 void DeclPrinter::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
H A DDecl.cpp395 FunctionTemplateDecl *temp = specInfo->getTemplate(); in mergeTemplateLV()
2972 if (FunctionTemplateDecl *FunTmpl = getDescribedFunctionTemplate()) { in setPreviousDeclaration()
2973 FunctionTemplateDecl *PrevFunTmpl in setPreviousDeclaration()
3319 if (TemplateOrSpecialization.is<FunctionTemplateDecl *>()) in getTemplatedKind()
3355 return TemplateOrSpecialization.dyn_cast<FunctionTemplateDecl *>(); in getDescribedFunctionTemplate()
3437 if (FunctionTemplateDecl *Primary = getPrimaryTemplate()) { in getTemplateInstantiationPattern()
3455 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
3537 totalSizeToAlloc<TemplateArgumentLoc, FunctionTemplateDecl *>( in Create()
3549 FunctionTemplateDecl **TsArray = getTrailingObjects<FunctionTemplateDecl *>(); in DependentFunctionTemplateSpecializationInfo()
3551 TsArray[I] = cast<FunctionTemplateDecl>(Ts[I]->getUnderlyingDecl()); in DependentFunctionTemplateSpecializationInfo()
[all …]
H A DCommentSema.cpp820 if (const FunctionTemplateDecl *FTD = in isFunctionOrMethodVariadic()
821 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
941 (isa<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)); in isFunctionTemplateDecl()
H A DASTStructuralEquivalence.cpp1369 FunctionTemplateDecl *D1, in IsStructurallyEquivalent()
1370 FunctionTemplateDecl *D2) { in IsStructurallyEquivalent()
1584 } else if (auto *FunctionTemplate1 = dyn_cast<FunctionTemplateDecl>(D1)) { in CheckKindSpecificEquivalence()
1585 if (auto *FunctionTemplate2 = dyn_cast<FunctionTemplateDecl>(D2)) { in CheckKindSpecificEquivalence()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h43 class FunctionTemplateDecl; variable
1034 FunctionTemplateDecl *FunctionTemplate;
1045 OverloadCandidate(FunctionTemplateDecl *FunctionTemplateDecl)
1046 : Kind(CK_FunctionTemplate), FunctionTemplate(FunctionTemplateDecl) {}
1059 FunctionTemplateDecl *getFunctionTemplate() const {
H A DOverload.h983 FunctionTemplateDecl *ConstructorTmpl;
999 Info.ConstructorTmpl = dyn_cast<FunctionTemplateDecl>(D); in getConstructorInfo()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp3305 FunctionTemplateDecl *FunctionTemplate, in FinishTemplateArgumentDeduction()
3517 if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D)) { in ResolveOverloadForDeduction()
3797 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
4018 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
4274 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
4862 FunctionTemplateDecl *
4863 Sema::getMoreSpecializedTemplate(FunctionTemplateDecl *FT1, in getMoreSpecializedTemplate()
4864 FunctionTemplateDecl *FT2, in getMoreSpecializedTemplate()
4947 FunctionTemplateDecl *BestTemplate in getMostSpecialized()
4951 FunctionTemplateDecl *Challenger in getMostSpecialized()
[all …]
H A DSemaLambda.cpp425 FunctionTemplateDecl *const TemplateMethod = TemplateParams ? in startLambdaDefinition()
426 FunctionTemplateDecl::Create(Context, Class, in startLambdaDefinition()
1316 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1318 FunctionTemplateDecl *ConversionTemplate = in addFunctionPointerConversion()
1319 FunctionTemplateDecl::Create(S.Context, Class, in addFunctionPointerConversion()
1355 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1357 FunctionTemplateDecl *StaticInvokerTemplate = FunctionTemplateDecl::Create( in addFunctionPointerConversion()
H A DSemaAccess.cpp401 FunctionTemplateDecl *Context, in MightInstantiateTo()
402 FunctionTemplateDecl *Friend) { in MightInstantiateTo()
513 FunctionTemplateDecl *Friend) { in MatchesFriend()
521 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend()
560 if (isa<FunctionTemplateDecl>(Friend)) in MatchesFriend()
561 return MatchesFriend(S, EC, cast<FunctionTemplateDecl>(Friend)); in MatchesFriend()
1075 (isa<FunctionTemplateDecl>(D) && in TryDiagnoseProtectedAccess()
1077 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
H A DSemaLookup.cpp326 isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl()))); in sanity()
464 isa<FunctionTemplateDecl>(D) || isa<FieldDecl>(D) || in canHideTag()
483 if (isa<FunctionTemplateDecl>(D)) in resolveKind()
561 } else if (isa<FunctionTemplateDecl>(D)) { in resolveKind()
878 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(*U); in LookupDirect()
3006 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember()
3007 dyn_cast<FunctionTemplateDecl>(Cand->getUnderlyingDecl())) { in LookupSpecialMember()
3198 if (FunctionTemplateDecl *FD = dyn_cast<FunctionTemplateDecl>(D)) { in LookupLiteralOperator()
3337 !isa<FunctionTemplateDecl>(Underlying)) in ArgumentDependentLookup()
4932 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate()
[all …]
H A DSemaTemplateInstantiateDecl.cpp281 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareSimdDeclAttr()
1470 FunctionTemplateDecl *InstTemplate in VisitFunctionTemplateDecl()
1783 Previous.addDecl(cast<FunctionTemplateDecl>(Temp)); in VisitFunctionDecl()
2094 Previous.addDecl(cast<FunctionTemplateDecl>(Temp)); in VisitCXXMethodDecl()
3730 if (FunctionTemplateDecl *FunTmpl in InitFunctionInstantiation()
3731 = dyn_cast<FunctionTemplateDecl>(ActiveInst.Entity)) { in InitFunctionInstantiation()
3818 Sema::InstantiateFunctionDeclaration(FunctionTemplateDecl *FTD, in InstantiateFunctionDeclaration()
4757 static bool isInstantiationOf(FunctionTemplateDecl *Pattern, in isInstantiationOf()
4758 FunctionTemplateDecl *Instance) { in isInstantiationOf()
4907 if (auto *Temp = dyn_cast<FunctionTemplateDecl>(Other)) in isInstantiationOf()
[all …]
H A DSemaOverload.cpp3425 FunctionTemplateDecl *ConvTemplate; in IsUserDefinedConversion()
4408 FunctionTemplateDecl *ConvTemplate in FindConversionForRefInit()
4409 = dyn_cast<FunctionTemplateDecl>(D); in FindConversionForRefInit()
5725 FunctionTemplateDecl *ConvTemplate; in collectViableConversionCandidates()
5825 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(D); in PerformContextualImplicitConversion()
6461 FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D); in AddFunctionCandidates()
6531 if (FunctionTemplateDecl *TD = dyn_cast<FunctionTemplateDecl>(Decl)) { in AddMethodCandidate()
7641 if (isa<FunctionTemplateDecl>(D)) in AddTypesConvertedFrom()
9643 if (FunctionTemplateDecl *FunTmpl = in NoteAllOverloadCandidates()
11679 if (FunctionTemplateDecl *FuncTemplate in AddOverloadedCallCandidate()
[all …]
H A DSemaTemplate.cpp238 if (isa<FunctionTemplateDecl>(TD)) { in isTemplateName()
1966 auto *GuideTemplate = FunctionTemplateDecl::Create( in buildDeductionGuide()
2022 auto *FTD = dyn_cast<FunctionTemplateDecl>(D); in DeclareImplicitDeductionGuides()
2044 cast<FunctionTemplateDecl>( in DeclareImplicitDeductionGuides()
2905 << (isa<FunctionTemplateDecl>(Template) in NoteAllFoundTemplates()
3150 if (!Template || isa<FunctionTemplateDecl>(Template) || in CheckTemplateIdType()
6706 assert(isa<FunctionTemplateDecl>(Template) && in CheckTemplateTemplateArgument()
7240 else if (isa<FunctionTemplateDecl>(Specialized)) in CheckTemplateSpecializationScope()
8059 if (!isa<FunctionTemplateDecl>(D)) { in CheckDependentFunctionTemplateSpecialization()
8127 if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(Ovl)) { in CheckFunctionTemplateSpecialization()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Core/
H A DClangForward.h65 class FunctionTemplateDecl; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp412 if (FunctionTemplateDecl *FunTmpl in ParseLexedMethodDeclaration()
413 = dyn_cast<FunctionTemplateDecl>(LM.Method)) in ParseLexedMethodDeclaration()
549 !isa<FunctionTemplateDecl>(LM.D) || in ParseLexedMethodDef()
550 cast<FunctionTemplateDecl>(LM.D)->getTemplateParameters()->getDepth() in ParseLexedMethodDef()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DMultiplexConsumer.cpp90 void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,
149 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DUSRGeneration.cpp89 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D);
225 if (FunctionTemplateDecl *FunTmpl = D->getDescribedFunctionTemplate()) { in VisitFunctionDecl()
366 void USRGenerator::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()

123