Lines Matching refs:OpLoc
466 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXTypeid() argument
470 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
484 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid)); in ActOnCXXTypeid()
488 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti)); in ActOnCXXTypeid()
502 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXTypeid()
504 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc); in ActOnCXXTypeid()
508 return BuildCXXTypeId(TypeInfoType, OpLoc, (Expr*)TyOrExpr, RParenLoc); in ActOnCXXTypeid()
594 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof() argument
603 return ExprError(Diag(OpLoc, diag::err_need_header_before_ms_uuidof)); in ActOnCXXUuidof()
617 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc); in ActOnCXXUuidof()
619 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc); in ActOnCXXUuidof()
623 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc); in ActOnCXXUuidof()
628 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) { in ActOnCXXBoolLiteral() argument
632 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc); in ActOnCXXBoolLiteral()
643 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) { in ActOnCXXThrow() argument
676 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope); in ActOnCXXThrow()
679 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex, in BuildCXXThrow() argument
683 !getSourceManager().isInSystemHeader(OpLoc)) in BuildCXXThrow()
684 Diag(OpLoc, diag::err_exceptions_disabled) << "throw"; in BuildCXXThrow()
687 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw"; in BuildCXXThrow()
691 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex)) in BuildCXXThrow()
714 OpLoc, ExceptionObjectTy, in BuildCXXThrow()
724 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope); in BuildCXXThrow()
5914 SourceLocation OpLoc, in ActOnStartCXXMemberReference() argument
5957 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded) in ActOnStartCXXMemberReference()
5960 Diag(OpLoc, diag::note_operator_arrow_depth) in ActOnStartCXXMemberReference()
5966 S, Base, OpLoc, in ActOnStartCXXMemberReference()
5977 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in ActOnStartCXXMemberReference()
5979 << FixItHint::CreateReplacement(OpLoc, "."); in ActOnStartCXXMemberReference()
5983 Diag(OpLoc, diag::err_typecheck_member_reference_arrow) in ActOnStartCXXMemberReference()
5999 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType; in ActOnStartCXXMemberReference()
6044 RequireCompleteType(OpLoc, BaseType, diag::err_incomplete_member_access)) in ActOnStartCXXMemberReference()
6057 tok::TokenKind& OpKind, SourceLocation OpLoc) { in CheckArrow() argument
6076 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion) in CheckArrow()
6078 << FixItHint::CreateReplacement(OpLoc, "."); in CheckArrow()
6090 SourceLocation OpLoc, in BuildPseudoDestructorExpr() argument
6100 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in BuildPseudoDestructorExpr()
6106 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange(); in BuildPseudoDestructorExpr()
6108 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar) in BuildPseudoDestructorExpr()
6177 OpKind == tok::arrow, OpLoc, in BuildPseudoDestructorExpr()
6188 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
6203 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
6319 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS, in ActOnPseudoDestructorExpr()
6325 SourceLocation OpLoc, in ActOnPseudoDestructorExpr() argument
6330 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr()
6342 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(), in ActOnPseudoDestructorExpr()