Lines Matching refs:PrevTemplate
7818 VarTemplateDecl *PrevTemplate = Previous.getAsSingle<VarTemplateDecl>(); in ActOnExplicitInstantiation() local
7820 if (!PrevTemplate) { in ActOnExplicitInstantiation()
7860 << PrevTemplate; in ActOnExplicitInstantiation()
7861 Diag(PrevTemplate->getLocation(), in ActOnExplicitInstantiation()
7868 if (PrevTemplate->isConcept()) { in ActOnExplicitInstantiation()
7871 Diag(PrevTemplate->getLocation(), diag::note_previous_declaration); in ActOnExplicitInstantiation()
7879 DeclResult Res = CheckVarTemplateId(PrevTemplate, TemplateLoc, in ActOnExplicitInstantiation()
7899 if (!ScopeSpecifierHasTemplateId(D.getCXXScopeSpec()) && !PrevTemplate) in ActOnExplicitInstantiation()
7919 if (PrevTemplate) { in ActOnExplicitInstantiation()
7929 if (PrevTemplate && Prev && !Context.hasSameType(Prev->getType(), R)) { in ActOnExplicitInstantiation()
7932 << 0 << PrevTemplate << R << Prev->getType(); in ActOnExplicitInstantiation()
7933 Diag(PrevTemplate->getLocation(), diag::note_template_declared_here) in ActOnExplicitInstantiation()
7934 << 2 << PrevTemplate->getDeclName(); in ActOnExplicitInstantiation()