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