Lines Matching refs:FunctionTemplate
1487 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitFunctionDecl() local
1488 if (FunctionTemplate && !TemplateParams) { in VisitFunctionDecl()
1493 = FunctionTemplate->findSpecialization(Innermost, InsertPos); in VisitFunctionDecl()
1501 if (FunctionTemplate) in VisitFunctionDecl()
1502 isFriend = (FunctionTemplate->getFriendObjectKind() != Decl::FOK_None); in VisitFunctionDecl()
1590 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, DC, in VisitFunctionDecl()
1594 Function->setDescribedFunctionTemplate(FunctionTemplate); in VisitFunctionDecl()
1596 FunctionTemplate->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
1601 FunctionTemplate->setInstantiatedFromMemberTemplate( in VisitFunctionDecl()
1604 } else if (FunctionTemplate) { in VisitFunctionDecl()
1607 Function->setFunctionTemplateSpecialization(FunctionTemplate, in VisitFunctionDecl()
1663 } else if (TemplateParams || !FunctionTemplate) { in VisitFunctionDecl()
1681 ? cast<NamedDecl>(FunctionTemplate) in VisitFunctionDecl()
1760 FunctionTemplateDecl *FunctionTemplate = D->getDescribedFunctionTemplate(); in VisitCXXMethodDecl() local
1761 if (FunctionTemplate && !TemplateParams) { in VisitCXXMethodDecl()
1769 = FunctionTemplate->findSpecialization(Innermost, InsertPos); in VisitCXXMethodDecl()
1777 if (FunctionTemplate) in VisitCXXMethodDecl()
1778 isFriend = (FunctionTemplate->getFriendObjectKind() != Decl::FOK_None); in VisitCXXMethodDecl()
1885 FunctionTemplate = FunctionTemplateDecl::Create(SemaRef.Context, Record, in VisitCXXMethodDecl()
1890 FunctionTemplate->setLexicalDeclContext(Owner); in VisitCXXMethodDecl()
1891 FunctionTemplate->setObjectOfFriendDecl(); in VisitCXXMethodDecl()
1893 FunctionTemplate->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitCXXMethodDecl()
1894 Method->setDescribedFunctionTemplate(FunctionTemplate); in VisitCXXMethodDecl()
1895 } else if (FunctionTemplate) { in VisitCXXMethodDecl()
1898 Method->setFunctionTemplateSpecialization(FunctionTemplate, in VisitCXXMethodDecl()
1932 if (!FunctionTemplate || TemplateParams || isFriend) { in VisitCXXMethodDecl()
1956 if (FunctionTemplate) in VisitCXXMethodDecl()
1957 FunctionTemplate->setAccess(Method->getAccess()); in VisitCXXMethodDecl()
1968 if (FunctionTemplate) { in VisitCXXMethodDecl()