Home | History | Annotate | Download | only in Sema

Lines Matching refs:Function

43 /// dealing with a specialization. This is only relevant for function
49 /// friend function template specializations.
98 // Add template arguments from a function template specialization.
99 else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(Ctx)) {
101 (Function->getTemplateSpecializationKind() ==
103 !Function->getClassScopeSpecializationPattern()))
107 = Function->getTemplateSpecializationArgs()) {
111 // If this function was instantiated from a specialized member that is
112 // a function template, we're done.
113 assert(Function->getPrimaryTemplate() && "No function template?");
114 if (Function->getPrimaryTemplate()->isMemberSpecialization())
117 = Function->getDescribedFunctionTemplate()) {
128 if (Function->getFriendObjectKind() &&
129 Function->getDeclContext()->isFileContext() &&
131 Ctx = Function->getLexicalDeclContext();
458 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
460 if (Function->getPrimaryTemplate())
465 << Function
828 // template arguments in a function template, but there were some
973 // template arguments in a function template, but there were some
1032 assert(currentDecl && "Must have current function declaration when "
1053 // template arguments in a function template, but there were some
1189 // We need a local instantiation scope for this function prototype.
1212 // template arguments in a function template class, but there were some
1326 /// unnamed function parameter).
1461 // We have a function parameter pack. Substitute into the pattern of the
1470 // our function parameter is still a function parameter pack.
2048 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(*D)) {
2050 = Function->getInstantiatedFromMemberFunction()) {
2052 = Function->getMemberSpecializationInfo();
2059 Function,
2066 if (Function->isDefined())
2079 Function->setTemplateSpecializationKind(TSK, PointOfInstantiation);
2081 InstantiateFunctionDefinition(PointOfInstantiation, Function);
2083 Function->setTemplateSpecializationKind(TSK, PointOfInstantiation);