Home | History | Annotate | Download | only in Sema

Lines Matching refs:OpLoc

466 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
470 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
484 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
488 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti));
502 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
504 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc);
508 return BuildCXXTypeId(TypeInfoType, OpLoc, (Expr*)TyOrExpr, RParenLoc);
553 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc,
562 return ExprError(Diag(OpLoc, diag::err_need_header_before_ms_uuidof));
576 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
578 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc);
582 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc);
587 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
591 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc);
602 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) {
635 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope);
638 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex,
642 !getSourceManager().isInSystemHeader(OpLoc))
643 Diag(OpLoc, diag::err_exceptions_disabled) << "throw";
646 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw";
650 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex))
673 OpLoc, ExceptionObjectTy,
683 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope);
5638 SourceLocation OpLoc,
5681 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded)
5684 Diag(OpLoc, diag::note_operator_arrow_depth)
5690 S, Base, OpLoc,
5701 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
5703 << FixItHint::CreateReplacement(OpLoc, ".");
5707 Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
5723 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType;
5768 RequireCompleteType(OpLoc, BaseType, diag::err_incomplete_member_access))
5781 tok::TokenKind& OpKind, SourceLocation OpLoc) {
5800 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
5802 << FixItHint::CreateReplacement(OpLoc, ".");
5814 SourceLocation OpLoc,
5824 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
5830 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange();
5832 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar)
5901 OpKind == tok::arrow, OpLoc,
5912 SourceLocation OpLoc,
5927 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
6043 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS,
6049 SourceLocation OpLoc,
6054 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
6066 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(),