Lines Matching refs:OpLoc
3636 SourceLocation OpLoc,
3658 return CheckVecStepTraitOperandType(*this, ExprType, OpLoc, ExprRange);
3661 if (!CheckExtensionTraitOperandType(*this, ExprType, OpLoc, ExprRange,
3665 if (RequireCompleteType(OpLoc, ExprType,
3671 Diag(OpLoc, diag::err_sizeof_alignof_function_type)
3676 if (CheckObjCTraitOperandConstraints(*this, ExprType, OpLoc, ExprRange,
3753 SourceLocation OpLoc,
3762 CheckUnaryExprOrTypeTraitOperand(T, OpLoc, R, ExprKind))
3767 ExprKind, TInfo, Context.getSizeType(), OpLoc, R.getEnd());
3773 Sema::CreateUnaryExprOrTypeTraitExpr(Expr *E, SourceLocation OpLoc,
3810 ExprKind, E, Context.getSizeType(), OpLoc, E->getSourceRange().getEnd());
3817 Sema::ActOnUnaryExprOrTypeTraitExpr(SourceLocation OpLoc,
3826 return CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, ArgRange);
3830 ExprResult Result = CreateUnaryExprOrTypeTraitExpr(ArgEx, OpLoc, ExprKind);
3871 Sema::ActOnPostfixUnaryOp(Scope *S, SourceLocation OpLoc,
3885 return BuildUnaryOp(S, OpLoc, Opc, Input);
3892 SourceLocation opLoc,
3899 S.Diag(opLoc, diag::err_arithmetic_nonfragile_interface)
6588 SourceLocation OpLoc,
6603 Self.Diag(OpLoc, diag::warn_precedence_conditional)
6607 SuggestParentheses(Self, OpLoc,
6612 SuggestParentheses(Self, OpLoc,
7814 static void diagnoseStringPlusInt(Sema &Self, SourceLocation OpLoc,
7838 Self.Diag(OpLoc, diag::warn_string_plus_int)
7844 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
7846 << FixItHint::CreateReplacement(SourceRange(OpLoc), "[")
7849 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
7853 static void diagnoseStringPlusChar(Sema &Self, SourceLocation OpLoc,
7884 Self.Diag(OpLoc, diag::warn_string_plus_char)
7887 Self.Diag(OpLoc, diag::warn_string_plus_char)
7894 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
7896 << FixItHint::CreateReplacement(SourceRange(OpLoc), "[")
7899 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
9659 SourceLocation OpLoc,
9676 S.Diag(OpLoc, diag::err_decrement_bool) << Op->getSourceRange();
9680 S.Diag(OpLoc, S.getLangOpts().CPlusPlus1z ? diag::ext_increment_bool
9685 S.Diag(OpLoc, diag::err_increment_decrement_enum) << IsInc << ResType;
9691 if (!checkArithmeticOpPointerOperand(S, OpLoc, Op))
9696 if (checkArithmeticIncompletePointerType(S, OpLoc, Op) ||
9697 checkArithmeticOnObjCPointer(S, OpLoc, Op))
9701 S.Diag(OpLoc, diag::ext_integer_increment_complex)
9706 return CheckIncrementDecrementOperand(S, PR.get(), VK, OK, OpLoc,
9718 S.Diag(OpLoc, diag::err_typecheck_illegal_increment_decrement)
9724 if (CheckForModifiableLvalue(Op, OpLoc, S))
9821 QualType Sema::CheckAddressOfOperand(ExprResult &OrigOp, SourceLocation OpLoc) {
9827 Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof_addrof_function)
9835 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
9847 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
9893 Diag(OpLoc, isSFINAEContext() ? diag::err_typecheck_addrof_temporary
9909 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
9918 Diag(OpLoc, diag::err_parens_pointer_member_function)
9924 Diag(OpLoc, diag::err_unqualified_pointer_member_function)
9929 Diag(OpLoc, diag::err_unqualified_pointer_member_function)
9937 Diag(OpLoc, diag::err_typecheck_addrof_dtor) << op->getSourceRange();
9943 (void)isCompleteType(OpLoc, MPTy);
9953 Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof)
9986 Diag(OpLoc,
10000 (void)isCompleteType(OpLoc, MPTy);
10009 diagnoseAddressOfInvalidType(*this, OpLoc, op, AddressOfError);
10017 Diag(OpLoc, diag::ext_typecheck_addrof_void) << op->getSourceRange();
10046 SourceLocation OpLoc) {
10072 return CheckIndirectionOperand(S, PR.get(), VK, OpLoc);
10076 S.Diag(OpLoc, diag::err_typecheck_indirection_requires_pointer)
10091 S.Diag(OpLoc, diag::ext_typecheck_indirection_through_void_pointer)
10168 SourceLocation OpLoc) {
10171 if (OpLoc.isInvalid() || OpLoc.isMacroID())
10193 S.Diag(OpLoc, diag::warn_self_assignment)
10201 SourceLocation OpLoc) {
10236 S.Diag(OpLoc, Diag)
10256 ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc,
10308 Diag(OpLoc, diag::err_atomic_init_constant) << SR;
10310 ResultTy = InvalidOperands(OpLoc, LHS, RHS);
10317 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, QualType());
10324 DiagnoseSelfAssignment(*this, LHS.get(), RHS.get(), OpLoc);
10325 DiagnoseSelfMove(LHS.get(), RHS.get(), OpLoc);
10331 ResultTy = CheckPointerToMemberOperands(LHS, RHS, VK, OpLoc,
10336 ResultTy = CheckMultiplyDivideOperands(LHS, RHS, OpLoc, false,
10340 ResultTy = CheckRemainderOperands(LHS, RHS, OpLoc);
10343 ResultTy = CheckAdditionOperands(LHS, RHS, OpLoc, Opc);
10346 ResultTy = CheckSubtractionOperands(LHS, RHS, OpLoc);
10350 ResultTy = CheckShiftOperands(LHS, RHS, OpLoc, Opc);
10356 ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc, true);
10360 ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc, false);
10363 checkObjCPointerIntrospection(*this, LHS, RHS, OpLoc);
10366 ResultTy = CheckBitwiseOperands(LHS, RHS, OpLoc);
10370 ResultTy = CheckLogicalOperands(LHS, RHS, OpLoc, Opc);
10374 CompResultTy = CheckMultiplyDivideOperands(LHS, RHS, OpLoc, true,
10378 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10381 CompResultTy = CheckRemainderOperands(LHS, RHS, OpLoc, true);
10384 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10387 CompResultTy = CheckAdditionOperands(LHS, RHS, OpLoc, Opc, &CompLHSTy);
10389 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10392 CompResultTy = CheckSubtractionOperands(LHS, RHS, OpLoc, &CompLHSTy);
10394 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10398 CompResultTy = CheckShiftOperands(LHS, RHS, OpLoc, Opc, true);
10401 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10405 DiagnoseSelfAssignment(*this, LHS.get(), RHS.get(), OpLoc);
10407 CompResultTy = CheckBitwiseOperands(LHS, RHS, OpLoc, true);
10410 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
10413 ResultTy = CheckCommaOperands(*this, LHS, RHS, OpLoc);
10435 FixItHint::CreateReplacement(SourceRange(OISA->getOpLoc(), OpLoc), ",") <<
10443 DiagnoseDirectIsaAccess(*this, OIRE, OpLoc, RHS.get());
10447 OK, OpLoc, FPFeatures.fp_contract);
10455 OpLoc, FPFeatures.fp_contract);
10463 SourceLocation OpLoc, Expr *LHSExpr,
10482 OpLoc)
10483 : SourceRange(OpLoc, RHSExpr->getLocEnd());
10489 Self.Diag(OpLoc, diag::warn_precedence_bitwise_rel)
10491 SuggestParentheses(Self, OpLoc,
10494 SuggestParentheses(Self, OpLoc,
10504 EmitDiagnosticForLogicalAndInLogicalOr(Sema &Self, SourceLocation OpLoc,
10508 << Bop->getSourceRange() << OpLoc;
10532 static void DiagnoseLogicalAndInLogicalOrLHS(Sema &S, SourceLocation OpLoc,
10541 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop);
10547 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, RBop);
10554 static void DiagnoseLogicalAndInLogicalOrRHS(Sema &S, SourceLocation OpLoc,
10563 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop);
10572 SourceLocation OpLoc, Expr *SubExpr) {
10577 << Bop->getSourceRange() << OpLoc;
10586 static void DiagnoseAdditionInShift(Sema &S, SourceLocation OpLoc,
10592 << Bop->getSourceRange() << OpLoc << Shift << Op;
10600 static void DiagnoseShiftCompare(Sema &S, SourceLocation OpLoc,
10614 S.Diag(OpLoc, diag::warn_overloaded_shift_in_comparison)
10621 SuggestParentheses(S, OpLoc,
10630 SourceLocation OpLoc, Expr *LHSExpr,
10634 DiagnoseBitwisePrecedence(Self, Opc, OpLoc, LHSExpr, RHSExpr);
10638 !OpLoc.isMacroID()/* Don't warn in macros. */) {
10639 DiagnoseBitwiseOpInBitwiseOp(Self, Opc, OpLoc, LHSExpr);
10640 DiagnoseBitwiseOpInBitwiseOp(Self, Opc, OpLoc, RHSExpr);
10645 if (Opc == BO_LOr && !OpLoc.isMacroID()/* Don't warn in macros. */) {
10646 DiagnoseLogicalAndInLogicalOrLHS(Self, OpLoc, LHSExpr, RHSExpr);
10647 DiagnoseLogicalAndInLogicalOrRHS(Self, OpLoc, LHSExpr, RHSExpr);
10653 DiagnoseAdditionInShift(Self, OpLoc, LHSExpr, Shift);
10654 DiagnoseAdditionInShift(Self, OpLoc, RHSExpr, Shift);
10660 DiagnoseShiftCompare(Self, OpLoc, LHSExpr, RHSExpr);
10678 static ExprResult BuildOverloadedBinOp(Sema &S, Scope *Sc, SourceLocation OpLoc,
10694 return S.CreateOverloadedBinOp(OpLoc, Opc, Functions, LHS, RHS);
10697 ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
10711 return checkPseudoObjectAssignment(S, OpLoc, Opc, LHSExpr, RHSExpr);
10726 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10740 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10743 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10745 return CreateBuiltinBinOp(OpLoc, Opc, LHSExpr, RHSExpr);
10751 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10762 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10768 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
10772 return CreateBuiltinBinOp(OpLoc, Opc, LHSExpr, RHSExpr);
10775 ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation OpLoc,
10785 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10796 OpLoc,
10803 resultType = CheckAddressOfOperand(Input, OpLoc);
10809 resultType = CheckIndirectionOperand(*this, Input.get(), VK, OpLoc);
10832 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10845 Diag(OpLoc, diag::ext_integer_complement_complex)
10855 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10860 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10891 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10901 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10908 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
10918 resultType = CheckRealImagOperand(*this, Input, OpLoc, Opc == UO_Real);
10949 UnaryOperator(Input.get(), Opc, resultType, VK, OK, OpLoc);
10992 ExprResult Sema::BuildUnaryOp(Scope *S, SourceLocation OpLoc,
11000 return checkPseudoObjectIncDec(S, OpLoc, Opc, Input);
11004 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
11012 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
11033 return CreateOverloadedUnaryOp(OpLoc, Opc, Functions, Input);
11036 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
11040 ExprResult Sema::ActOnUnaryOp(Scope *S, SourceLocation OpLoc,
11042 return BuildUnaryOp(S, OpLoc, ConvertTokenKindToUnaryOpcode(Op), Input);
11046 ExprResult Sema::ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc,
11050 return new (Context) AddrLabelExpr(OpLoc, LabLoc, TheDecl,
14583 Sema::ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
14588 LookupResult Result(*this, &Context.Idents.get("BOOL"), OpLoc,
14599 ObjCBoolLiteralExpr(Kind == tok::kw___objc_yes, BoolT, OpLoc);