Lines Matching refs:OldParm

804     ParmVarDecl *TransformFunctionTypeParam(ParmVarDecl *OldParm,
1317 TemplateInstantiator::TransformFunctionTypeParam(ParmVarDecl *OldParm, in TransformFunctionTypeParam() argument
1321 return SemaRef.SubstParmVarDecl(OldParm, TemplateArgs, indexAdjustment, in TransformFunctionTypeParam()
1612 ParmVarDecl *Sema::SubstParmVarDecl(ParmVarDecl *OldParm, in SubstParmVarDecl() argument
1617 TypeSourceInfo *OldDI = OldParm->getTypeSourceInfo(); in SubstParmVarDecl()
1626 OldParm->getLocation(), OldParm->getDeclName()); in SubstParmVarDecl()
1641 Diag(OldParm->getLocation(), in SubstParmVarDecl()
1647 NewDI = SubstType(OldDI, TemplateArgs, OldParm->getLocation(), in SubstParmVarDecl()
1648 OldParm->getDeclName()); in SubstParmVarDecl()
1655 Diag(OldParm->getLocation(), diag::err_param_with_void_type); in SubstParmVarDecl()
1660 OldParm->getInnerLocStart(), in SubstParmVarDecl()
1661 OldParm->getLocation(), in SubstParmVarDecl()
1662 OldParm->getIdentifier(), in SubstParmVarDecl()
1664 OldParm->getStorageClass()); in SubstParmVarDecl()
1669 if (OldParm->hasUninstantiatedDefaultArg()) { in SubstParmVarDecl()
1670 Expr *Arg = OldParm->getUninstantiatedDefaultArg(); in SubstParmVarDecl()
1672 } else if (OldParm->hasUnparsedDefaultArg()) { in SubstParmVarDecl()
1674 UnparsedDefaultArgInstantiations[OldParm].push_back(NewParm); in SubstParmVarDecl()
1675 } else if (Expr *Arg = OldParm->getDefaultArg()) { in SubstParmVarDecl()
1676 FunctionDecl *OwningFunc = cast<FunctionDecl>(OldParm->getDeclContext()); in SubstParmVarDecl()
1696 NewParm->setHasInheritedDefaultArg(OldParm->hasInheritedDefaultArg()); in SubstParmVarDecl()
1698 if (OldParm->isParameterPack() && !NewParm->isParameterPack()) { in SubstParmVarDecl()
1700 CurrentInstantiationScope->InstantiatedLocalPackArg(OldParm, NewParm); in SubstParmVarDecl()
1703 CurrentInstantiationScope->InstantiatedLocal(OldParm, NewParm); in SubstParmVarDecl()
1710 NewParm->setScopeInfo(OldParm->getFunctionScopeDepth(), in SubstParmVarDecl()
1711 OldParm->getFunctionScopeIndex() + indexAdjustment); in SubstParmVarDecl()
1713 InstantiateAttrs(TemplateArgs, OldParm, NewParm); in SubstParmVarDecl()