• Home
  • Raw
  • Download

Lines Matching refs:Entity

238     Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs,  in InstantiatingTemplate()  argument
254 Inst.Entity = Entity; in InstantiatingTemplate()
262 AlreadyInstantiating = !Inst.Entity ? false : in InstantiatingTemplate()
264 .insert(std::make_pair(Inst.Entity->getCanonicalDecl(), Inst.Kind)) in InstantiatingTemplate()
271 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, in InstantiatingTemplate() argument
275 PointOfInstantiation, InstantiationRange, Entity) {} in InstantiatingTemplate()
278 Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity, in InstantiatingTemplate() argument
282 PointOfInstantiation, InstantiationRange, Entity) {} in InstantiatingTemplate()
481 if (Active.Entity) in Clear()
483 std::make_pair(Active.Entity, Active.Kind)); in Clear()
544 Decl *D = Active->Entity; in PrintInstantiationStack()
600 FunctionTemplateDecl *FnTmpl = cast<FunctionTemplateDecl>(Active->Entity); in PrintInstantiationStack()
613 dyn_cast<FunctionTemplateDecl>(Active->Entity)) { in PrintInstantiationStack()
622 bool IsVar = isa<VarTemplateDecl>(Active->Entity) || in PrintInstantiationStack()
623 isa<VarTemplateSpecializationDecl>(Active->Entity); in PrintInstantiationStack()
626 if (auto *D = dyn_cast<TemplateDecl>(Active->Entity)) { in PrintInstantiationStack()
630 Active->Entity)) { in PrintInstantiationStack()
633 Active->Entity)) { in PrintInstantiationStack()
641 << IsVar << IsTemplate << cast<NamedDecl>(Active->Entity) in PrintInstantiationStack()
650 ParmVarDecl *Param = cast<ParmVarDecl>(Active->Entity); in PrintInstantiationStack()
666 NamedDecl *Parm = cast<NamedDecl>(Active->Entity); in PrintInstantiationStack()
710 << cast<FunctionDecl>(Active->Entity); in PrintInstantiationStack()
716 << cast<FunctionDecl>(Active->Entity) in PrintInstantiationStack()
735 << cast<CXXRecordDecl>(Active->Entity) << Active->SpecialMember; in PrintInstantiationStack()
739 Diags.Report(Active->Entity->getLocation(), in PrintInstantiationStack()
746 auto *FD = dyn_cast<FunctionDecl>(Active->Entity); in PrintInstantiationStack()
766 Diags.Report(Active->Entity->getLocation(), in PrintInstantiationStack()
773 << cast<BindingDecl>(Active->Entity); in PrintInstantiationStack()
779 << cast<CXXRecordDecl>(Active->Entity) << !getLangOpts().CPlusPlus11; in PrintInstantiationStack()
787 if (!Active->Entity) { in PrintInstantiationStack()
793 if (isa<ConceptDecl>(Active->Entity)) in PrintInstantiationStack()
795 else if (isa<TemplateDecl>(Active->Entity)) in PrintInstantiationStack()
797 else if (isa<VarTemplatePartialSpecializationDecl>(Active->Entity)) in PrintInstantiationStack()
799 else if (isa<ClassTemplatePartialSpecializationDecl>(Active->Entity)) in PrintInstantiationStack()
802 assert(isa<FunctionDecl>(Active->Entity)); in PrintInstantiationStack()
807 cast<NamedDecl>(Active->Entity)->printName(OS); in PrintInstantiationStack()
808 if (!isa<FunctionDecl>(Active->Entity)) in PrintInstantiationStack()
823 << cast<NamedDecl>(Active->Entity)->getName() in PrintInstantiationStack()
849 if (isa<TypeAliasTemplateDecl>(Active->Entity)) in isSFINAEContext()
915 DeclarationName Entity; member in __anond5b10c8c0111::TemplateInstantiator
923 DeclarationName Entity) in TemplateInstantiator() argument
925 Entity(Entity) { } in TemplateInstantiator()
938 DeclarationName getBaseEntity() { return Entity; } in getBaseEntity()
942 void setBase(SourceLocation Loc, DeclarationName Entity) { in setBase() argument
944 this->Entity = Entity; in setBase()
1891 SmallString<128> Entity; in createSubstDiag() local
1892 llvm::raw_svector_ostream OS(Entity); in createSubstDiag()
1894 char *EntityBuf = new (S.Context) char[Entity.size()]; in createSubstDiag()
1895 std::copy(Entity.begin(), Entity.end(), EntityBuf); in createSubstDiag()
1897 StringRef(EntityBuf, Entity.size()), ErrorLoc, in createSubstDiag()
2065 DeclarationName Entity, in SubstType() argument
2075 TemplateInstantiator Instantiator(*this, Args, Loc, Entity); in SubstType()
2083 DeclarationName Entity) { in SubstType() argument
2100 TemplateInstantiator Instantiator(*this, Args, Loc, Entity); in SubstType()
2113 SourceLocation Loc, DeclarationName Entity) { in SubstType() argument
2123 TemplateInstantiator Instantiator(*this, TemplateArgs, Loc, Entity); in SubstType()
2156 DeclarationName Entity, in SubstFunctionDeclType() argument
2166 TemplateInstantiator Instantiator(*this, Args, Loc, Entity); in SubstFunctionDeclType()