Lines Matching refs:OpLoc

647 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,  in ActOnCXXTypeid()  argument
651 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in ActOnCXXTypeid()
657 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
671 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
675 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti)); in ActOnCXXTypeid()
689 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
691 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid()
696 BuildCXXTypeId(TypeInfoType, OpLoc, (Expr *)TyOrExpr, RParenLoc); in ActOnCXXTypeid()
701 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled) in ActOnCXXTypeid()
787 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof() argument
801 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXUuidof()
803 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc); in ActOnCXXUuidof()
807 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc); in ActOnCXXUuidof()
811 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) { in ActOnCXXBoolLiteral() argument
815 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc); in ActOnCXXBoolLiteral()
824 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) { in ActOnCXXThrow() argument
857 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope); in ActOnCXXThrow()
860 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex, in BuildCXXThrow() argument
868 !getSourceManager().isInSystemHeader(OpLoc) && !getLangOpts().CUDA) { in BuildCXXThrow()
870 targetDiag(OpLoc, diag::err_exceptions_disabled) << "throw"; in BuildCXXThrow()
875 targetDiag(OpLoc, diag::warn_throw_not_valid_on_target) << T.str(); in BuildCXXThrow()
879 CUDA().DiagIfDeviceCode(OpLoc, diag::err_cuda_device_exceptions) in BuildCXXThrow()
883 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw"; in BuildCXXThrow()
888 Diag(OpLoc, diag::err_acc_branch_in_out_compute_construct) in BuildCXXThrow()
911 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex)) in BuildCXXThrow()
915 InitializedEntity::InitializeException(OpLoc, ExceptionObjectTy); in BuildCXXThrow()
927 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope); in BuildCXXThrow()
7839 SourceLocation OpLoc, in ActOnStartCXXMemberReference() argument
7882 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded) in ActOnStartCXXMemberReference()
7885 Diag(OpLoc, diag::note_operator_arrow_depth) in ActOnStartCXXMemberReference()
7891 S, Base, OpLoc, in ActOnStartCXXMemberReference()
7902 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in ActOnStartCXXMemberReference()
7904 << FixItHint::CreateReplacement(OpLoc, "."); in ActOnStartCXXMemberReference()
7908 Diag(OpLoc, diag::err_typecheck_member_reference_arrow) in ActOnStartCXXMemberReference()
7924 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType; in ActOnStartCXXMemberReference()
7968 RequireCompleteType(OpLoc, BaseType, in ActOnStartCXXMemberReference()
7983 tok::TokenKind &OpKind, SourceLocation OpLoc) { in CheckArrow() argument
8014 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in CheckArrow()
8016 << FixItHint::CreateReplacement(OpLoc, "."); in CheckArrow()
8046 SourceLocation OpLoc, in BuildPseudoDestructorExpr() argument
8056 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in BuildPseudoDestructorExpr()
8062 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange(); in BuildPseudoDestructorExpr()
8064 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar) in BuildPseudoDestructorExpr()
8086 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in BuildPseudoDestructorExpr()
8092 Diagnostic << FixItHint::CreateReplacement(OpLoc, "->"); in BuildPseudoDestructorExpr()
8154 OpKind == tok::arrow, OpLoc, in BuildPseudoDestructorExpr()
8165 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
8180 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
8304 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS, in ActOnPseudoDestructorExpr()
8310 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
8317 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
8348 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(), in ActOnPseudoDestructorExpr()