Lines Matching refs:OpLoc

7669                                        SourceLocation OpLoc,  in AddMemberOperatorCandidates()  argument
7691 if (!isCompleteType(OpLoc, T1) && !T1Rec->isBeingDefined()) in AddMemberOperatorCandidates()
7697 LookupResult Operators(*this, OpName, OpLoc, LookupOrdinaryName); in AddMemberOperatorCandidates()
9118 SourceLocation OpLoc, in AddBuiltinOperatorCandidates() argument
9136 OpLoc, in AddBuiltinOperatorCandidates()
11259 SourceLocation OpLoc, in NoteBuiltinOperatorCandidate() argument
11268 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
11273 S.Diag(OpLoc, diag::note_ovl_builtin_candidate) << TypeStr; in NoteBuiltinOperatorCandidate()
11277 static void NoteAmbiguousUserConversions(Sema &S, SourceLocation OpLoc, in NoteAmbiguousUserConversions() argument
11284 S, OpLoc, S.PDiag(diag::note_ambiguous_type_conversion)); in NoteAmbiguousUserConversions()
11576 SourceLocation OpLoc, in CompleteCandidates() argument
11612 Cands, CompareOverloadCandidatesForDisplay(S, OpLoc, Args.size(), Kind)); in CompleteCandidates()
11618 SourceLocation OpLoc) { in shouldDeferDiags() argument
11624 CompleteCandidates(S, OCD_AllCandidates, Args, OpLoc, [](auto &Cand) { in shouldDeferDiags()
11639 ArrayRef<Expr *> Args, StringRef Opc, SourceLocation OpLoc, in NoteCandidates() argument
11642 auto Cands = CompleteCandidates(S, OCD, Args, OpLoc, Filter); in NoteCandidates()
11644 S.Diag(PD.first, PD.second, shouldDeferDiags(S, Args, OpLoc)); in NoteCandidates()
11646 NoteCandidates(S, Args, Cands, Opc, OpLoc); in NoteCandidates()
11654 StringRef Opc, SourceLocation OpLoc) { in NoteCandidates() argument
11684 NoteAmbiguousUserConversions(S, OpLoc, Cand); in NoteCandidates()
11689 NoteBuiltinOperatorCandidate(S, Opc, OpLoc, Cand); in NoteCandidates()
11698 S.Diag(OpLoc, diag::note_ovl_too_many_candidates, in NoteCandidates()
11699 shouldDeferDiags(S, Args, OpLoc)) in NoteCandidates()
12808 SourceLocation OpLoc, in DiagnoseTwoPhaseOperatorLookup() argument
12812 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName); in DiagnoseTwoPhaseOperatorLookup()
12813 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R, in DiagnoseTwoPhaseOperatorLookup()
13214 Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc, in CreateOverloadedUnaryOp() argument
13221 DeclarationNameInfo OpNameInfo(OpName, OpLoc); in CreateOverloadedUnaryOp()
13244 VK_RValue, OK_Ordinary, OpLoc, false, in CreateOverloadedUnaryOp()
13253 Context.DependentTy, VK_RValue, OpLoc, in CreateOverloadedUnaryOp()
13258 OverloadCandidateSet CandidateSet(OpLoc, OverloadCandidateSet::CSK_Operator); in CreateOverloadedUnaryOp()
13264 AddMemberOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet); in CreateOverloadedUnaryOp()
13268 AddArgumentDependentLookupCandidates(OpName, OpLoc, ArgsArray, in CreateOverloadedUnaryOp()
13274 AddBuiltinOperatorCandidates(Op, OpLoc, ArgsArray, CandidateSet); in CreateOverloadedUnaryOp()
13280 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedUnaryOp()
13292 CheckMemberOperatorAccess(OpLoc, Args[0], nullptr, Best->FoundDecl); in CreateOverloadedUnaryOp()
13316 OpLoc); in CreateOverloadedUnaryOp()
13327 Context, Op, FnExpr.get(), ArgsArray, ResultTy, VK, OpLoc, in CreateOverloadedUnaryOp()
13330 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl)) in CreateOverloadedUnaryOp()
13355 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, ArgsArray)) in CreateOverloadedUnaryOp()
13365 PartialDiagnosticAt(OpLoc, in CreateOverloadedUnaryOp()
13370 UnaryOperator::getOpcodeStr(Opc), OpLoc); in CreateOverloadedUnaryOp()
13375 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper) in CreateOverloadedUnaryOp()
13379 OpLoc); in CreateOverloadedUnaryOp()
13386 return CreateBuiltinUnaryOp(OpLoc, Opc, Input); in CreateOverloadedUnaryOp()
13394 SourceLocation OpLoc = CandidateSet.getLocation(); in LookupOverloadedBinOp() local
13406 AddMemberOperatorCandidates(Op, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
13408 AddMemberOperatorCandidates(Op, OpLoc, {Args[1], Args[0]}, CandidateSet, in LookupOverloadedBinOp()
13413 AddMemberOperatorCandidates(ExtraOp, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
13415 AddMemberOperatorCandidates(ExtraOp, OpLoc, {Args[1], Args[0]}, in LookupOverloadedBinOp()
13425 AddArgumentDependentLookupCandidates(OpName, OpLoc, Args, in LookupOverloadedBinOp()
13431 AddArgumentDependentLookupCandidates(ExtraOpName, OpLoc, Args, in LookupOverloadedBinOp()
13450 AddBuiltinOperatorCandidates(Op, OpLoc, Args, CandidateSet); in LookupOverloadedBinOp()
13476 ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc, in CreateOverloadedBinOp() argument
13499 OK_Ordinary, OpLoc, CurFPFeatureOverrides(), Context.DependentTy, in CreateOverloadedBinOp()
13503 OpLoc, CurFPFeatureOverrides()); in CreateOverloadedBinOp()
13510 DeclarationNameInfo OpNameInfo(OpName, OpLoc); in CreateOverloadedBinOp()
13516 Context.DependentTy, VK_RValue, OpLoc, in CreateOverloadedBinOp()
13537 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
13542 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
13546 OpLoc, OverloadCandidateSet::CSK_Operator, in CreateOverloadedBinOp()
13556 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in CreateOverloadedBinOp()
13580 Diag(OpLoc, IsExtension ? diag::ext_ovl_rewrite_equalequal_not_bool in CreateOverloadedBinOp()
13601 *this, OpLoc, Cand.Conversions[ArgIdx], in CreateOverloadedBinOp()
13615 Diag(OpLoc, diag::ext_ovl_ambiguous_oper_binary_reversed) in CreateOverloadedBinOp()
13635 CheckMemberOperatorAccess(OpLoc, Args[0], Args[1], Best->FoundDecl); in CreateOverloadedBinOp()
13675 HadMultipleCandidates, OpLoc); in CreateOverloadedBinOp()
13685 Context, ChosenOp, FnExpr.get(), Args, ResultTy, VK, OpLoc, in CreateOverloadedBinOp()
13688 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, in CreateOverloadedBinOp()
13702 DiagnoseSelfMove(Args[0], Args[1], OpLoc); in CreateOverloadedBinOp()
13709 CheckArgAlignment(OpLoc, FnDecl, "'this'", ThisType, in CreateOverloadedBinOp()
13714 isa<CXXMethodDecl>(FnDecl), OpLoc, TheCall->getSourceRange(), in CreateOverloadedBinOp()
13731 R = CreateBuiltinUnaryOp(OpLoc, UO_LNot, R.get()); in CreateOverloadedBinOp()
13736 IntegerLiteral::Create(Context, Zero, Context.IntTy, OpLoc); in CreateOverloadedBinOp()
13744 OpLoc, Opc, Fns, IsReversed ? ZeroLiteral : R.get(), in CreateOverloadedBinOp()
13793 ExprResult E = BuildSynthesizedThreeWayComparison(OpLoc, Fns, Args[0], in CreateOverloadedBinOp()
13805 Args, OpLoc); in CreateOverloadedBinOp()
13808 Diag(OpLoc, diag::err_ovl_no_viable_oper) in CreateOverloadedBinOp()
13812 Diag(OpLoc, diag::note_assign_lhs_incomplete) in CreateOverloadedBinOp()
13820 if (DiagnoseTwoPhaseOperatorLookup(*this, Op, OpLoc, Args)) in CreateOverloadedBinOp()
13826 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
13830 CandidateSet.NoteCandidates(*this, Args, Cands, OpcStr, OpLoc); in CreateOverloadedBinOp()
13836 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_binary) in CreateOverloadedBinOp()
13843 OpLoc); in CreateOverloadedBinOp()
13851 Diag(OpLoc, diag::err_ovl_deleted_special_oper) in CreateOverloadedBinOp()
13855 Diag(OpLoc, diag::err_ovl_deleted_comparison) in CreateOverloadedBinOp()
13866 OpLoc, PDiag(diag::err_ovl_deleted_oper) in CreateOverloadedBinOp()
13872 OpLoc); in CreateOverloadedBinOp()
13877 return CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]); in CreateOverloadedBinOp()
13881 SourceLocation OpLoc, const UnresolvedSetImpl &Fns, Expr *LHS, Expr *RHS, in BuildSynthesizedThreeWayComparison() argument
13906 ExprResult Eq = CreateOverloadedBinOp(OpLoc, BO_EQ, Fns, LHS, RHS, true, true, in BuildSynthesizedThreeWayComparison()
13911 ExprResult Less = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, LHS, RHS, true, in BuildSynthesizedThreeWayComparison()
13918 Greater = CreateOverloadedBinOp(OpLoc, BO_LT, Fns, RHS, LHS, true, true, in BuildSynthesizedThreeWayComparison()
13953 Result = ActOnConditionalOp(OpLoc, OpLoc, Comparisons[I].Cmp.get(), in BuildSynthesizedThreeWayComparison()
13966 Result.get()->getValueKind(), Result.get()->getObjectKind(), OpLoc, in BuildSynthesizedThreeWayComparison()
14721 Sema::BuildOverloadedArrowExpr(Scope *S, Expr *Base, SourceLocation OpLoc, in BuildOverloadedArrowExpr() argument
14745 LookupResult R(*this, OpName, OpLoc, LookupOrdinaryName); in BuildOverloadedArrowExpr()
14759 switch (CandidateSet.BestViableFunction(*this, OpLoc, Best)) { in BuildOverloadedArrowExpr()
14774 Diag(OpLoc, diag::err_typecheck_member_reference_arrow) in BuildOverloadedArrowExpr()
14777 Diag(OpLoc, diag::note_typecheck_member_reference_suggestion) in BuildOverloadedArrowExpr()
14778 << FixItHint::CreateReplacement(OpLoc, "."); in BuildOverloadedArrowExpr()
14781 Diag(OpLoc, diag::err_ovl_no_viable_oper) in BuildOverloadedArrowExpr()
14788 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_ambiguous_oper_unary) in BuildOverloadedArrowExpr()
14796 PartialDiagnosticAt(OpLoc, PDiag(diag::err_ovl_deleted_oper) in BuildOverloadedArrowExpr()
14802 CheckMemberOperatorAccess(OpLoc, Base, nullptr, Best->FoundDecl); in BuildOverloadedArrowExpr()
14815 Base, HadMultipleCandidates, OpLoc); in BuildOverloadedArrowExpr()
14824 ResultTy, VK, OpLoc, CurFPFeatureOverrides()); in BuildOverloadedArrowExpr()
14826 if (CheckCallReturnType(Method->getReturnType(), OpLoc, TheCall, Method)) in BuildOverloadedArrowExpr()