Lines Matching refs:FoundTemplate
6055 auto *FoundTemplate = dyn_cast<ClassTemplateDecl>(Found); in VisitClassTemplateDecl() local
6056 if (FoundTemplate) { in VisitClassTemplateDecl()
6057 if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D)) in VisitClassTemplateDecl()
6062 (FoundTemplate->getFriendObjectKind() != Decl::FOK_None) != in VisitClassTemplateDecl()
6064 if (IsStructuralMatch(D, FoundTemplate, /*Complain=*/true, in VisitClassTemplateDecl()
6066 if (DependentFriend || IsDependentFriend(FoundTemplate)) in VisitClassTemplateDecl()
6070 getTemplateDefinition(FoundTemplate); in VisitClassTemplateDecl()
6074 FoundByLookup = FoundTemplate; in VisitClassTemplateDecl()
6376 if (VarTemplateDecl *FoundTemplate = dyn_cast<VarTemplateDecl>(FoundDecl)) { in VisitVarTemplateDecl() local
6378 if (!hasSameVisibilityContextAndLinkage(FoundTemplate->getTemplatedDecl(), in VisitVarTemplateDecl()
6381 if (IsStructuralMatch(D, FoundTemplate)) { in VisitVarTemplateDecl()
6384 VarTemplateDecl *FoundDef = getTemplateDefinition(FoundTemplate); in VisitVarTemplateDecl()
6386 assert(FoundTemplate->getDeclContext()->isRecord() && in VisitVarTemplateDecl()
6392 return Importer.MapImported(D, FoundTemplate); in VisitVarTemplateDecl()
6397 FoundByLookup = FoundTemplate; in VisitVarTemplateDecl()
6653 if (auto *FoundTemplate = dyn_cast<FunctionTemplateDecl>(FoundDecl)) { in VisitFunctionTemplateDecl() local
6654 if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D)) in VisitFunctionTemplateDecl()
6656 if (IsStructuralMatch(D, FoundTemplate)) { in VisitFunctionTemplateDecl()
6658 getTemplateDefinition(FoundTemplate); in VisitFunctionTemplateDecl()
6662 FoundByLookup = FoundTemplate; in VisitFunctionTemplateDecl()