Lines Matching refs:FoundTemplate
5629 auto *FoundTemplate = dyn_cast<ClassTemplateDecl>(Found); in VisitClassTemplateDecl() local
5630 if (FoundTemplate) { in VisitClassTemplateDecl()
5631 if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D)) in VisitClassTemplateDecl()
5634 if (IsStructuralMatch(D, FoundTemplate)) { in VisitClassTemplateDecl()
5636 getTemplateDefinition(FoundTemplate); in VisitClassTemplateDecl()
5640 FoundByLookup = FoundTemplate; in VisitClassTemplateDecl()
5913 if (VarTemplateDecl *FoundTemplate = dyn_cast<VarTemplateDecl>(FoundDecl)) { in VisitVarTemplateDecl() local
5915 if (!hasSameVisibilityContextAndLinkage(FoundTemplate->getTemplatedDecl(), in VisitVarTemplateDecl()
5918 if (IsStructuralMatch(D, FoundTemplate)) { in VisitVarTemplateDecl()
5921 VarTemplateDecl *FoundDef = getTemplateDefinition(FoundTemplate); in VisitVarTemplateDecl()
5927 FoundByLookup = FoundTemplate; in VisitVarTemplateDecl()
6166 if (auto *FoundTemplate = dyn_cast<FunctionTemplateDecl>(FoundDecl)) { in VisitFunctionTemplateDecl() local
6167 if (!hasSameVisibilityContextAndLinkage(FoundTemplate, D)) in VisitFunctionTemplateDecl()
6169 if (IsStructuralMatch(D, FoundTemplate)) { in VisitFunctionTemplateDecl()
6171 getTemplateDefinition(FoundTemplate); in VisitFunctionTemplateDecl()
6175 FoundByLookup = FoundTemplate; in VisitFunctionTemplateDecl()