Lines Matching refs:OldParm
829 ParmVarDecl *TransformFunctionTypeParam(ParmVarDecl *OldParm,
1262 TemplateInstantiator::TransformFunctionTypeParam(ParmVarDecl *OldParm,
1266 return SemaRef.SubstParmVarDecl(OldParm, TemplateArgs, indexAdjustment,
1527 ParmVarDecl *Sema::SubstParmVarDecl(ParmVarDecl *OldParm,
1532 TypeSourceInfo *OldDI = OldParm->getTypeSourceInfo();
1542 OldParm->getLocation(), OldParm->getDeclName());
1557 Diag(OldParm->getLocation(),
1563 NewDI = SubstType(OldDI, TemplateArgs, OldParm->getLocation(),
1564 OldParm->getDeclName());
1571 Diag(OldParm->getLocation(), diag::err_param_with_void_type);
1576 OldParm->getInnerLocStart(),
1577 OldParm->getLocation(),
1578 OldParm->getIdentifier(),
1580 OldParm->getStorageClass(),
1581 OldParm->getStorageClassAsWritten());
1586 if (OldParm->hasUninstantiatedDefaultArg()) {
1587 Expr *Arg = OldParm->getUninstantiatedDefaultArg();
1589 } else if (OldParm->hasUnparsedDefaultArg()) {
1591 UnparsedDefaultArgInstantiations[OldParm].push_back(NewParm);
1592 } else if (Expr *Arg = OldParm->getDefaultArg())
1595 NewParm->setHasInheritedDefaultArg(OldParm->hasInheritedDefaultArg());
1597 if (OldParm->isParameterPack() && !NewParm->isParameterPack()) {
1599 CurrentInstantiationScope->InstantiatedLocalPackArg(OldParm, NewParm);
1602 CurrentInstantiationScope->InstantiatedLocal(OldParm, NewParm);
1605 // FIXME: OldParm may come from a FunctionProtoType, in which case CurContext
1609 NewParm->setScopeInfo(OldParm->getFunctionScopeDepth(),
1610 OldParm->getFunctionScopeIndex() + indexAdjustment);