Home | History | Annotate | Download | only in Sema

Lines Matching full:newparam

385     ParmVarDecl *NewParam = New->getParamDecl(p);
387 if (OldParam->hasDefaultArg() && NewParam->hasDefaultArg()) {
399 NewParam->setHasInheritedDefaultArg();
401 NewParam->setUninstantiatedDefaultArg(
404 NewParam->setDefaultArg(OldParam->getInit());
412 // for NewParam to find the last source location in the type... but it
418 Diag(NewParam->getLocation(), DiagDefaultParamID)
419 << NewParam->getDefaultArgRange();
437 NewParam->setHasInheritedDefaultArg();
439 NewParam->setUninstantiatedDefaultArg(
442 NewParam->setDefaultArg(OldParam->getInit());
443 } else if (NewParam->hasDefaultArg()) {
446 Diag(NewParam->getLocation(),
448 << NewParam->getDefaultArgRange();
463 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
466 << NewParam->getDefaultArgRange();
488 Diag(NewParam->getLocation(),
491 << NewParam->getDefaultArgRange();
496 Diag(NewParam->getLocation(),diag::warn_default_arg_makes_ctor_special)
497 << NewParam->getDefaultArgRange() << NewSM;