• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:OpLoc

618 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
622 return ExprError(Diag(OpLoc, diag::err_openclcxx_not_supported)
628 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
642 return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
646 return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti));
660 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
662 return BuildCXXTypeId(TypeInfoType, OpLoc, TInfo, RParenLoc);
666 return BuildCXXTypeId(TypeInfoType, OpLoc, (Expr*)TyOrExpr, RParenLoc);
751 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc,
765 TInfo = Context.getTrivialTypeSourceInfo(T, OpLoc);
767 return BuildCXXUuidof(GuidType, OpLoc, TInfo, RParenLoc);
771 return BuildCXXUuidof(GuidType, OpLoc, (Expr*)TyOrExpr, RParenLoc);
776 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) {
780 CXXBoolLiteralExpr(Kind == tok::kw_true, Context.BoolTy, OpLoc);
791 Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) {
824 return BuildCXXThrow(OpLoc, Ex, IsThrownVarInScope);
827 ExprResult Sema::BuildCXXThrow(SourceLocation OpLoc, Expr *Ex,
831 !getSourceManager().isInSystemHeader(OpLoc) && !getLangOpts().CUDA) {
833 targetDiag(OpLoc, diag::err_exceptions_disabled) << "throw";
838 CUDADiagIfDeviceCode(OpLoc, diag::err_cuda_device_exceptions)
842 Diag(OpLoc, diag::err_omp_simd_region_cannot_use_stmt) << "throw";
846 if (CheckCXXThrowOperand(OpLoc, ExceptionObjectTy, Ex))
869 OpLoc, ExceptionObjectTy,
879 CXXThrowExpr(Ex, Context.VoidTy, OpLoc, IsThrownVarInScope);
7088 SourceLocation OpLoc,
7131 Diag(OpLoc, diag::err_operator_arrow_depth_exceeded)
7134 Diag(OpLoc, diag::note_operator_arrow_depth)
7140 S, Base, OpLoc,
7151 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
7153 << FixItHint::CreateReplacement(OpLoc, ".");
7157 Diag(OpLoc, diag::err_typecheck_member_reference_arrow)
7173 Diag(OpLoc, diag::err_operator_arrow_circular) << StartingType;
7217 RequireCompleteType(OpLoc, BaseType, diag::err_incomplete_member_access))
7230 tok::TokenKind& OpKind, SourceLocation OpLoc) {
7249 S.Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
7251 << FixItHint::CreateReplacement(OpLoc, ".");
7281 SourceLocation OpLoc,
7291 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
7297 Diag(OpLoc, diag::ext_pseudo_dtor_on_void) << Base->getSourceRange();
7299 Diag(OpLoc, diag::err_pseudo_dtor_base_not_scalar)
7321 Diag(OpLoc, diag::err_typecheck_member_reference_suggestion)
7327 Diagnostic << FixItHint::CreateReplacement(OpLoc, "->");
7389 OpKind == tok::arrow, OpLoc,
7400 SourceLocation OpLoc,
7415 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
7539 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS,
7545 SourceLocation OpLoc,
7550 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc))
7562 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, CXXScopeSpec(),