Lines Matching refs:OpLoc
6663 SourceLocation OpLoc,
6685 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined())
6691 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName);
8206 SourceLocation OpLoc,
8224 OpLoc,
9636 SourceLocation OpLoc,
9645 S.Diag(OpLoc, diag::note_ovl_builtin_unary_candidate) << TypeStr;
9650 S.Diag(OpLoc, diag::note_ovl_builtin_binary_candidate) << TypeStr;
9654 static void NoteAmbiguousUserConversions(Sema &S, SourceLocation OpLoc,
9662 ICS.DiagnoseAmbiguousConversion(S, OpLoc,
9921 SourceLocation OpLoc) {
9939 CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size()));
9972 NoteAmbiguousUserConversions(S, OpLoc, Cand);
9977 NoteBuiltinOperatorCandidate(S, Opc, OpLoc, Cand);
9982 S.Diag(OpLoc, diag::note_ovl_too_many_candidates) << int(E - I);
10942 SourceLocation OpLoc,
10946 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
10947 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R,
11239 /// \param OpLoc The location of the operator itself (e.g., '*').
11252 Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
11259 DeclarationNameInfo OpNameInfo(OpName, OpLoc);
11282 VK_RValue, OK_Ordinary, OpLoc);
11292 VK_RValue, OpLoc, false);
11296 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator);
11302 AddMemberOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet);
11305 AddArgumentDependentLookupCandidates(OpName, OpLoc, ArgsArray,
11310 AddBuiltinOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet);
11316 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
11327 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl);
11350 HadMultipleCandidates, OpLoc);
11362 ResultTy, VK, OpLoc, false);
11364 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl))
11386 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, ArgsArray))
11395 Diag(OpLoc, diag::err_ovl_ambiguous_oper_unary)
11400 UnaryOperator::getOpcodeStr(Opc), OpLoc);
11404 Diag(OpLoc, diag::err_ovl_deleted_oper)
11410 UnaryOperator::getOpcodeStr(Opc), OpLoc);
11417 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
11423 /// \param OpLoc The location of the operator itself (e.g., '+').
11437 Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
11456 OpLoc, FPFeatures.fp_contract);
11460 Context.DependentTy, Context.DependentTy, OpLoc,
11467 DeclarationNameInfo OpNameInfo(OpName, OpLoc);
11475 VK_RValue, OpLoc, FPFeatures.fp_contract);
11495 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11500 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11503 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator);
11509 AddMemberOperatorCandidates(Op, OpLoc, Args, CandidateSet);
11515 AddArgumentDependentLookupCandidates(OpName, OpLoc, Args,
11520 AddBuiltinOperatorCandidates(Op, OpLoc, Args, CandidateSet);
11526 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
11538 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl);
11578 HadMultipleCandidates, OpLoc);
11589 Args, ResultTy, VK, OpLoc,
11592 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall,
11603 DiagnoseSelfMove(Args[0], Args[1], OpLoc);
11605 checkCall(FnDecl, nullptr, ArgsArray, isa<CXXMethodDecl>(FnDecl), OpLoc,
11644 Diag(OpLoc, diag::err_ovl_no_viable_oper)
11648 Diag(OpLoc, diag::note_assign_lhs_incomplete)
11656 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, Args))
11662 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
11668 BinaryOperator::getOpcodeStr(Opc), OpLoc);
11673 Diag(OpLoc, diag::err_ovl_ambiguous_oper_binary)
11678 BinaryOperator::getOpcodeStr(Opc), OpLoc);
11684 Diag(OpLoc, diag::err_ovl_deleted_special_oper)
11693 Diag(OpLoc, diag::err_ovl_deleted_oper)
11700 BinaryOperator::getOpcodeStr(Opc), OpLoc);
11705 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
12452 Sema::BuildOverloadedArrowExpr(Scope *S, Expr *Base, SourceLocation OpLoc,
12477 LookupResult R(*this, OpName, OpLoc, LookupOrdinaryName);
12491 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) {
12505 Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
12508 Diag(OpLoc, diag::note_typecheck_member_reference_suggestion)
12509 << FixItHint::CreateReplacement(OpLoc, ".");
12512 Diag(OpLoc, diag::err_ovl_no_viable_oper)
12518 Diag(OpLoc, diag::err_ovl_ambiguous_oper_unary)
12524 Diag(OpLoc, diag::err_ovl_deleted_oper)
12533 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl);
12546 HadMultipleCandidates, OpLoc);
12555 Base, ResultTy, VK, OpLoc, false);
12557 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method))