Lines Matching refs:NewParam
416 ParmVarDecl *NewParam = New->getParamDecl(p);
419 bool NewParamHasDfl = NewParam->hasDefaultArg();
439 NewParam->setHasInheritedDefaultArg();
441 NewParam->setUninstantiatedDefaultArg(
444 NewParam->setDefaultArg(OldParam->getInit());
452 // for NewParam to find the last source location in the type... but it
458 Diag(NewParam->getLocation(), DiagDefaultParamID)
459 << NewParam->getDefaultArgRange();
477 NewParam->setHasInheritedDefaultArg();
479 NewParam->setUninstantiatedDefaultArg(
482 NewParam->setDefaultArg(OldParam->getInit());
486 Diag(NewParam->getLocation(),
488 << NewParam->getDefaultArgRange();
503 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
506 << NewParam->getDefaultArgRange();
528 Diag(NewParam->getLocation(),
531 << NewParam->getDefaultArgRange();
544 ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments());
545 assert(NewParam->hasDefaultArg());
546 Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special)
547 << NewParam->getDefaultArgRange() << NewSM;