• Home
  • Raw
  • Download

Lines Matching refs:PatternDecl

4232                                              const FunctionDecl *PatternDecl,  in addInstantiatedParametersToScope()  argument
4236 for (unsigned I = 0, N = PatternDecl->getNumParams(); I != N; ++I) { in addInstantiatedParametersToScope()
4237 const ParmVarDecl *PatternParam = PatternDecl->getParamDecl(I); in addInstantiatedParametersToScope()
4249 if (!PatternDecl->getType()->isDependentType()) { in addInstantiatedParametersToScope()
4273 if (!PatternDecl->getType()->isDependentType()) { in addInstantiatedParametersToScope()
4678 const FunctionDecl *PatternDecl = Function->getTemplateInstantiationPattern(); in InstantiateFunctionDefinition() local
4679 assert(PatternDecl && "instantiating a non-template"); in InstantiateFunctionDefinition()
4681 const FunctionDecl *PatternDef = PatternDecl->getDefinition(); in InstantiateFunctionDefinition()
4685 PatternDecl = PatternDef; in InstantiateFunctionDefinition()
4694 PatternDecl, PatternDef, TSK, in InstantiateFunctionDefinition()
4707 !getSourceManager().isInSystemHeader(PatternDecl->getBeginLoc())) { in InstantiateFunctionDefinition()
4710 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl); in InstantiateFunctionDefinition()
4721 if (PatternDecl->isLateTemplateParsed() && in InstantiateFunctionDefinition()
4748 if (!Pattern && PatternDecl->isLateTemplateParsed() && in InstantiateFunctionDefinition()
4751 if (PatternDecl->isFromASTFile()) in InstantiateFunctionDefinition()
4754 auto LPTIter = LateParsedTemplateMap.find(PatternDecl); in InstantiateFunctionDefinition()
4758 Pattern = PatternDecl->getBody(PatternDecl); in InstantiateFunctionDefinition()
4762 assert((Pattern || PatternDecl->isDefaulted() || in InstantiateFunctionDefinition()
4763 PatternDecl->hasSkippedBody()) && in InstantiateFunctionDefinition()
4772 !PatternDecl->isInlined() && in InstantiateFunctionDefinition()
4773 !PatternDecl->getReturnType()->getContainedAutoType()) in InstantiateFunctionDefinition()
4776 if (PatternDecl->isInlined()) { in InstantiateFunctionDefinition()
4798 Function->setInnerLocStart(PatternDecl->getInnerLocStart()); in InstantiateFunctionDefinition()
4813 if (PatternDecl->isDefaulted()) in InstantiateFunctionDefinition()
4814 SetDeclDefaulted(Function, PatternDecl->getLocation()); in InstantiateFunctionDefinition()
4817 getTemplateInstantiationArgs(Function, nullptr, false, PatternDecl); in InstantiateFunctionDefinition()
4823 SubstQualifier(*this, PatternDecl, Function, TemplateArgs); in InstantiateFunctionDefinition()
4831 if (addInstantiatedParametersToScope(*this, Function, PatternDecl, Scope, in InstantiateFunctionDefinition()
4836 if (PatternDecl->hasSkippedBody()) { in InstantiateFunctionDefinition()
4842 InstantiateMemInitializers(Ctor, cast<CXXConstructorDecl>(PatternDecl), in InstantiateFunctionDefinition()
4863 PerformDependentDiagnostics(PatternDecl, TemplateArgs); in InstantiateFunctionDefinition()
4931 VarTemplateSpecializationDecl *VarSpec, VarDecl *PatternDecl, in CompleteVarTemplateSpecializationDecl() argument
4933 assert(PatternDecl->isThisDeclarationADefinition() && in CompleteVarTemplateSpecializationDecl()
4938 SubstType(PatternDecl->getTypeSourceInfo(), TemplateArgs, in CompleteVarTemplateSpecializationDecl()
4939 PatternDecl->getTypeSpecStartLoc(), PatternDecl->getDeclName()); in CompleteVarTemplateSpecializationDecl()
4950 InstantiateVariableInitializer(VarSpec, PatternDecl, TemplateArgs); in CompleteVarTemplateSpecializationDecl()
5189 VarDecl *PatternDecl = Var->getTemplateInstantiationPattern(); in InstantiateVariableDefinition() local
5190 assert(PatternDecl && "no pattern for templated variable"); in InstantiateVariableDefinition()
5205 if (PatternDecl->isStaticDataMember() && in InstantiateVariableDefinition()
5206 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5231 InstantiateVariableInitializer(Var, PatternDecl, TemplateArgs); in InstantiateVariableDefinition()
5241 assert(Var->isStaticDataMember() && PatternDecl->isStaticDataMember() && in InstantiateVariableDefinition()
5245 VarDecl *Def = PatternDecl->getDefinition(getASTContext()); in InstantiateVariableDefinition()
5258 !getSourceManager().isInSystemHeader(PatternDecl->getBeginLoc())) { in InstantiateVariableDefinition()
5261 Diag(PatternDecl->getLocation(), diag::note_forward_template_decl); in InstantiateVariableDefinition()
5274 PatternDecl, Def, TSK, in InstantiateVariableDefinition()