Lines Matching refs:PatternDecl
3291 const FunctionDecl *PatternDecl, in addInstantiatedParametersToScope() argument
3295 for (unsigned I = 0, N = PatternDecl->getNumParams(); I != N; ++I) { in addInstantiatedParametersToScope()
3296 const ParmVarDecl *PatternParam = PatternDecl->getParamDecl(I); in addInstantiatedParametersToScope()
3308 if (!PatternDecl->getType()->isDependentType()) { in addInstantiatedParametersToScope()
3333 if (!PatternDecl->getType()->isDependentType()) { in addInstantiatedParametersToScope()
3519 const FunctionDecl *PatternDecl = Function->getTemplateInstantiationPattern(); in InstantiateFunctionDefinition() local
3520 assert(PatternDecl && "instantiating a non-template"); in InstantiateFunctionDefinition()
3522 Stmt *Pattern = PatternDecl->getBody(PatternDecl); in InstantiateFunctionDefinition()
3523 assert(PatternDecl && "template definition is not a template"); in InstantiateFunctionDefinition()
3526 PatternDecl->isDefined(PatternDecl); in InstantiateFunctionDefinition()
3528 assert(PatternDecl && "template definition is not a template"); in InstantiateFunctionDefinition()
3531 if (PatternDecl->isLateTemplateParsed() && in InstantiateFunctionDefinition()
3550 if (!Pattern && PatternDecl->isLateTemplateParsed() && in InstantiateFunctionDefinition()
3553 if (PatternDecl->isFromASTFile()) in InstantiateFunctionDefinition()
3556 LateParsedTemplate *LPT = LateParsedTemplateMap.lookup(PatternDecl); in InstantiateFunctionDefinition()
3559 Pattern = PatternDecl->getBody(PatternDecl); in InstantiateFunctionDefinition()
3566 if (!Pattern && !PatternDecl->isDefaulted()) { in InstantiateFunctionDefinition()
3577 if (PatternDecl) in InstantiateFunctionDefinition()
3578 Diag(PatternDecl->getLocation(), in InstantiateFunctionDefinition()
3591 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl); in InstantiateFunctionDefinition()
3608 !PatternDecl->isInlined() && in InstantiateFunctionDefinition()
3609 !PatternDecl->getReturnType()->getContainedAutoType()) in InstantiateFunctionDefinition()
3612 if (PatternDecl->isInlined()) { in InstantiateFunctionDefinition()
3630 Function->setInnerLocStart(PatternDecl->getInnerLocStart()); in InstantiateFunctionDefinition()
3645 if (PatternDecl->isDefaulted()) in InstantiateFunctionDefinition()
3646 SetDeclDefaulted(Function, PatternDecl->getLocation()); in InstantiateFunctionDefinition()
3649 getTemplateInstantiationArgs(Function, nullptr, false, PatternDecl); in InstantiateFunctionDefinition()
3655 SubstQualifier(*this, PatternDecl, Function, TemplateArgs); in InstantiateFunctionDefinition()
3663 if (addInstantiatedParametersToScope(*this, Function, PatternDecl, Scope, in InstantiateFunctionDefinition()
3669 dyn_cast<CXXConstructorDecl>(PatternDecl)) { in InstantiateFunctionDefinition()
3683 PerformDependentDiagnostics(PatternDecl, TemplateArgs); in InstantiateFunctionDefinition()
3762 VarTemplateSpecializationDecl *VarSpec, VarDecl *PatternDecl, in CompleteVarTemplateSpecializationDecl() argument
3767 SubstType(PatternDecl->getTypeSourceInfo(), TemplateArgs, in CompleteVarTemplateSpecializationDecl()
3768 PatternDecl->getTypeSpecStartLoc(), PatternDecl->getDeclName()); in CompleteVarTemplateSpecializationDecl()
3776 InstantiateVariableInitializer(VarSpec, PatternDecl, TemplateArgs); in CompleteVarTemplateSpecializationDecl()
3964 VarDecl *PatternDecl = nullptr, *Def = nullptr; in InstantiateVariableDefinition() local
3996 PatternDecl = Tmpl; in InstantiateVariableDefinition()
4006 PatternDecl = Tmpl->getTemplatedDecl(); in InstantiateVariableDefinition()
4012 if (PatternDecl->isStaticDataMember() && in InstantiateVariableDefinition()
4013 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
4034 InstantiateVariableInitializer(Var, PatternDecl, TemplateArgs); in InstantiateVariableDefinition()
4060 Def = PatternDecl->getDefinition(getASTContext()); in InstantiateVariableDefinition()
4064 PatternDecl = Var->getInstantiatedFromStaticDataMember(); in InstantiateVariableDefinition()
4066 assert(PatternDecl && "data member was not instantiated from a template?"); in InstantiateVariableDefinition()
4067 assert(PatternDecl->isStaticDataMember() && "not a static data member?"); in InstantiateVariableDefinition()
4068 Def = PatternDecl->getDefinition(); in InstantiateVariableDefinition()
4088 Diag(PatternDecl->getLocation(), in InstantiateVariableDefinition()
4102 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl); in InstantiateVariableDefinition()