Lines Matching refs:NewParam
501 ParmVarDecl *NewParam = New->getParamDecl(p);
504 bool NewParamHasDfl = NewParam->hasDefaultArg();
517 NewParam->setHasInheritedDefaultArg();
519 NewParam->setUninstantiatedDefaultArg(
522 NewParam->setDefaultArg(OldParam->getInit());
530 // for NewParam to find the last source location in the type... but it
536 Diag(NewParam->getLocation(), DiagDefaultParamID)
537 << NewParam->getDefaultArgRange();
553 NewParam->setHasInheritedDefaultArg();
555 NewParam->setUnparsedDefaultArg();
557 NewParam->setUninstantiatedDefaultArg(
560 NewParam->setDefaultArg(OldParam->getInit());
564 Diag(NewParam->getLocation(),
566 << NewParam->getDefaultArgRange();
582 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
585 << NewParam->getDefaultArgRange();
607 Diag(NewParam->getLocation(),
610 << NewParam->getDefaultArgRange();
623 ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments());
624 assert(NewParam->hasDefaultArg());
625 Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special)
626 << NewParam->getDefaultArgRange() << NewSM;