• Home
  • Raw
  • Download

Lines Matching refs:OpLoc

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