Lines Matching defs:OpLoc
1040 static bool shouldAddReversedEqEq(Sema &S, SourceLocation OpLoc,
1062 LookupResult Members(S, NotEqOp, OpLoc,
1099 S, OpLoc, /*FirstOperand in reversed args*/ OriginalArgs[1], FD))
8438 SourceLocation OpLoc,
8460 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined())
8466 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName);
9941 SourceLocation OpLoc,
9962 OpLoc,
12303 SourceLocation OpLoc,
12312 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
12317 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr;
12321 static void NoteAmbiguousUserConversions(Sema &S, SourceLocation OpLoc,
12328 S, OpLoc, S.PDiag(diag::note_ambiguous_type_conversion));
12657 SourceLocation OpLoc,
12693 Cands, CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size(), Kind));
12699 SourceLocation OpLoc) {
12705 CompleteCandidates(S, OCD_AllCandidates, Args, OpLoc, [](auto &Cand) {
12721 ArrayRef<Expr *> Args, StringRef Opc, SourceLocation OpLoc,
12724 auto Cands = CompleteCandidates(S, OCD, Args, OpLoc, Filter);
12726 S.Diag(PD.first, PD.second, shouldDeferDiags(S, Args, OpLoc));
12737 NoteCandidates(S, Args, Cands, Opc, OpLoc);
12745 StringRef Opc, SourceLocation OpLoc) {
12775 NoteAmbiguousUserConversions(S, OpLoc, Cand);
12780 NoteBuiltinOperatorCandidate(S, Opc, OpLoc, Cand);
12789 S.Diag(OpLoc, diag::note_ovl_too_many_candidates,
12790 shouldDeferDiags(S, Args, OpLoc))
13874 SourceLocation OpLoc,
13878 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
13879 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R,
14365 Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
14372 DeclarationNameInfo OpNameInfo(OpName, OpLoc);
14402 OK_Ordinary, OpLoc, false,
14411 Context.DependentTy, VK_PRValue, OpLoc,
14416 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator);
14422 AddMemberOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet);
14426 AddArgumentDependentLookupCandidates(OpName, OpLoc, ArgsArray,
14432 AddBuiltinOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet);
14438 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
14450 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl);
14477 OpLoc);
14488 Context, Op, FnExpr.get(), ArgsArray, ResultTy, VK, OpLoc,
14492 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl))
14518 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, ArgsArray))
14528 PartialDiagnosticAt(OpLoc,
14533 UnaryOperator::getOpcodeStr(Opc), OpLoc);
14544 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper)
14550 UnaryOperator::getOpcodeStr(Opc), OpLoc);
14558 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
14565 SourceLocation OpLoc = CandidateSet.getLocation();
14577 AddMemberOperatorCandidates(Op, OpLoc, Args, CandidateSet);
14579 AddMemberOperatorCandidates(Op, OpLoc, {Args[1], Args[0]}, CandidateSet,
14584 AddMemberOperatorCandidates(ExtraOp, OpLoc, Args, CandidateSet);
14586 AddMemberOperatorCandidates(ExtraOp, OpLoc, {Args[1], Args[0]},
14596 AddArgumentDependentLookupCandidates(OpName, OpLoc, Args,
14602 AddArgumentDependentLookupCandidates(ExtraOpName, OpLoc, Args,
14621 AddBuiltinOperatorCandidates(Op, OpLoc, Args, CandidateSet);
14624 ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
14647 OK_Ordinary, OpLoc, CurFPFeatureOverrides(), Context.DependentTy,
14651 OK_Ordinary, OpLoc, CurFPFeatureOverrides());
14658 DeclarationNameInfo OpNameInfo(OpName, OpLoc);
14664 Context.DependentTy, VK_PRValue, OpLoc,
14682 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
14702 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
14705 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator,
14707 Op, OpLoc, AllowRewrittenCandidates));
14716 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
14744 Diag(OpLoc, IsExtension ? diag::ext_ovl_rewrite_equalequal_not_bool
14765 *this, OpLoc, Cand.Conversions[ArgIdx],
14779 Diag(OpLoc, diag::ext_ovl_ambiguous_oper_binary_reversed)
14820 Args[1]->getType(), OpLoc);
14825 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
14868 HadMultipleCandidates, OpLoc);
14884 Context, ChosenOp, FnExpr.get(), Args, ResultTy, VK, OpLoc,
14895 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall,
14901 DiagnoseSelfMove(Args[0], Args[1], OpLoc);
14912 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType,
14917 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(),
14934 R = CreateBuiltinUnaryOp(OpLoc, UO_LNot, R.get());
14939 IntegerLiteral::Create(Context, Zero, Context.IntTy, OpLoc);
14947 OpLoc, Opc, Fns, IsReversed ? ZeroLiteral : R.get(),
14998 ExprResult E = BuildSynthesizedThreeWayComparison(OpLoc, Fns, Args[0],
15010 Args, OpLoc);
15012 CandidateSet.shouldDeferDiags(*this, Args, OpLoc));
15015 Diag(OpLoc, diag::err_ovl_no_viable_oper)
15019 Diag(OpLoc, diag::note_assign_lhs_incomplete)
15027 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, Args))
15033 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
15037 CandidateSet.NoteCandidates(*this, Args, Cands, OpcStr, OpLoc);
15043 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_binary)
15050 OpLoc);
15058 Diag(OpLoc, diag::err_ovl_deleted_special_oper)
15063 Diag(OpLoc, diag::err_ovl_deleted_comparison)
15076 OpLoc,
15083 OpLoc);
15089 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
15093 SourceLocation OpLoc, const UnresolvedSetImpl &Fns, Expr *LHS, Expr *RHS,
15118 ExprResult Eq = CreateOverloadedBinOp(OpLoc, BO_EQ, Fns, LHS, RHS, true, true,
15123 ExprResult Less = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, LHS, RHS, true,
15130 Greater = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, RHS, LHS, true, true,
15165 Result = ActOnConditionalOp(OpLoc, OpLoc, Comparisons[I].Cmp.get(),
15178 Result.get()->getValueKind(), Result.get()->getObjectKind(), OpLoc,
16012 SourceLocation OpLoc,
16036 LookupResult R(*this, OpName, OpLoc, LookupOrdinaryName);
16051 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
16066 Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
16069 Diag(OpLoc, diag::note_typecheck_member_reference_suggestion)
16070 << FixItHint::CreateReplacement(OpLoc, ".");
16073 Diag(OpLoc, diag::err_ovl_no_viable_oper)
16081 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_unary)
16090 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper)
16099 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
16119 Base, HadMultipleCandidates, OpLoc);
16129 ResultTy, VK, OpLoc, CurFPFeatureOverrides());
16131 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method))