Lines Matching refs:Param
83 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(Decl)) { in VisitDeclRefExpr() local
94 << Param->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr()
231 Sema::SetParamDefaultArgument(ParmVarDecl *Param, Expr *Arg, in SetParamDefaultArgument() argument
233 if (RequireCompleteType(Param->getLocation(), Param->getType(), in SetParamDefaultArgument()
235 Param->setInvalidDecl(); in SetParamDefaultArgument()
246 Param); in SetParamDefaultArgument()
247 InitializationKind Kind = InitializationKind::CreateCopy(Param->getLocation(), in SetParamDefaultArgument()
259 Param->setDefaultArg(Arg); in SetParamDefaultArgument()
264 = UnparsedDefaultArgInstantiations.find(Param); in SetParamDefaultArgument()
285 ParmVarDecl *Param = cast<ParmVarDecl>(param); in ActOnParamDefaultArgument() local
286 UnparsedDefaultArgLocs.erase(Param); in ActOnParamDefaultArgument()
292 Param->setInvalidDecl(); in ActOnParamDefaultArgument()
298 Param->setInvalidDecl(); in ActOnParamDefaultArgument()
305 Param->setInvalidDecl(); in ActOnParamDefaultArgument()
309 SetParamDefaultArgument(Param, DefaultArg, EqualLoc); in ActOnParamDefaultArgument()
322 ParmVarDecl *Param = cast<ParmVarDecl>(param); in ActOnParamUnparsedDefaultArgument() local
323 if (Param) in ActOnParamUnparsedDefaultArgument()
324 Param->setUnparsedDefaultArg(); in ActOnParamUnparsedDefaultArgument()
326 UnparsedDefaultArgLocs[Param] = ArgLoc; in ActOnParamUnparsedDefaultArgument()
335 ParmVarDecl *Param = cast<ParmVarDecl>(param); in ActOnParamDefaultArgumentError() local
337 Param->setInvalidDecl(); in ActOnParamDefaultArgumentError()
339 UnparsedDefaultArgLocs.erase(Param); in ActOnParamDefaultArgumentError()
367 ParmVarDecl *Param = in CheckExtraCXXDefaultArguments() local
368 cast<ParmVarDecl>(chunk.Fun.ArgInfo[argIdx].Param); in CheckExtraCXXDefaultArguments()
369 if (Param->hasUnparsedDefaultArg()) { in CheckExtraCXXDefaultArguments()
371 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
376 } else if (Param->getDefaultArg()) { in CheckExtraCXXDefaultArguments()
377 Diag(Param->getLocation(), diag::err_param_default_argument_nonfunc) in CheckExtraCXXDefaultArguments()
378 << Param->getDefaultArg()->getSourceRange(); in CheckExtraCXXDefaultArguments()
379 Param->setDefaultArg(0); in CheckExtraCXXDefaultArguments()
623 ParmVarDecl *Param = FD->getParamDecl(p); in CheckCXXDefaultArguments() local
624 if (Param->hasDefaultArg()) { in CheckCXXDefaultArguments()
632 Diag(Param->getLocation(), diag::ext_lambda_default_arguments) in CheckCXXDefaultArguments()
633 << Param->getDefaultArgRange(); in CheckCXXDefaultArguments()
646 ParmVarDecl *Param = FD->getParamDecl(p); in CheckCXXDefaultArguments() local
647 if (!Param->hasDefaultArg()) { in CheckCXXDefaultArguments()
648 if (Param->isInvalidDecl()) in CheckCXXDefaultArguments()
650 else if (Param->getIdentifier()) in CheckCXXDefaultArguments()
651 Diag(Param->getLocation(), in CheckCXXDefaultArguments()
653 << Param->getIdentifier(); in CheckCXXDefaultArguments()
655 Diag(Param->getLocation(), in CheckCXXDefaultArguments()
668 ParmVarDecl *Param = FD->getParamDecl(p); in CheckCXXDefaultArguments() local
669 if (Param->hasDefaultArg()) { in CheckCXXDefaultArguments()
670 Param->setDefaultArg(0); in CheckCXXDefaultArguments()
2720 ParmVarDecl *Param = Constructor->getParamDecl(0); in BuildImplicitBaseInitializer() local
2721 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitBaseInitializer()
2725 SourceLocation(), Param, false, in BuildImplicitBaseInitializer()
2792 ParmVarDecl *Param = Constructor->getParamDecl(0); in BuildImplicitMemberInitializer() local
2793 QualType ParamType = Param->getType().getNonReferenceType(); in BuildImplicitMemberInitializer()
2801 SourceLocation(), Param, false, in BuildImplicitMemberInitializer()
5510 for (TemplateParameterList::iterator Param = Params->begin(), in ActOnReenterDeclaratorTemplateScope() local
5512 Param != ParamEnd; ++Param) { in ActOnReenterDeclaratorTemplateScope()
5513 NamedDecl *Named = cast<NamedDecl>(*Param); in ActOnReenterDeclaratorTemplateScope()
5535 for (TemplateParameterList::iterator Param = Params->begin(), in ActOnReenterTemplateScope() local
5537 Param != ParamEnd; ++Param) { in ActOnReenterTemplateScope()
5538 NamedDecl *Named = cast<NamedDecl>(*Param); in ActOnReenterTemplateScope()
5578 ParmVarDecl *Param = cast<ParmVarDecl>(ParamD); in ActOnDelayedCXXMethodParameter() local
5582 if (Param->hasUnparsedDefaultArg()) in ActOnDelayedCXXMethodParameter()
5583 Param->setDefaultArg(0); in ActOnDelayedCXXMethodParameter()
5585 S->AddDecl(Param); in ActOnDelayedCXXMethodParameter()
5586 if (Param->getDeclName()) in ActOnDelayedCXXMethodParameter()
5587 IdResolver.AddDecl(Param); in ActOnDelayedCXXMethodParameter()
5753 FTI.ArgInfo[0].Param && in FTIHasSingleVoidArgument()
5754 cast<ParmVarDecl>(FTI.ArgInfo[0].Param)->getType()->isVoidType()); in FTIHasSingleVoidArgument()
9921 for (FunctionDecl::param_iterator Param = FnDecl->param_begin(), in CheckOverloadedOperatorDeclaration() local
9923 Param != ParamEnd; ++Param) { in CheckOverloadedOperatorDeclaration()
9924 QualType ParamType = (*Param)->getType().getNonReferenceType(); in CheckOverloadedOperatorDeclaration()
9945 for (FunctionDecl::param_iterator Param = FnDecl->param_begin(); in CheckOverloadedOperatorDeclaration() local
9946 Param != FnDecl->param_end(); ++Param) { in CheckOverloadedOperatorDeclaration()
9947 if ((*Param)->hasDefaultArg()) in CheckOverloadedOperatorDeclaration()
9948 return Diag((*Param)->getLocation(), in CheckOverloadedOperatorDeclaration()
9950 << FnDecl->getDeclName() << (*Param)->getDefaultArgRange(); in CheckOverloadedOperatorDeclaration()
10071 FunctionDecl::param_iterator Param = FnDecl->param_begin(); in CheckLiteralOperatorDeclaration() local
10073 QualType T = (*Param)->getType().getUnqualifiedType(); in CheckLiteralOperatorDeclaration()
10083 if (++Param == FnDecl->param_end()) in CheckLiteralOperatorDeclaration()
10098 ++Param; in CheckLiteralOperatorDeclaration()
10101 if (Param == FnDecl->param_end()) { in CheckLiteralOperatorDeclaration()
10116 T = (*Param)->getType().getUnqualifiedType(); in CheckLiteralOperatorDeclaration()
10118 ++Param == FnDecl->param_end()) in CheckLiteralOperatorDeclaration()
10132 for (FunctionDecl::param_iterator Param = FnDecl->param_begin(), in CheckLiteralOperatorDeclaration() local
10134 Param != ParamEnd; ++Param) { in CheckLiteralOperatorDeclaration()
10135 if ((*Param)->hasDefaultArg()) { in CheckLiteralOperatorDeclaration()
10136 Diag((*Param)->getDefaultArgRange().getBegin(), in CheckLiteralOperatorDeclaration()
10138 << (*Param)->getDefaultArgRange(); in CheckLiteralOperatorDeclaration()