Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DDeclTemplate.h30 class FunctionTemplateDecl; variable
291 FunctionTemplateDecl *Template, in FunctionTemplateSpecializationInfo()
304 Create(ASTContext &C, FunctionDecl *FD, FunctionTemplateDecl *Template,
318 llvm::PointerIntPair<FunctionTemplateDecl *, 2> Template;
332 FunctionTemplateDecl *getTemplate() const { return Template.getPointer(); } in getTemplate()
482 FunctionTemplateDecl * const *getTemplates() const { in getTemplates()
483 return reinterpret_cast<FunctionTemplateDecl*const*>(this+1); in getTemplates()
498 FunctionTemplateDecl *getTemplate(unsigned I) const { in getTemplate()
747 class FunctionTemplateDecl : public RedeclarableTemplateDecl {
777 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
[all …]
DASTLambda.h56 if (FunctionTemplateDecl *F = dyn_cast<FunctionTemplateDecl>(D)) in isLambdaConversionOperator()
DASTMutationListener.h25 class FunctionTemplateDecl; variable
65 virtual void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD, in AddedCXXTemplateSpecialization()
DDeclFriend.h138 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
/external/clang/lib/AST/
DDeclTemplate.cpp221 void FunctionTemplateDecl::DeallocateCommon(void *Ptr) { in DeallocateCommon()
225 FunctionTemplateDecl *FunctionTemplateDecl::Create(ASTContext &C, in Create()
232 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
235 FunctionTemplateDecl *FunctionTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
237 return new (C, ID) FunctionTemplateDecl(C, nullptr, SourceLocation(), in CreateDeserialized()
242 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
248 void FunctionTemplateDecl::LoadLazySpecializations() const { in LoadLazySpecializations()
260 FunctionTemplateDecl::getSpecializations() const { in getSpecializations()
266 FunctionTemplateDecl::findSpecialization(ArrayRef<TemplateArgument> Args, in findSpecialization()
271 void FunctionTemplateDecl::addSpecialization( in addSpecialization()
[all …]
DDeclFriend.cpp37 isa<FunctionTemplateDecl>(D) || in Create()
DDecl.cpp380 FunctionTemplateDecl *temp = specInfo->getTemplate(); in mergeTemplateLV()
1441 if (const FunctionTemplateDecl *FunctionTemplate in declarationReplaces()
1442 = dyn_cast<FunctionTemplateDecl>(this)) in declarationReplaces()
1443 if (const FunctionTemplateDecl *OldFunctionTemplate in declarationReplaces()
1444 = dyn_cast<FunctionTemplateDecl>(OldD)) in declarationReplaces()
2518 if (FunctionTemplateDecl *FunTmpl = getDescribedFunctionTemplate()) { in setPreviousDeclaration()
2519 FunctionTemplateDecl *PrevFunTmpl in setPreviousDeclaration()
2858 if (TemplateOrSpecialization.is<FunctionTemplateDecl *>()) in getTemplatedKind()
2967 if (FunctionTemplateDecl *Primary = getPrimaryTemplate()) { in getTemplateInstantiationPattern()
2982 FunctionTemplateDecl *FunctionDecl::getPrimaryTemplate() const { in getPrimaryTemplate()
[all …]
DComment.cpp190 const FunctionTemplateDecl *FTD = cast<FunctionTemplateDecl>(CommentDecl); in fill()
DDeclCXX.cpp436 FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D); in addedMember()
993 if (FunctionTemplateDecl *CallOpTmpl = in getLambdaCallOperator()
994 dyn_cast<FunctionTemplateDecl>(CallOp)) in getLambdaCallOperator()
1008 if (FunctionTemplateDecl *InvokerTemplate = in getLambdaStaticInvoker()
1009 dyn_cast<FunctionTemplateDecl>(InvokerFun)) in getLambdaStaticInvoker()
1037 if (FunctionTemplateDecl *Tmpl = CallOp->getDescribedFunctionTemplate()) in getGenericLambdaTemplateParameterList()
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h145 class FunctionTemplateDecl; variable
849 FunctionTemplateDecl *FunctionTemplate;
860 OverloadCandidate(FunctionTemplateDecl *FunctionTemplateDecl)
861 : Kind(CK_FunctionTemplate), FunctionTemplate(FunctionTemplateDecl) { }
874 FunctionTemplateDecl *getFunctionTemplate() const {
/external/clang/lib/Sema/
DSemaLambda.cpp402 FunctionTemplateDecl *const TemplateMethod = TemplateParams ? in startLambdaDefinition()
403 FunctionTemplateDecl::Create(Context, Class, in startLambdaDefinition()
1277 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1279 FunctionTemplateDecl *ConversionTemplate = in addFunctionPointerConversion()
1280 FunctionTemplateDecl::Create(S.Context, Class, in addFunctionPointerConversion()
1319 FunctionTemplateDecl *TemplateCallOperator = in addFunctionPointerConversion()
1321 FunctionTemplateDecl *StaticInvokerTemplate = FunctionTemplateDecl::Create( in addFunctionPointerConversion()
DSemaTemplateDeduction.cpp2507 FunctionTemplateDecl *FunctionTemplate, in SubstituteExplicitTemplateArguments()
2781 Sema::FinishTemplateArgumentDeduction(FunctionTemplateDecl *FunctionTemplate, in FinishTemplateArgumentDeduction()
3069 if (FunctionTemplateDecl *FunTmpl = dyn_cast<FunctionTemplateDecl>(D)) { in ResolveOverloadForDeduction()
3235 FunctionTemplateDecl *FunctionTemplate,
3298 FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
3543 Sema::DeduceTemplateArguments(FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
3668 FunctionTemplateDecl *CallOpTemplate = in SpecializeCorrespondingLambdaCallOperatorAndInvoker()
3698 FunctionTemplateDecl *InvokerTemplate = LambdaClass-> in SpecializeCorrespondingLambdaCallOperatorAndInvoker()
3743 Sema::DeduceTemplateArguments(FunctionTemplateDecl *ConversionTemplate, in DeduceTemplateArguments()
3895 Sema::DeduceTemplateArguments(FunctionTemplateDecl *FunctionTemplate, in DeduceTemplateArguments()
[all …]
DSemaAccess.cpp394 FunctionTemplateDecl *Context, in MightInstantiateTo()
395 FunctionTemplateDecl *Friend) { in MightInstantiateTo()
512 FunctionTemplateDecl *Friend) { in MatchesFriend()
520 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend()
559 if (isa<FunctionTemplateDecl>(Friend)) in MatchesFriend()
560 return MatchesFriend(S, EC, cast<FunctionTemplateDecl>(Friend)); in MatchesFriend()
1074 (isa<FunctionTemplateDecl>(D) && in TryDiagnoseProtectedAccess()
1076 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
DSemaOverload.cpp942 if (!isa<FunctionTemplateDecl>(OldD) && in CheckOverload()
981 FunctionTemplateDecl *OldTemplate = Old->getDescribedFunctionTemplate(); in IsOverload()
982 FunctionTemplateDecl *NewTemplate = New->getDescribedFunctionTemplate(); in IsOverload()
2955 FunctionTemplateDecl *ConstructorTmpl in IsInitializerListConstructorConversion()
2956 = dyn_cast<FunctionTemplateDecl>(D); in IsInitializerListConstructorConversion()
3090 FunctionTemplateDecl *ConstructorTmpl in IsUserDefinedConversion()
3091 = dyn_cast<FunctionTemplateDecl>(D); in IsUserDefinedConversion()
3151 FunctionTemplateDecl *ConvTemplate; in IsUserDefinedConversion()
3152 if ((ConvTemplate = dyn_cast<FunctionTemplateDecl>(D))) in IsUserDefinedConversion()
4089 FunctionTemplateDecl *ConvTemplate in FindConversionForRefInit()
[all …]
DSemaLookup.cpp322 isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl()))); in sanity()
367 if (isa<FunctionTemplateDecl>(D)) in resolveKind()
429 } else if (isa<FunctionTemplateDecl>(D)) { in resolveKind()
702 FunctionTemplateDecl *ConvTemplate = dyn_cast<FunctionTemplateDecl>(*U); in LookupDirect()
2504 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember()
2505 dyn_cast<FunctionTemplateDecl>(Cand)) { in LookupSpecialMember()
2693 if (FunctionTemplateDecl *FD = dyn_cast<FunctionTemplateDecl>(D)) { in LookupLiteralOperator()
2850 if (!isa<FunctionDecl>(D) && !isa<FunctionTemplateDecl>(D)) in ArgumentDependentLookup()
4461 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate()
4498 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ValidateCandidate()
DSemaTemplateInstantiate.cpp149 } else if (FunctionTemplateDecl *FunTmpl in getTemplateInstantiationArgs()
262 FunctionTemplateDecl *FunctionTemplate, in InstantiatingTemplate()
477 FunctionTemplateDecl *FnTmpl = cast<FunctionTemplateDecl>(Active->Entity); in PrintInstantiationStack()
500 FunctionTemplateDecl *FnTmpl in PrintInstantiationStack()
501 = cast<FunctionTemplateDecl>(Active->Entity); in PrintInstantiationStack()
833 if (FunctionTemplateDecl *const NewCallOperatorTemplate = in TransformLambdaScope()
836 FunctionTemplateDecl *const OldCallOperatorTemplate = in TransformLambdaScope()
DSemaTemplateInstantiateDecl.cpp1086 TemplateDeclInstantiator::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
1112 FunctionTemplateDecl *InstTemplate in VisitFunctionTemplateDecl()
1227 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitFunctionDecl()
1330 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, DC, in VisitFunctionDecl()
1394 Previous.addDecl(cast<FunctionTemplateDecl>(Temp)); in VisitFunctionDecl()
1501 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitCXXMethodDecl()
1656 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, Record, in VisitCXXMethodDecl()
3202 if (FunctionTemplateDecl *FunTmpl in InitFunctionInstantiation()
3203 = dyn_cast<FunctionTemplateDecl>(ActiveInst.Entity)) { in InitFunctionInstantiation()
4166 static bool isInstantiationOf(FunctionTemplateDecl *Pattern, in isInstantiationOf()
[all …]
/external/lldb/include/lldb/Symbol/
DClangASTContext.h266 clang::FunctionTemplateDecl *
274 clang::FunctionTemplateDecl *Template,
/external/lldb/include/lldb/Core/
DClangForward.h70 class FunctionTemplateDecl; variable
/external/clang/lib/Frontend/
DASTConsumers.cpp446 FunctionTemplateDecl* FTD = cast<FunctionTemplateDecl>(I); in PrintDeclContext()
DMultiplexConsumer.cpp99 void AddedCXXTemplateSpecialization(const FunctionTemplateDecl *TD,
147 const FunctionTemplateDecl *TD, const FunctionDecl *D) { in AddedCXXTemplateSpecialization()
/external/clang/lib/Index/
DUSRGeneration.cpp81 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D);
201 if (FunctionTemplateDecl *FunTmpl = D->getDescribedFunctionTemplate()) { in VisitFunctionDecl()
296 void USRGenerator::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) { in VisitFunctionTemplateDecl()
/external/clang/tools/libclang/
DIndexingContext.cpp640 bool IndexingContext::handleFunctionTemplate(const FunctionTemplateDecl *D) { in handleFunctionTemplate()
825 if (FunctionTemplateDecl *TemplD = FD->getDescribedFunctionTemplate()) in getEntityDecl()
843 } else if (const FunctionTemplateDecl * in getEntityContainer()
844 FuncTempl = dyn_cast<FunctionTemplateDecl>(D)) { in getEntityContainer()
1055 cast<FunctionTemplateDecl>(D)->getTemplatedDecl())) { in getEntityInfo()
DIndexingContext.h22 class FunctionTemplateDecl; variable
428 bool handleFunctionTemplate(const FunctionTemplateDecl *D);
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp113 else if (const FunctionTemplateDecl *FunTmpl in getBody()
114 = dyn_cast_or_null<FunctionTemplateDecl>(D)) in getBody()

123