Lines Matching defs:OpLoc

654 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
658 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported)
664 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
678 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
682 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti));
696 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
698 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc);
703 BuildCXXTypeId(TypeInfoType, OpLoc, (Expr *)TyOrExpr, RParenLoc);
708 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled)
794 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc,
808 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
810 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc);
814 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc);
818 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
822 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc);
831 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) {
864 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope);
867 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex,
875 !getSourceManager().isInSystemHeader(OpLoc) && !getLangOpts().CUDA) {
877 targetDiag(OpLoc, diag::err_exceptions_disabled) << "throw";
882 targetDiag(OpLoc, diag::warn_throw_not_valid_on_target) << T.str();
886 CUDA().DiagIfDeviceCode(OpLoc, diag::err_cuda_device_exceptions)
890 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw";
895 Diag(OpLoc, diag::err_acc_branch_in_out_compute_construct)
918 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex))
922 InitializedEntity::InitializeException(OpLoc, ExceptionObjectTy);
934 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope);
7987 SourceLocation OpLoc,
8030 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded)
8033 Diag(OpLoc, diag::note_operator_arrow_depth)
8039 S, Base, OpLoc,
8050 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
8052 << FixItHint::CreateReplacement(OpLoc, ".");
8056 Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
8072 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType;
8116 RequireCompleteType(OpLoc, BaseType,
8131 tok::TokenKind &OpKind, SourceLocation OpLoc) {
8162 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
8164 << FixItHint::CreateReplacement(OpLoc, ".");
8194 SourceLocation OpLoc,
8204 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
8210 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange();
8212 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar)
8234 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
8240 Diagnostic << FixItHint::CreateReplacement(OpLoc, "->");
8302 OpKind == tok::arrow, OpLoc,
8313 SourceLocation OpLoc,
8328 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
8452 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS,
8458 SourceLocation OpLoc,
8465 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc) ||
8497 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(),