Lines Matching refs:OpRange
75 SourceRange OpRange; member
120 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign()
127 if (Self.CheckObjCARCConversion(OpRange, DestType, src, CCK) == in checkObjCARCConversion()
164 SourceRange OpRange,
170 SourceRange OpRange,
176 SourceRange OpRange,
184 SourceRange OpRange,
192 SourceRange OpRange,
198 SourceRange OpRange,
207 SourceRange OpRange,
248 Op.OpRange = SourceRange(OpLoc, Parens.getEnd()); in BuildCXXNamedCast()
596 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast()
606 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast()
613 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
629 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast()
636 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast()
637 << CT_Dynamic << OrigSrcType << this->DestType << OpRange; in CheckDynamicCast()
651 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast()
658 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
672 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_qualifiers_away) in CheckDynamicCast()
673 << CT_Dynamic << OrigSrcType << this->DestType << OpRange; in CheckDynamicCast()
688 Self.IsDerivedFrom(OpRange.getBegin(), SrcPointee, DestPointee)) { in CheckDynamicCast()
690 OpRange.getBegin(), OpRange, in CheckDynamicCast()
704 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_polymorphic) in CheckDynamicCast()
713 Self.Diag(OpRange.getBegin(), diag::err_no_dynamic_cast_with_fno_rtti); in CheckDynamicCast()
738 Self.Diag(OpRange.getBegin(), msg) << CT_Const in CheckConstCast()
739 << SrcExpr.get()->getType() << DestType << OpRange; in CheckConstCast()
748 SourceRange OpRange) { in DiagnoseReinterpretUpDownCast() argument
828 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast()
831 << OpRange; in DiagnoseReinterpretUpDownCast()
853 /*CStyle*/false, OpRange, msg, Kind); in CheckReinterpretCast()
860 Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_overload) in CheckReinterpretCast()
862 << DestType << OpRange; in CheckReinterpretCast()
866 diagnoseBadCast(Self, msg, CT_Reinterpret, OpRange, SrcExpr.get(), in CheckReinterpretCast()
873 DiagnoseReinterpretUpDownCast(Self, SrcExpr.get(), DestType, OpRange); in CheckReinterpretCast()
898 OpRange, DestType, diag::err_bad_static_cast_overload); in CheckStaticCast()
916 = TryStaticCast(Self, SrcExpr, DestType, Sema::CCK_OtherCast, OpRange, msg, in CheckStaticCast()
923 Self.Diag(OpRange.getBegin(), diag::err_bad_static_cast_overload) in CheckStaticCast()
924 << oe->getName() << DestType << OpRange in CheckStaticCast()
928 diagnoseBadCast(Self, msg, CT_Static, OpRange, SrcExpr.get(), DestType, in CheckStaticCast()
948 SourceRange OpRange, unsigned &msg, in TryStaticCast() argument
976 OpRange, msg, Kind, BasePath); in TryStaticCast()
990 tcr = TryStaticImplicitCast(Self, SrcExpr, DestType, CCK, OpRange, msg, in TryStaticCast()
1045 tcr = TryStaticPointerDowncast(Self, SrcType, DestType, CStyle, OpRange, msg, in TryStaticCast()
1054 OpRange, msg, Kind, BasePath); in TryStaticCast()
1091 Self.Diag(OpRange.getBegin(), diag::ext_ms_cast_fn_obj) << OpRange; in TryStaticCast()
1190 bool CStyle, SourceRange OpRange, in TryStaticReferenceDowncast() argument
1221 OpRange, SrcExpr->getType(), DestType, msg, Kind, in TryStaticReferenceDowncast()
1228 bool CStyle, SourceRange OpRange, in TryStaticPointerDowncast() argument
1253 CStyle, OpRange, SrcType, DestType, msg, Kind, in TryStaticPointerDowncast()
1262 bool CStyle, SourceRange OpRange, QualType OrigSrcType, in TryStaticDowncast() argument
1266 if (!Self.isCompleteType(OpRange.getBegin(), SrcType) || in TryStaticDowncast()
1267 !Self.isCompleteType(OpRange.getBegin(), DestType)) in TryStaticDowncast()
1277 if (!Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths)) { in TryStaticDowncast()
1313 Self.IsDerivedFrom(OpRange.getBegin(), DestType, SrcType, Paths); in TryStaticDowncast()
1328 Self.Diag(OpRange.getBegin(), diag::err_ambiguous_base_to_derived_cast) in TryStaticDowncast()
1331 << PathDisplayStr << OpRange; in TryStaticDowncast()
1338 Self.Diag(OpRange.getBegin(), diag::err_static_downcast_via_virtual) in TryStaticDowncast()
1339 << OrigSrcType << OrigDestType << VirtualBase << OpRange; in TryStaticDowncast()
1345 switch (Self.CheckBaseClassAccess(OpRange.getBegin(), in TryStaticDowncast()
1375 SourceRange OpRange, in TryStaticMemberPointerUpcast() argument
1404 (void)Self.isCompleteType(OpRange.getBegin(), SrcType); in TryStaticMemberPointerUpcast()
1405 (void)Self.isCompleteType(OpRange.getBegin(), DestType); in TryStaticMemberPointerUpcast()
1418 if (!Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths)) in TryStaticMemberPointerUpcast()
1426 Self.IsDerivedFrom(OpRange.getBegin(), SrcClass, DestClass, Paths); in TryStaticMemberPointerUpcast()
1430 Self.Diag(OpRange.getBegin(), diag::err_ambiguous_memptr_conv) in TryStaticMemberPointerUpcast()
1431 << 1 << SrcClass << DestClass << PathDisplayStr << OpRange; in TryStaticMemberPointerUpcast()
1437 Self.Diag(OpRange.getBegin(), diag::err_memptr_conv_via_virtual) in TryStaticMemberPointerUpcast()
1438 << SrcClass << DestClass << QualType(VBase, 0) << OpRange; in TryStaticMemberPointerUpcast()
1444 switch (Self.CheckBaseClassAccess(OpRange.getBegin(), in TryStaticMemberPointerUpcast()
1493 SourceRange OpRange, unsigned &msg, in TryStaticImplicitCast() argument
1496 if (Self.RequireCompleteType(OpRange.getBegin(), DestType, in TryStaticImplicitCast()
1498 Self.RequireNonAbstractType(OpRange.getBegin(), DestType, in TryStaticImplicitCast()
1508 ? InitializationKind::CreateCStyleCast(OpRange.getBegin(), OpRange, in TryStaticImplicitCast()
1511 ? InitializationKind::CreateFunctionalCast(OpRange, ListInitialization) in TryStaticImplicitCast()
1512 : InitializationKind::CreateCast(OpRange); in TryStaticImplicitCast()
1730 QualType DstType, SourceRange OpRange) { in DiagnoseCallingConvCast() argument
1772 Self.Diag(OpRange.getBegin(), diag::warn_cast_calling_conv) in DiagnoseCallingConvCast()
1773 << SrcCCName << DstCCName << OpRange; in DiagnoseCallingConvCast()
1778 if (Self.Diags.isIgnored(diag::warn_cast_calling_conv, OpRange.getBegin())) in DiagnoseCallingConvCast()
1872 SourceRange OpRange, in TryReinterpretCast() argument
1902 /*isDereference=*/false, OpRange); in TryReinterpretCast()
1920 Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_reference) in TryReinterpretCast()
1922 << OpRange << SrcExpr.get()->getSourceRange(); in TryReinterpretCast()
1961 (void)Self.isCompleteType(OpRange.getBegin(), SrcType); in TryReinterpretCast()
1962 (void)Self.isCompleteType(OpRange.getBegin(), DestType); in TryReinterpretCast()
2072 checkIntToPointerCast(CStyle, OpRange.getBegin(), SrcExpr.get(), DestType, in TryReinterpretCast()
2123 DiagnoseCallingConvCast(Self, SrcExpr, DestType, OpRange); in TryReinterpretCast()
2141 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2144 << OpRange; in TryReinterpretCast()
2150 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2153 << OpRange; in TryReinterpretCast()
2249 tcr = TryStaticCast(Self, SrcExpr, DestType, CCK, OpRange, in CheckCXXCStyleCast()
2257 OpRange, msg, Kind); in CheckCXXCStyleCast()
2278 Self.Diag(OpRange.getBegin(), diag::err_bad_cstyle_cast_overload) in CheckCXXCStyleCast()
2279 << OE->getName() << DestType << OpRange in CheckCXXCStyleCast()
2285 OpRange, SrcExpr.get(), DestType, ListInitialization); in CheckCXXCStyleCast()
2380 Self.Diag(OpRange.getBegin(), in CheckCStyleCast()
2389 if (Self.RequireCompleteType(OpRange.getBegin(), DestType, in CheckCStyleCast()
2400 Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_nonscalar) in CheckCStyleCast()
2414 Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_to_union) in CheckCStyleCast()
2420 Self.Diag(OpRange.getBegin(), diag::err_typecheck_cast_to_union_no_type) in CheckCStyleCast()
2437 Self.Diag(OpRange.getBegin(), in CheckCStyleCast()
2446 Self.Diag(OpRange.getBegin(), diag::err_typecheck_cond_expect_scalar) in CheckCStyleCast()
2464 SrcExpr = Self.CheckExtVectorCast(OpRange, DestType, SrcExpr.get(), Kind); in CheckCStyleCast()
2473 } else if (Self.CheckVectorCast(OpRange, DestType, SrcType, Kind)) { in CheckCStyleCast()
2480 if (Self.CheckVectorCast(OpRange, SrcType, DestType, Kind)) in CheckCStyleCast()
2506 checkIntToPointerCast(/* CStyle */ true, OpRange.getBegin(), SrcExpr.get(), in CheckCStyleCast()
2559 DiagnoseCallingConvCast(Self, SrcExpr, DestType, OpRange); in CheckCStyleCast()
2599 Op.OpRange = SourceRange(LPLoc, CastExpr->getLocEnd()); in BuildCStyleCastExpr()
2623 Op.OpRange = SourceRange(Op.DestRange.getBegin(), CastExpr->getLocEnd()); in BuildCXXFunctionalCastExpr()