Lines Matching refs:Args
845 MultiExprArg Args,
847 for (unsigned i = 0, e = Args.size(); i != e; ++i)
848 if (checkPlaceholderForOverload(S, Args[i], &unbridged))
3093 Expr **Args = &From;
3107 Args = InitList->getInits();
3147 llvm::makeArrayRef(Args, NumArgs),
3153 llvm::makeArrayRef(Args, NumArgs),
5606 ArrayRef<Expr *> Args) {
5607 QualType T1 = Args[0]->getType();
5608 QualType T2 = Args.size() > 1 ? Args[1]->getType() : QualType();
5649 ArrayRef<Expr *> Args,
5671 Args, CandidateSet, SuppressUserConversions,
5690 !IsAcceptableNonMemberOperatorCandidate(Context, Function, Args))
5705 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size());
5711 Candidate.ExplicitCallArguments = Args.size();
5718 if (Args.size() == 1 && Constructor->isSpecializationCopyingObject() &&
5719 (Context.hasSameUnqualifiedType(ClassType, Args[0]->getType()) ||
5720 IsDerivedFrom(Args[0]->getLocStart(), Args[0]->getType(),
5733 if (TooManyArguments(NumParams, Args.size(), PartialOverloading) &&
5746 if (Args.size() < MinRequiredArgs && !PartialOverloading) {
5768 for (unsigned ArgIdx = 0; ArgIdx < Args.size(); ++ArgIdx) {
5776 = TryCopyInitialization(*this, Args[ArgIdx], ParamType,
5795 if (EnableIfAttr *FailedAttr = CheckEnableIf(Function, Args)) {
5803 ObjCMethodDecl *Sema::SelectBestMethod(Selector Sel, MultiExprArg Args,
5817 if (Args.size() < NumNamedArgs)
5822 if (Args[i]->isTypeDependent()) {
5828 Expr *argExpr = Args[i];
5857 for (unsigned i = NumNamedArgs, e = Args.size(); i < e; ++i) {
5858 if (Args[i]->isTypeDependent()) {
5862 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], VariadicMethod,
5871 if (Args.size() != NumNamedArgs)
5908 EnableIfAttr *Sema::CheckEnableIf(FunctionDecl *Function, ArrayRef<Expr *> Args,
5920 for (unsigned i = 0, e = Args.size(); i != e; ++i) {
5926 PerformObjectArgumentInitialization(Args[0], /*Qualifier=*/nullptr,
5940 Args[i]);
5954 if (!Function->isVariadic() && Args.size() < Function->getNumParams()) {
5955 for (unsigned i = Args.size(), e = Function->getNumParams(); i != e; ++i) {
5996 ArrayRef<Expr *> Args,
6007 Args[0]->getType(), Args[0]->Classify(Context),
6008 Args.slice(1), CandidateSet,
6011 AddOverloadCandidate(FD, F.getPair(), Args, CandidateSet,
6020 Args[0]->getType(),
6021 Args[0]->Classify(Context), Args.slice(1),
6026 ExplicitTemplateArgs, Args,
6038 ArrayRef<Expr *> Args,
6053 Args, CandidateSet,
6058 Args,
6066 /// @c o.f(a1,a2), @c Object will contain @c o and @c Args will contain
6074 ArrayRef<Expr *> Args,
6098 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size() + 1);
6103 Candidate.ExplicitCallArguments = Args.size();
6110 if (TooManyArguments(NumParams, Args.size(), PartialOverloading) &&
6123 if (Args.size() < MinRequiredArgs && !PartialOverloading) {
6159 for (unsigned ArgIdx = 0; ArgIdx < Args.size(); ++ArgIdx) {
6167 = TryCopyInitialization(*this, Args[ArgIdx], ParamType,
6185 if (EnableIfAttr *FailedAttr = CheckEnableIf(Method, Args, true)) {
6203 ArrayRef<Expr *> Args,
6222 = DeduceTemplateArguments(MethodTmpl, ExplicitTemplateArgs, Args,
6231 Candidate.ExplicitCallArguments = Args.size();
6243 ActingContext, ObjectType, ObjectClassification, Args,
6254 ArrayRef<Expr *> Args,
6273 = DeduceTemplateArguments(FunctionTemplate, ExplicitTemplateArgs, Args,
6282 Candidate.ExplicitCallArguments = Args.size();
6291 AddOverloadCandidate(Specialization, FoundDecl, Args, CandidateSet,
6555 ArrayRef<Expr *> Args,
6563 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size() + 1);
6570 Candidate.ExplicitCallArguments = Args.size();
6603 if (Args.size() > NumParams && !Proto->isVariadic()) {
6611 if (Args.size() < NumParams) {
6620 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
6628 = TryCopyInitialization(*this, Args[ArgIdx], ParamType,
6659 /// as "x Op y". , Args/NumArgs provides the operator arguments, and
6664 ArrayRef<Expr *> Args,
6677 QualType T1 = Args[0]->getType();
6699 AddMethodCandidate(Oper.getPair(), Args[0]->getType(),
6700 Args[0]->Classify(Context),
6701 Args.slice(1),
6709 /// of the built-in candidate, respectively. Args and NumArgs are the
6716 ArrayRef<Expr *> Args,
6724 OverloadCandidate &Candidate = CandidateSet.addCandidate(Args.size());
6730 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx)
6736 Candidate.ExplicitCallArguments = Args.size();
6737 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
6754 = TryContextuallyConvertToBool(*this, Args[ArgIdx]);
6757 = TryCopyInitialization(*this, Args[ArgIdx], ParamTys[ArgIdx],
7062 ArrayRef<Expr *> Args,
7069 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7077 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7142 ArrayRef<Expr *> Args;
7265 if (Args.size() == 1)
7266 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
7268 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, CandidateSet);
7276 if (Args.size() == 1)
7277 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
7279 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, CandidateSet);
7289 if (Args.size() == 1)
7290 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
7292 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, CandidateSet);
7300 if (Args.size() == 1)
7301 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
7303 S.AddBuiltinCandidate(CandidateTy, ParamTypes, Args, CandidateSet);
7311 Sema &S, ArrayRef<Expr *> Args,
7316 : S(S), Args(Args),
7418 &ParamTy, Args, CandidateSet);
7435 S.AddBuiltinCandidate(ArithTy, &ArithTy, Args, CandidateSet);
7444 S.AddBuiltinCandidate(VecTy, &VecTy, Args, CandidateSet);
7459 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, CandidateSet);
7475 S.AddBuiltinCandidate(IntTy, &IntTy, Args, CandidateSet);
7484 S.AddBuiltinCandidate(VecTy, &VecTy, Args, CandidateSet);
7498 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
7509 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, CandidateSet);
7541 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
7574 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
7584 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, CandidateSet);
7600 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, CandidateSet);
7609 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args,
7654 S.AddBuiltinCandidate(*Ptr, AsymmetricParamTypes, Args, CandidateSet);
7663 Args, CandidateSet);
7711 S.AddBuiltinCandidate(Result, LandR, Args, CandidateSet);
7734 S.AddBuiltinCandidate(Result, LandR, Args, CandidateSet);
7766 S.AddBuiltinCandidate(Result, LandR, Args, CandidateSet);
7790 AddBuiltinAssignmentOperatorCandidates(S, *Enum, Args, CandidateSet);
7800 AddBuiltinAssignmentOperatorCandidates(S, *MemPtr, Args, CandidateSet);
7840 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7849 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7858 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7868 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7889 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7898 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7907 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7917 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7950 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7958 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7977 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
7984 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet,
8016 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
8022 S.AddBuiltinCandidate(ParamTypes[0], ParamTypes, Args, CandidateSet);
8037 S.AddBuiltinCandidate(ParamTy, &ParamTy, Args, CandidateSet,
8043 S.AddBuiltinCandidate(S.Context.BoolTy, ParamTypes, Args, CandidateSet,
8071 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, CandidateSet);
8086 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, CandidateSet);
8137 S.AddBuiltinCandidate(ResultTy, ParamTypes, Args, CandidateSet);
8165 S.AddBuiltinCandidate(*Ptr, ParamTypes, Args, CandidateSet);
8176 S.AddBuiltinCandidate(*MemPtr, ParamTypes, Args, CandidateSet);
8191 S.AddBuiltinCandidate(*Enum, ParamTypes, Args, CandidateSet);
8207 ArrayRef<Expr *> Args,
8215 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx)
8216 VisibleTypeConversionsQuals += CollectVRQualifiers(Context, Args[ArgIdx]);
8221 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
8223 CandidateTypes[ArgIdx].AddTypesConvertedFrom(Args[ArgIdx]->getType(),
8247 BuiltinOperatorOverloadBuilder OpBuilder(*this, Args,
8276 if (Args.size() == 1)
8281 if (Args.size() == 1) {
8290 if (Args.size() == 1)
8328 if (Args.size() == 1)
8398 ArrayRef<Expr *> Args,
8412 ArgumentDependentLookup(Name, Loc, Args, Fns);
8432 AddOverloadCandidate(FD, FoundDecl, Args, CandidateSet, false,
8437 Args, CandidateSet, PartialOverloading);
9356 if (TemplateArgumentList *Args =
9360 getDescribedTemplate(Templated)->getTemplateParameters(), *Args);
9834 ArrayRef<Expr *> Args) {
9887 = TryCopyInitialization(S, Args[ConvIdx],
9901 S, Args[ArgIdx], Proto->getParamType(ArgIdx), SuppressUserConversions,
9919 ArrayRef<Expr *> Args,
9930 CompleteNonViableCandidate(S, Cand, Args);
9939 CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size()));
9958 NoteFunctionCandidate(S, Cand, Args.size(),
10730 ArrayRef<Expr *> Args,
10743 S.AddOverloadCandidate(Func, FoundDecl, Args, CandidateSet,
10752 ExplicitTemplateArgs, Args, CandidateSet,
10764 ArrayRef<Expr *> Args,
10807 AddOverloadedCallCandidate(*this, I.getPair(), ExplicitTemplateArgs, Args,
10813 Args, ExplicitTemplateArgs,
10841 ArrayRef<Expr *> Args,
10867 ExplicitTemplateArgs, Args,
10882 SemaRef.FindAssociatedClassesAndNamespaces(FnLoc, Args,
10943 ArrayRef<Expr *> Args) {
10949 /*ExplicitTemplateArgs=*/nullptr, Args);
10984 MutableArrayRef<Expr *> Args,
11013 ExplicitTemplateArgs, Args,
11017 MakeValidator(SemaRef, dyn_cast<MemberExpr>(Fn), Args.size(),
11019 ExplicitTemplateArgs, Args)))
11043 MultiExprArg(Args.data(), Args.size()),
11052 MultiExprArg Args,
11075 if (checkArgPlaceholdersForOverload(*this, Args, UnbridgedCasts)) {
11082 AddOverloadedCallCandidates(ULE, Args, *CandidateSet);
11097 Context, Fn, Args, Context.DependentTy, VK_RValue, RParenLoc);
11119 MultiExprArg Args,
11127 return BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc, Args,
11138 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc,
11146 Args, RParenLoc,
11155 for (const Expr *Arg : Args) {
11169 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates, Args);
11176 CandidateSet->NoteCandidates(SemaRef, OCD_ViableCandidates, Args);
11185 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates, Args);
11191 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc,
11202 /// arguments Args/NumArgs, attempt to resolve the function call down
11209 MultiExprArg Args,
11217 if (buildOverloadedCallSet(S, Fn, ULE, Args, LParenLoc, &CandidateSet,
11225 return FinishOverloadedCallExpr(*this, S, Fn, ULE, LParenLoc, Args,
11264 Expr *Args[2] = { Input, nullptr };
11272 Args[1] = IntegerLiteral::Create(Context, Zero, Context.IntTy,
11277 ArrayRef<Expr *> ArgsArray(Args, NumArgs);
11327 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl);
11359 Args[0] = Input;
11441 Expr *Args[2] = { LHS, RHS };
11442 LHS=RHS=nullptr; // Please use only Args instead of LHS/RHS couple
11449 if (Args[0]->isTypeDependent() || Args[1]->isTypeDependent()) {
11455 Args[0], Args[1], Opc, Context.DependentTy, VK_RValue, OK_Ordinary,
11459 Args[0], Args[1], Opc, Context.DependentTy, VK_LValue, OK_Ordinary,
11474 CXXOperatorCallExpr(Context, Op, Fn, Args, Context.DependentTy,
11479 if (checkPlaceholderForOverload(*this, Args[1]))
11484 assert(Args[0]->getObjectKind() != OK_ObjCProperty);
11485 if (checkPlaceholderForOverload(*this, Args[0]))
11494 if (Opc == BO_Assign && !Args[0]->getType()->isOverloadableType())
11495 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11500 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11506 AddFunctionCandidates(Fns, Args, CandidateSet);
11509 AddMemberOperatorCandidates(Op, OpLoc, Args, CandidateSet);
11515 AddArgumentDependentLookupCandidates(OpName, OpLoc, Args,
11520 AddBuiltinOperatorCandidates(Op, OpLoc, Args, CandidateSet);
11538 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
11544 SourceLocation(), Args[1]);
11549 PerformObjectArgumentInitialization(Args[0], /*Qualifier=*/nullptr,
11553 Args[0] = Arg0.getAs<Expr>();
11554 Args[1] = RHS = Arg1.getAs<Expr>();
11560 SourceLocation(), Args[0]);
11568 SourceLocation(), Args[1]);
11571 Args[0] = LHS = Arg0.getAs<Expr>();
11572 Args[1] = RHS = Arg1.getAs<Expr>();
11589 Args, ResultTy, VK, OpLoc,
11596 ArrayRef<const Expr *> ArgsArray(Args, 2);
11603 DiagnoseSelfMove(Args[0], Args[1], OpLoc);
11614 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0],
11618 Args[0] = ArgsRes0.get();
11621 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1],
11625 Args[1] = ArgsRes1.get();
11642 if (Args[0]->getType()->isRecordType() &&
11646 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11647 if (Args[0]->getType()->isIncompleteType()) {
11649 << Args[0]->getType()
11650 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11656 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, Args))
11662 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11667 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
11675 << Args[0]->getType() << Args[1]->getType()
11676 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11677 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args,
11697 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11699 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
11705 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11712 Expr *Args[2] = { Base, Idx };
11718 if (Args[0]->isTypeDependent() || Args[1]->isTypeDependent()) {
11733 CXXOperatorCallExpr(Context, OO_Subscript, Fn, Args,
11738 if (checkPlaceholderForOverload(*this, Args[0]))
11740 if (checkPlaceholderForOverload(*this, Args[1]))
11749 AddMemberOperatorCandidates(OO_Subscript, LLoc, Args, CandidateSet);
11752 AddBuiltinOperatorCandidates(OO_Subscript, LLoc, Args, CandidateSet);
11767 CheckMemberOperatorAccess(LLoc, Args[0], Args[1], Best->FoundDecl);
11772 PerformObjectArgumentInitialization(Args[0], /*Qualifier=*/nullptr,
11776 Args[0] = Arg0.get();
11784 Args[1]);
11788 Args[1] = InputInit.getAs<Expr>();
11808 FnExpr.get(), Args,
11821 PerformImplicitConversion(Args[0], Best->BuiltinTypes.ParamTypes[0],
11825 Args[0] = ArgsRes0.get();
11828 PerformImplicitConversion(Args[1], Best->BuiltinTypes.ParamTypes[1],
11832 Args[1] = ArgsRes1.get();
11841 << Args[0]->getType() << /*subscript*/ 0
11842 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11845 << Args[0]->getType()
11846 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11847 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
11855 << Args[0]->getType() << Args[1]->getType()
11856 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11857 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args,
11865 << Args[0]->getSourceRange() << Args[1]->getSourceRange();
11866 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args,
11872 return CreateBuiltinArraySubscriptExpr(Args[0], LLoc, Args[1], RLoc);
11877 /// function (and includes the object parameter), Args/NumArgs are the
11885 MultiExprArg Args,
11927 = new (Context) CXXMemberCallExpr(Context, MemExprE, Args,
11934 if (ConvertArgumentsForCall(call, op, nullptr, proto, Args, RParenLoc))
11945 CallExpr(Context, MemExprE, Args, Context.VoidTy, VK_RValue, RParenLoc);
11948 if (checkArgPlaceholdersForOverload(*this, Args, UnbridgedCasts))
11993 Args, CandidateSet);
12001 ObjectClassification, Args, CandidateSet,
12007 Args, CandidateSet,
12040 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12047 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12057 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12067 return BuildResolvedCallExpr(MemExprE, Method, LParenLoc, Args,
12080 new (Context) CXXMemberCallExpr(Context, MemExprE, Args,
12115 if (ConvertArgumentsForCall(TheCall, MemExpr, Method, Proto, Args,
12119 DiagnoseSentinelCalls(Method, LParenLoc, Args);
12128 if (const EnableIfAttr *Attr = CheckEnableIf(Method, Args, true)) {
12169 MultiExprArg Args,
12176 if (checkArgPlaceholdersForOverload(*this, Args, UnbridgedCasts))
12206 Args, CandidateSet,
12251 Object.get(), Args, CandidateSet);
12276 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12283 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args);
12293 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12330 return ActOnCallExpr(S, Call.get(), LParenLoc, Args, RParenLoc);
12361 std::unique_ptr<Expr * []> MethodArgs(new Expr *[Args.size() + 1]);
12363 std::copy(Args.begin(), Args.end(), &MethodArgs[1]);
12373 llvm::makeArrayRef(MethodArgs.get(), Args.size() + 1),
12382 if (Args.size() < NumParams)
12400 if (i < Args.size()) {
12401 Arg = Args[i];
12427 // If this is a variadic call, handle args passed through "...".
12430 for (unsigned i = NumParams, e = Args.size(); i < e; i++) {
12431 ExprResult Arg = DefaultVariadicArgumentPromotion(Args[i], VariadicMethod,
12440 DiagnoseSentinelCalls(Method, LParenLoc, Args);
12567 ArrayRef<Expr*> Args,
12574 AddFunctionCandidates(R.asUnresolvedSet(), Args, CandidateSet, TemplateArgs,
12590 CandidateSet.NoteCandidates(*this, OCD_AllCandidates, Args);
12595 CandidateSet.NoteCandidates(*this, OCD_ViableCandidates, Args);
12610 for (unsigned ArgIdx = 0, N = Args.size(); ArgIdx != N; ++ArgIdx) {
12613 SourceLocation(), Args[ArgIdx]);
12625 llvm::makeArrayRef(ConvArgs, Args.size()),