• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:OpLoc

3414                         SourceLocation OpLoc, PredefinedExpr::IdentKind K) {
3429 /*Pascal*/ false, Result.first, OpLoc);
3433 ExprResult Sema::BuildUniqueStableName(SourceLocation OpLoc,
3438 Context, Operand->getType(), OpLoc, PredefinedExpr::UniqueStableNameType);
3440 return PredefinedExpr::Create(Context, OpLoc, ResultTy,
3445 ExprResult Sema::BuildUniqueStableName(SourceLocation OpLoc,
3450 Context, E->getType(), OpLoc, PredefinedExpr::UniqueStableNameExpr);
3452 return PredefinedExpr::Create(Context, OpLoc, ResultTy,
3456 ExprResult Sema::ActOnUniqueStableNameExpr(SourceLocation OpLoc,
3465 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
3467 return BuildUniqueStableName(OpLoc, TInfo);
3470 ExprResult Sema::ActOnUniqueStableNameExpr(SourceLocation OpLoc,
3473 return BuildUniqueStableName(OpLoc, E);
4153 SourceLocation OpLoc,
4176 return CheckVecStepTraitOperandType(*this, ExprType, OpLoc, ExprRange);
4179 if (!CheckExtensionTraitOperandType(*this, ExprType, OpLoc, ExprRange,
4184 OpLoc, ExprType, diag::err_sizeof_alignof_incomplete_or_sizeless_type,
4189 Diag(OpLoc, diag::err_sizeof_alignof_function_type)
4194 if (CheckObjCTraitOperandConstraints(*this, ExprType, OpLoc, ExprRange,
4375 SourceLocation OpLoc,
4384 CheckUnaryExprOrTypeTraitOperand(T, OpLoc, R, ExprKind))
4413 ExprKind, TInfo, Context.getSizeType(), OpLoc, R.getEnd());
4419 Sema::CreateUnaryExprOrTypeTraitExpr(Expr *E, SourceLocation OpLoc,
4456 ExprKind, E, Context.getSizeType(), OpLoc, E->getSourceRange().getEnd());
4463 Sema::ActOnUnaryExprOrTypeTraitExpr(SourceLocation OpLoc,
4472 return CreateUnaryExprOrTypeTraitExpr(TInfo, OpLoc, ExprKind, ArgRange);
4476 ExprResult Result = CreateUnaryExprOrTypeTraitExpr(ArgEx, OpLoc, ExprKind);
4517 Sema::ActOnPostfixUnaryOp(Scope *S, SourceLocation OpLoc,
4531 return BuildUnaryOp(S, OpLoc, Opc, Input);
8430 SourceLocation OpLoc,
8449 Self.Diag(OpLoc, DiagID)
8454 Self, OpLoc,
8459 SuggestParentheses(Self, OpLoc,
10256 static void diagnoseStringPlusInt(Sema &Self, SourceLocation OpLoc,
10271 Self.Diag(OpLoc, diag::warn_string_plus_int)
10277 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
10279 << FixItHint::CreateReplacement(SourceRange(OpLoc), "[")
10282 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
10286 static void diagnoseStringPlusChar(Sema &Self, SourceLocation OpLoc,
10317 Self.Diag(OpLoc, diag::warn_string_plus_char)
10320 Self.Diag(OpLoc, diag::warn_string_plus_char)
10327 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
10329 << FixItHint::CreateReplacement(SourceRange(OpLoc), "[")
10332 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
12971 SourceLocation OpLoc,
12988 S.Diag(OpLoc, diag::err_decrement_bool) << Op->getSourceRange();
12992 S.Diag(OpLoc, S.getLangOpts().CPlusPlus17 ? diag::ext_increment_bool
12997 S.Diag(OpLoc, diag::err_increment_decrement_enum) << IsInc << ResType;
13003 if (!checkArithmeticOpPointerOperand(S, OpLoc, Op))
13008 if (checkArithmeticIncompletePointerType(S, OpLoc, Op) ||
13009 checkArithmeticOnObjCPointer(S, OpLoc, Op))
13013 S.Diag(OpLoc, diag::ext_integer_increment_complex)
13018 return CheckIncrementDecrementOperand(S, PR.get(), VK, OK, OpLoc,
13030 S.Diag(OpLoc, diag::err_typecheck_illegal_increment_decrement)
13036 if (CheckForModifiableLvalue(Op, OpLoc, S))
13041 S.Diag(OpLoc, diag::warn_deprecated_increment_decrement_volatile)
13145 QualType Sema::CheckAddressOfOperand(ExprResult &OrigOp, SourceLocation OpLoc) {
13151 Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof_addrof_function)
13159 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
13171 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
13224 Diag(OpLoc, isSFINAEContext() ? diag::err_typecheck_addrof_temporary
13240 Diag(OpLoc, diag::err_invalid_form_pointer_member_function)
13249 Diag(OpLoc, diag::err_parens_pointer_member_function)
13255 Diag(OpLoc, diag::err_unqualified_pointer_member_function)
13260 Diag(OpLoc, diag::err_unqualified_pointer_member_function)
13268 Diag(OpLoc, diag::err_typecheck_addrof_dtor) << op->getSourceRange();
13274 (void)isCompleteType(OpLoc, MPTy);
13284 Diag(OpLoc, diag::err_typecheck_invalid_lvalue_addrof)
13320 Diag(OpLoc,
13334 (void)isCompleteType(OpLoc, MPTy);
13344 diagnoseAddressOfInvalidType(*this, OpLoc, op, AddressOfError);
13352 Diag(OpLoc, diag::ext_typecheck_addrof_void) << op->getSourceRange();
13384 SourceLocation OpLoc) {
13412 return CheckIndirectionOperand(S, PR.get(), VK, OpLoc);
13416 S.Diag(OpLoc, diag::err_typecheck_indirection_requires_pointer)
13431 S.Diag(OpLoc, diag::ext_typecheck_indirection_through_void_pointer)
13508 SourceLocation OpLoc, bool IsBuiltin) {
13513 if (OpLoc.isInvalid() || OpLoc.isMacroID())
13535 S.Diag(OpLoc, IsBuiltin ? diag::warn_self_assignment_builtin
13544 SourceLocation OpLoc) {
13579 S.Diag(OpLoc, Diag)
13602 bool IsCompAssign, SourceLocation OpLoc,
13622 ResultTy, VK, OK, OpLoc, FPFeatures,
13627 BinOpResTy, VK, OK, OpLoc, FPFeatures);
13682 ExprResult Sema::CreateBuiltinBinOp(SourceLocation OpLoc,
13724 Diag(OpLoc, diag::err_opencl_atomic_init) << 0 << SR;
13726 ResultTy = InvalidOperands(OpLoc, LHS, RHS);
13736 ResultTy = InvalidOperands(OpLoc, LHS, RHS);
13743 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, QualType());
13750 DiagnoseSelfAssignment(*this, LHS.get(), RHS.get(), OpLoc, true);
13751 DiagnoseSelfMove(LHS.get(), RHS.get(), OpLoc);
13780 ResultTy = CheckPointerToMemberOperands(LHS, RHS, VK, OpLoc,
13786 ResultTy = CheckMultiplyDivideOperands(LHS, RHS, OpLoc, false,
13790 ResultTy = CheckRemainderOperands(LHS, RHS, OpLoc);
13794 ResultTy = CheckAdditionOperands(LHS, RHS, OpLoc, Opc);
13798 ResultTy = CheckSubtractionOperands(LHS, RHS, OpLoc);
13802 ResultTy = CheckShiftOperands(LHS, RHS, OpLoc, Opc);
13809 ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc);
13814 ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc);
13818 ResultTy = CheckCompareOperands(LHS, RHS, OpLoc, Opc);
13822 checkObjCPointerIntrospection(*this, LHS, RHS, OpLoc);
13826 ResultTy = CheckBitwiseOperands(LHS, RHS, OpLoc, Opc);
13831 ResultTy = CheckLogicalOperands(LHS, RHS, OpLoc, Opc);
13836 CompResultTy = CheckMultiplyDivideOperands(LHS, RHS, OpLoc, true,
13840 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13843 CompResultTy = CheckRemainderOperands(LHS, RHS, OpLoc, true);
13846 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13850 CompResultTy = CheckAdditionOperands(LHS, RHS, OpLoc, Opc, &CompLHSTy);
13852 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13856 CompResultTy = CheckSubtractionOperands(LHS, RHS, OpLoc, &CompLHSTy);
13858 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13862 CompResultTy = CheckShiftOperands(LHS, RHS, OpLoc, Opc, true);
13865 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13869 DiagnoseSelfAssignment(*this, LHS.get(), RHS.get(), OpLoc, true);
13872 CompResultTy = CheckBitwiseOperands(LHS, RHS, OpLoc, Opc);
13875 ResultTy = CheckAssignmentOperands(LHS.get(), RHS, OpLoc, CompResultTy);
13878 ResultTy = CheckCommaOperands(*this, LHS, RHS, OpLoc);
13911 << FixItHint::CreateReplacement(SourceRange(OISA->getOpLoc(), OpLoc),
13920 DiagnoseDirectIsaAccess(*this, OIRE, OpLoc, RHS.get());
13926 OpLoc, CurFPFeatureOverrides());
13928 VK, OK, OpLoc, CurFPFeatureOverrides());
13946 OpLoc, CurFPFeatureOverrides());
13949 Context, LHS.get(), RHS.get(), Opc, ResultTy, VK, OK, OpLoc,
13958 SourceLocation OpLoc, Expr *LHSExpr,
13977 ? SourceRange(LHSExpr->getBeginLoc(), OpLoc)
13978 : SourceRange(OpLoc, RHSExpr->getEndLoc());
13985 Self.Diag(OpLoc, diag::warn_precedence_bitwise_rel)
13987 SuggestParentheses(Self, OpLoc,
13990 SuggestParentheses(Self, OpLoc,
14000 EmitDiagnosticForLogicalAndInLogicalOr(Sema &Self, SourceLocation OpLoc,
14004 << Bop->getSourceRange() << OpLoc;
14028 static void DiagnoseLogicalAndInLogicalOrLHS(Sema &S, SourceLocation OpLoc,
14037 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop);
14043 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, RBop);
14050 static void DiagnoseLogicalAndInLogicalOrRHS(Sema &S, SourceLocation OpLoc,
14059 return EmitDiagnosticForLogicalAndInLogicalOr(S, OpLoc, Bop);
14068 SourceLocation OpLoc, Expr *SubExpr) {
14073 << Bop->getSourceRange() << OpLoc;
14082 static void DiagnoseAdditionInShift(Sema &S, SourceLocation OpLoc,
14088 << Bop->getSourceRange() << OpLoc << Shift << Op;
14096 static void DiagnoseShiftCompare(Sema &S, SourceLocation OpLoc,
14110 S.Diag(OpLoc, diag::warn_overloaded_shift_in_comparison)
14118 S, OpLoc, S.PDiag(diag::note_evaluate_comparison_first),
14125 SourceLocation OpLoc, Expr *LHSExpr,
14129 DiagnoseBitwisePrecedence(Self, Opc, OpLoc, LHSExpr, RHSExpr);
14133 !OpLoc.isMacroID()/* Don't warn in macros. */) {
14134 DiagnoseBitwiseOpInBitwiseOp(Self, Opc, OpLoc, LHSExpr);
14135 DiagnoseBitwiseOpInBitwiseOp(Self, Opc, OpLoc, RHSExpr);
14140 if (Opc == BO_LOr && !OpLoc.isMacroID()/* Don't warn in macros. */) {
14141 DiagnoseLogicalAndInLogicalOrLHS(Self, OpLoc, LHSExpr, RHSExpr);
14142 DiagnoseLogicalAndInLogicalOrRHS(Self, OpLoc, LHSExpr, RHSExpr);
14148 DiagnoseAdditionInShift(Self, OpLoc, LHSExpr, Shift);
14149 DiagnoseAdditionInShift(Self, OpLoc, RHSExpr, Shift);
14155 DiagnoseShiftCompare(Self, OpLoc, LHSExpr, RHSExpr);
14173 static ExprResult BuildOverloadedBinOp(Sema &S, Scope *Sc, SourceLocation OpLoc,
14184 DiagnoseSelfAssignment(S, LHS, RHS, OpLoc, false);
14185 CheckIdentityFieldAssignment(LHS, RHS, OpLoc, S);
14211 return S.CreateOverloadedBinOp(OpLoc, Opc, Functions, LHS, RHS);
14214 ExprResult Sema::BuildBinOp(Scope *S, SourceLocation OpLoc,
14235 return checkPseudoObjectAssignment(S, OpLoc, Opc, LHSExpr, RHSExpr);
14250 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
14288 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
14290 return CreateBuiltinBinOp(OpLoc, Opc, LHSExpr, RHSExpr);
14296 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
14307 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
14313 return BuildOverloadedBinOp(*this, S, OpLoc, Opc, LHSExpr, RHSExpr);
14317 return CreateBuiltinBinOp(OpLoc, Opc, LHSExpr, RHSExpr);
14330 ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation OpLoc,
14348 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14360 OpLoc,
14368 resultType = CheckAddressOfOperand(Input, OpLoc);
14375 resultType = CheckIndirectionOperand(*this, Input.get(), VK, OpLoc);
14409 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14422 Diag(OpLoc, diag::ext_integer_complement_complex)
14431 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14434 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14465 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14476 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14485 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14492 return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr)
14502 resultType = CheckRealImagOperand(*this, Input, OpLoc, Opc == UO_Real);
14540 OpLoc, CanOverflow, CurFPFeatureOverrides());
14592 ExprResult Sema::BuildUnaryOp(Scope *S, SourceLocation OpLoc,
14600 return checkPseudoObjectIncDec(S, OpLoc, Opc, Input);
14604 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
14612 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
14633 return CreateOverloadedUnaryOp(OpLoc, Opc, Functions, Input);
14636 return CreateBuiltinUnaryOp(OpLoc, Opc, Input);
14640 ExprResult Sema::ActOnUnaryOp(Scope *S, SourceLocation OpLoc,
14642 return BuildUnaryOp(S, OpLoc, ConvertTokenKindToUnaryOpcode(Op), Input);
14646 ExprResult Sema::ActOnAddrLabel(SourceLocation OpLoc, SourceLocation LabLoc,
14650 return new (Context) AddrLabelExpr(OpLoc, LabLoc, TheDecl,
19137 Sema::ActOnObjCBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
19142 LookupResult Result(*this, &Context.Idents.get("BOOL"), OpLoc,
19153 ObjCBoolLiteralExpr(Kind == tok::kw___objc_yes, BoolT, OpLoc);