Lines Matching defs:NewParam
441 ParmVarDecl *NewParam = New->getParamDecl(p);
444 bool NewParamHasDfl = NewParam->hasDefaultArg();
473 NewParam->setHasInheritedDefaultArg();
475 NewParam->setUninstantiatedDefaultArg(
478 NewParam->setDefaultArg(OldParam->getInit());
486 // for NewParam to find the last source location in the type... but it
492 Diag(NewParam->getLocation(), DiagDefaultParamID)
493 << NewParam->getDefaultArgRange();
511 NewParam->setHasInheritedDefaultArg();
513 NewParam->setUninstantiatedDefaultArg(
516 NewParam->setDefaultArg(OldParam->getInit());
520 Diag(NewParam->getLocation(),
522 << NewParam->getDefaultArgRange();
537 Diag(NewParam->getLocation(), diag::err_template_spec_default_arg)
540 << NewParam->getDefaultArgRange();
562 Diag(NewParam->getLocation(),
565 << NewParam->getDefaultArgRange();
578 ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments());
579 assert(NewParam->hasDefaultArg());
580 Diag(NewParam->getLocation(), diag::err_default_arg_makes_ctor_special)
581 << NewParam->getDefaultArgRange() << NewSM;