Lines Matching refs:OpLoc
935 static bool shouldAddReversedEqEq(Sema &S, SourceLocation OpLoc, in shouldAddReversedEqEq() argument
957 LookupResult Members(S, NotEqOp, OpLoc, in shouldAddReversedEqEq()
994 S, OpLoc, /*FirstOperand in reversed args*/ OriginalArgs[1], FD)) in shouldAddReversed()
8245 SourceLocation OpLoc, in AddMemberOperatorCandidates() argument
8267 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined()) in AddMemberOperatorCandidates()
8273 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName); in AddMemberOperatorCandidates()
9738 SourceLocation OpLoc, in AddBuiltinOperatorCandidates() argument
9759 OpLoc, in AddBuiltinOperatorCandidates()
12012 SourceLocation OpLoc, in NoteBuiltinOperatorCandidate() argument
12021 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
12026 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
12030 static void NoteAmbiguousUserConversions(Sema &S, SourceLocation OpLoc, in NoteAmbiguousUserConversions() argument
12037 S, OpLoc, S.PDiag(diag::note_ambiguous_type_conversion)); in NoteAmbiguousUserConversions()
12366 SourceLocation OpLoc, in CompleteCandidates() argument
12402 Cands, CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size(), Kind)); in CompleteCandidates()
12408 SourceLocation OpLoc) { in shouldDeferDiags() argument
12414 CompleteCandidates(S, OCD_AllCandidates, Args, OpLoc, [](auto &Cand) { in shouldDeferDiags()
12430 ArrayRef<Expr *> Args, StringRef Opc, SourceLocation OpLoc, in NoteCandidates() argument
12433 auto Cands = CompleteCandidates(S, OCD, Args, OpLoc, Filter); in NoteCandidates()
12435 S.Diag(PD.first, PD.second, shouldDeferDiags(S, Args, OpLoc)); in NoteCandidates()
12446 NoteCandidates(S, Args, Cands, Opc, OpLoc); in NoteCandidates()
12454 StringRef Opc, SourceLocation OpLoc) { in NoteCandidates() argument
12484 NoteAmbiguousUserConversions(S, OpLoc, Cand); in NoteCandidates()
12489 NoteBuiltinOperatorCandidate(S, Opc, OpLoc, Cand); in NoteCandidates()
12498 S.Diag(OpLoc, diag::note_ovl_too_many_candidates, in NoteCandidates()
12499 shouldDeferDiags(S, Args, OpLoc)) in NoteCandidates()
13655 SourceLocation OpLoc, in DiagnoseTwoPhaseOperatorLookup() argument
13659 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName); in DiagnoseTwoPhaseOperatorLookup()
13660 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R, in DiagnoseTwoPhaseOperatorLookup()
14159 Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc, in CreateOverloadedUnaryOp() argument
14166 DeclarationNameInfo OpNameInfo(OpName, OpLoc); in CreateOverloadedUnaryOp()
14189 VK_PRValue, OK_Ordinary, OpLoc, false, in CreateOverloadedUnaryOp()
14198 Context.DependentTy, VK_PRValue, OpLoc, in CreateOverloadedUnaryOp()
14203 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator); in CreateOverloadedUnaryOp()
14209 AddMemberOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet); in CreateOverloadedUnaryOp()
14213 AddArgumentDependentLookupCandidates(OpName, OpLoc, ArgsArray, in CreateOverloadedUnaryOp()
14219 AddBuiltinOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet); in CreateOverloadedUnaryOp()
14225 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedUnaryOp()
14237 CheckMemberOperatorAccess(OpLoc, Input, nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
14264 OpLoc); in CreateOverloadedUnaryOp()
14275 Context, Op, FnExpr.get(), ArgsArray, ResultTy, VK, OpLoc, in CreateOverloadedUnaryOp()
14278 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
14303 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, ArgsArray)) in CreateOverloadedUnaryOp()
14313 PartialDiagnosticAt(OpLoc, in CreateOverloadedUnaryOp()
14318 UnaryOperator::getOpcodeStr(Opc), OpLoc); in CreateOverloadedUnaryOp()
14328 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper) in CreateOverloadedUnaryOp()
14332 UnaryOperator::getOpcodeStr(Opc), OpLoc); in CreateOverloadedUnaryOp()
14339 return CreateBuiltinUnaryOp(OpLoc, Opc, Input); in CreateOverloadedUnaryOp()
14347 SourceLocation OpLoc = CandidateSet.getLocation(); in LookupOverloadedBinOp() local
14359 AddMemberOperatorCandidates(Op, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
14361 AddMemberOperatorCandidates(Op, OpLoc, {Args[1], Args[0]}, CandidateSet, in LookupOverloadedBinOp()
14366 AddMemberOperatorCandidates(ExtraOp, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
14368 AddMemberOperatorCandidates(ExtraOp, OpLoc, {Args[1], Args[0]}, in LookupOverloadedBinOp()
14378 AddArgumentDependentLookupCandidates(OpName, OpLoc, Args, in LookupOverloadedBinOp()
14384 AddArgumentDependentLookupCandidates(ExtraOpName, OpLoc, Args, in LookupOverloadedBinOp()
14403 AddBuiltinOperatorCandidates(Op, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
14429 ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc, in CreateOverloadedBinOp() argument
14452 OK_Ordinary, OpLoc, CurFPFeatureOverrides(), Context.DependentTy, in CreateOverloadedBinOp()
14456 OK_Ordinary, OpLoc, CurFPFeatureOverrides()); in CreateOverloadedBinOp()
14463 DeclarationNameInfo OpNameInfo(OpName, OpLoc); in CreateOverloadedBinOp()
14469 Context.DependentTy, VK_PRValue, OpLoc, in CreateOverloadedBinOp()
14487 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
14507 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
14510 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator, in CreateOverloadedBinOp()
14512 Op, OpLoc, AllowRewrittenCandidates)); in CreateOverloadedBinOp()
14521 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedBinOp()
14549 Diag(OpLoc, IsExtension ? diag::ext_ovl_rewrite_equalequal_not_bool in CreateOverloadedBinOp()
14570 *this, OpLoc, Cand.Conversions[ArgIdx], in CreateOverloadedBinOp()
14584 Diag(OpLoc, diag::ext_ovl_ambiguous_oper_binary_reversed) in CreateOverloadedBinOp()
14623 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
14666 HadMultipleCandidates, OpLoc); in CreateOverloadedBinOp()
14682 Context, ChosenOp, FnExpr.get(), Args, ResultTy, VK, OpLoc, in CreateOverloadedBinOp()
14692 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
14698 DiagnoseSelfMove(Args[0], Args[1], OpLoc); in CreateOverloadedBinOp()
14705 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType, in CreateOverloadedBinOp()
14710 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
14727 R = CreateBuiltinUnaryOp(OpLoc, UO_LNot, R.get()); in CreateOverloadedBinOp()
14732 IntegerLiteral::Create(Context, Zero, Context.IntTy, OpLoc); in CreateOverloadedBinOp()
14740 OpLoc, Opc, Fns, IsReversed ? ZeroLiteral : R.get(), in CreateOverloadedBinOp()
14789 ExprResult E = BuildSynthesizedThreeWayComparison(OpLoc, Fns, Args[0], in CreateOverloadedBinOp()
14801 Args, OpLoc); in CreateOverloadedBinOp()
14803 CandidateSet.shouldDeferDiags(*this, Args, OpLoc)); in CreateOverloadedBinOp()
14806 Diag(OpLoc, diag::err_ovl_no_viable_oper) in CreateOverloadedBinOp()
14810 Diag(OpLoc, diag::note_assign_lhs_incomplete) in CreateOverloadedBinOp()
14818 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, Args)) in CreateOverloadedBinOp()
14824 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
14828 CandidateSet.NoteCandidates(*this, Args, Cands, OpcStr, OpLoc); in CreateOverloadedBinOp()
14834 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_binary) in CreateOverloadedBinOp()
14841 OpLoc); in CreateOverloadedBinOp()
14849 Diag(OpLoc, diag::err_ovl_deleted_special_oper) in CreateOverloadedBinOp()
14853 Diag(OpLoc, diag::err_ovl_deleted_comparison) in CreateOverloadedBinOp()
14864 OpLoc, PDiag(diag::err_ovl_deleted_oper) in CreateOverloadedBinOp()
14870 OpLoc); in CreateOverloadedBinOp()
14875 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
14879 SourceLocation OpLoc, const UnresolvedSetImpl &Fns, Expr *LHS, Expr *RHS, in BuildSynthesizedThreeWayComparison() argument
14904 ExprResult Eq = CreateOverloadedBinOp(OpLoc, BO_EQ, Fns, LHS, RHS, true, true, in BuildSynthesizedThreeWayComparison()
14909 ExprResult Less = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, LHS, RHS, true, in BuildSynthesizedThreeWayComparison()
14916 Greater = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, RHS, LHS, true, true, in BuildSynthesizedThreeWayComparison()
14951 Result = ActOnConditionalOp(OpLoc, OpLoc, Comparisons[I].Cmp.get(), in BuildSynthesizedThreeWayComparison()
14964 Result.get()->getValueKind(), Result.get()->getObjectKind(), OpLoc, in BuildSynthesizedThreeWayComparison()
15804 Sema::BuildOverloadedArrowExpr(Scope *S, Expr *Base, SourceLocation OpLoc, in BuildOverloadedArrowExpr() argument
15828 LookupResult R(*this, OpName, OpLoc, LookupOrdinaryName); in BuildOverloadedArrowExpr()
15843 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in BuildOverloadedArrowExpr()
15858 Diag(OpLoc, diag::err_typecheck_member_reference_arrow) in BuildOverloadedArrowExpr()
15861 Diag(OpLoc, diag::note_typecheck_member_reference_suggestion) in BuildOverloadedArrowExpr()
15862 << FixItHint::CreateReplacement(OpLoc, "."); in BuildOverloadedArrowExpr()
15865 Diag(OpLoc, diag::err_ovl_no_viable_oper) in BuildOverloadedArrowExpr()
15873 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_unary) in BuildOverloadedArrowExpr()
15881 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper) in BuildOverloadedArrowExpr()
15887 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
15907 Base, HadMultipleCandidates, OpLoc); in BuildOverloadedArrowExpr()
15917 ResultTy, VK, OpLoc, CurFPFeatureOverrides()); in BuildOverloadedArrowExpr()
15919 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method)) in BuildOverloadedArrowExpr()