Lines Matching refs:OpLoc

641 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,  in ActOnCXXTypeid()  argument
645 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported) in ActOnCXXTypeid()
651 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
665 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
669 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti)); in ActOnCXXTypeid()
683 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
685 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid()
690 BuildCXXTypeId(TypeInfoType, OpLoc, (Expr *)TyOrExpr, RParenLoc); in ActOnCXXTypeid()
695 Diag(OpLoc, diag::warn_no_typeid_with_rtti_disabled) in ActOnCXXTypeid()
783 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof() argument
797 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXUuidof()
799 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc); in ActOnCXXUuidof()
803 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc); in ActOnCXXUuidof()
808 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) { in ActOnCXXBoolLiteral() argument
812 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc); in ActOnCXXBoolLiteral()
823 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) { in ActOnCXXThrow() argument
856 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope); in ActOnCXXThrow()
859 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex, in BuildCXXThrow() argument
863 !getSourceManager().isInSystemHeader(OpLoc) && !getLangOpts().CUDA) { in BuildCXXThrow()
865 targetDiag(OpLoc, diag::err_exceptions_disabled) << "throw"; in BuildCXXThrow()
870 CUDADiagIfDeviceCode(OpLoc, diag::err_cuda_device_exceptions) in BuildCXXThrow()
874 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw"; in BuildCXXThrow()
896 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex)) in BuildCXXThrow()
900 InitializedEntity::InitializeException(OpLoc, ExceptionObjectTy); in BuildCXXThrow()
912 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope); in BuildCXXThrow()
7482 SourceLocation OpLoc, in ActOnStartCXXMemberReference() argument
7525 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded) in ActOnStartCXXMemberReference()
7528 Diag(OpLoc, diag::note_operator_arrow_depth) in ActOnStartCXXMemberReference()
7534 S, Base, OpLoc, in ActOnStartCXXMemberReference()
7545 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in ActOnStartCXXMemberReference()
7547 << FixItHint::CreateReplacement(OpLoc, "."); in ActOnStartCXXMemberReference()
7551 Diag(OpLoc, diag::err_typecheck_member_reference_arrow) in ActOnStartCXXMemberReference()
7567 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType; in ActOnStartCXXMemberReference()
7611 RequireCompleteType(OpLoc, BaseType, in ActOnStartCXXMemberReference()
7626 tok::TokenKind &OpKind, SourceLocation OpLoc) { in CheckArrow() argument
7657 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in CheckArrow()
7659 << FixItHint::CreateReplacement(OpLoc, "."); in CheckArrow()
7689 SourceLocation OpLoc, in BuildPseudoDestructorExpr() argument
7699 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in BuildPseudoDestructorExpr()
7705 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange(); in BuildPseudoDestructorExpr()
7707 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar) in BuildPseudoDestructorExpr()
7729 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in BuildPseudoDestructorExpr()
7735 Diagnostic << FixItHint::CreateReplacement(OpLoc, "->"); in BuildPseudoDestructorExpr()
7797 OpKind == tok::arrow, OpLoc, in BuildPseudoDestructorExpr()
7808 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
7823 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
7947 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS, in ActOnPseudoDestructorExpr()
7953 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
7958 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
7975 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(), in ActOnPseudoDestructorExpr()