Lines Matching refs:Self
51 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
64 Sema &Self; member
91 castExpr = ImplicitCastExpr::Create(Self.Context, in complete()
92 Self.Context.ARCUnbridgedCastTy, in complete()
119 Self.CheckCastAlign(SrcExpr.get(), DestType, OpRange); in checkCastAlign()
123 assert(Self.getLangOpts().ObjCAutoRefCount); in checkObjCARCConversion()
126 if (Self.CheckObjCARCConversion(OpRange, DestType, src, CCK) == in checkObjCARCConversion()
137 SrcExpr = Self.CheckPlaceholderExpr(SrcExpr.get()); in checkNonOverloadPlaceholders()
156 static TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr,
161 static TryCastResult TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr,
167 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
173 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
180 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
188 static TryCastResult TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr,
194 static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr,
201 static TryCastResult TryConstCast(Sema &Self, ExprResult &SrcExpr,
204 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr,
486 CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType, in CastsAwayConstness() argument
494 !Self.Context.getLangOpts().ObjCAutoRefCount) in CastsAwayConstness()
508 QualType UnwrappedSrcType = Self.Context.getCanonicalType(SrcType), in CastsAwayConstness()
509 UnwrappedDestType = Self.Context.getCanonicalType(DestType); in CastsAwayConstness()
520 Self.Context.getUnqualifiedArrayType(UnwrappedSrcType, SrcQuals); in CastsAwayConstness()
521 Self.Context.getUnqualifiedArrayType(UnwrappedDestType, DestQuals); in CastsAwayConstness()
551 QualType SrcConstruct = Self.Context.VoidTy; in CastsAwayConstness()
552 QualType DestConstruct = Self.Context.VoidTy; in CastsAwayConstness()
553 ASTContext &Context = Self.Context; in CastsAwayConstness()
566 !Self.IsQualificationConversion(SrcConstruct, DestConstruct, false, in CastsAwayConstness()
575 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckDynamicCast()
577 SrcExpr = Self.CheckPlaceholderExpr(SrcExpr.get()); in CheckDynamicCast()
582 QualType DestType = Self.Context.getCanonicalType(this->DestType); in CheckDynamicCast()
595 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast()
605 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast()
612 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
622 QualType SrcType = Self.Context.getCanonicalType(OrigSrcType); in CheckDynamicCast()
628 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast()
635 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast()
643 SrcExpr = new (Self.Context) MaterializeTemporaryExpr( in CheckDynamicCast()
650 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast()
657 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
671 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_qualifiers_away) in CheckDynamicCast()
686 if (DestRecord && Self.IsDerivedFrom(SrcPointee, DestPointee)) { in CheckDynamicCast()
687 if (Self.CheckDerivedToBaseConversion(SrcPointee, DestPointee, in CheckDynamicCast()
702 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_polymorphic) in CheckDynamicCast()
710 if (!Self.getLangOpts().RTTI && !DestPointee->isVoidType()) { in CheckDynamicCast()
711 Self.Diag(OpRange.getBegin(), diag::err_no_dynamic_cast_with_fno_rtti); in CheckDynamicCast()
727 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckConstCast()
729 SrcExpr = Self.CheckPlaceholderExpr(SrcExpr.get()); in CheckConstCast()
734 if (TryConstCast(Self, SrcExpr, DestType, /*CStyle*/false, msg) != TC_Success in CheckConstCast()
736 Self.Diag(OpRange.getBegin(), msg) << CT_Const in CheckConstCast()
744 static void DiagnoseReinterpretUpDownCast(Sema &Self, const Expr *SrcExpr, in DiagnoseReinterpretUpDownCast() argument
803 Self.Context.getASTRecordLayout(Class); in DiagnoseReinterpretUpDownCast()
827 Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static) in DiagnoseReinterpretUpDownCast()
830 Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static) in DiagnoseReinterpretUpDownCast()
842 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckReinterpretCast()
850 TryReinterpretCast(Self, SrcExpr, DestType, in CheckReinterpretCast()
856 if (SrcExpr.get()->getType() == Self.Context.OverloadTy) { in CheckReinterpretCast()
858 Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_overload) in CheckReinterpretCast()
861 Self.NoteAllOverloadCandidates(SrcExpr.get()); in CheckReinterpretCast()
864 diagnoseBadCast(Self, msg, CT_Reinterpret, OpRange, SrcExpr.get(), in CheckReinterpretCast()
869 if (Self.getLangOpts().ObjCAutoRefCount) in CheckReinterpretCast()
871 DiagnoseReinterpretUpDownCast(Self, SrcExpr.get(), DestType, OpRange); in CheckReinterpretCast()
893 Self.ResolveAndFixSingleFunctionTemplateSpecialization(SrcExpr, in CheckStaticCast()
901 SrcExpr = Self.IgnoredValueConversions(SrcExpr.get()); in CheckStaticCast()
907 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckStaticCast()
914 = TryStaticCast(Self, SrcExpr, DestType, Sema::CCK_OtherCast, OpRange, msg, in CheckStaticCast()
919 if (SrcExpr.get()->getType() == Self.Context.OverloadTy) { in CheckStaticCast()
921 Self.Diag(OpRange.getBegin(), diag::err_bad_static_cast_overload) in CheckStaticCast()
924 Self.NoteAllOverloadCandidates(SrcExpr.get()); in CheckStaticCast()
926 diagnoseBadCast(Self, msg, CT_Static, OpRange, SrcExpr.get(), DestType, in CheckStaticCast()
933 if (Self.getLangOpts().ObjCAutoRefCount) in CheckStaticCast()
943 static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr, in TryStaticCast() argument
973 tcr = TryStaticReferenceDowncast(Self, SrcExpr.get(), DestType, CStyle, in TryStaticCast()
981 tcr = TryLValueToRValueCast(Self, SrcExpr.get(), DestType, CStyle, Kind, in TryStaticCast()
988 tcr = TryStaticImplicitCast(Self, SrcExpr, DestType, CCK, OpRange, msg, in TryStaticCast()
1003 QualType SrcType = Self.Context.getCanonicalType(SrcExpr.get()->getType()); in TryStaticCast()
1013 } else if (DestType->isIntegralType(Self.Context)) { in TryStaticCast()
1043 tcr = TryStaticPointerDowncast(Self, SrcType, DestType, CStyle, OpRange, msg, in TryStaticCast()
1051 tcr = TryStaticMemberPointerUpcast(Self, SrcExpr, SrcType, DestType, CStyle, in TryStaticCast()
1087 if (!CStyle && Self.getLangOpts().MSVCCompat && in TryStaticCast()
1089 Self.Diag(OpRange.getBegin(), diag::ext_ms_cast_fn_obj) << OpRange; in TryStaticCast()
1116 Self.CheckTollFreeBridgeStaticCast(DestType, SrcExpr.get(), Kind)) in TryStaticCast()
1133 TryLValueToRValueCast(Sema &Self, Expr *SrcExpr, QualType DestType, in TryLValueToRValueCast() argument
1159 if (Self.CompareReferenceRelationship(SrcExpr->getLocStart(), in TryLValueToRValueCast()
1174 if (!Self.IsDerivedFrom(SrcExpr->getType(), R->getPointeeType(), Paths)) in TryLValueToRValueCast()
1177 Self.BuildBasePathArray(Paths, BasePath); in TryLValueToRValueCast()
1186 TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr, QualType DestType, in TryStaticReferenceDowncast() argument
1215 return TryStaticDowncast(Self, in TryStaticReferenceDowncast()
1216 Self.Context.getCanonicalType(SrcExpr->getType()), in TryStaticReferenceDowncast()
1217 Self.Context.getCanonicalType(DestPointee), CStyle, in TryStaticReferenceDowncast()
1224 TryStaticPointerDowncast(Sema &Self, QualType SrcType, QualType DestType, in TryStaticPointerDowncast() argument
1247 return TryStaticDowncast(Self, in TryStaticPointerDowncast()
1248 Self.Context.getCanonicalType(SrcPointer->getPointeeType()), in TryStaticPointerDowncast()
1249 Self.Context.getCanonicalType(DestPointer->getPointeeType()), in TryStaticPointerDowncast()
1258 TryStaticDowncast(Sema &Self, CanQualType SrcType, CanQualType DestType, in TryStaticDowncast() argument
1263 if (Self.RequireCompleteType(OpRange.getBegin(), SrcType, 0) || in TryStaticDowncast()
1264 Self.RequireCompleteType(OpRange.getBegin(), DestType, 0)) in TryStaticDowncast()
1274 if (!Self.IsDerivedFrom(DestType, SrcType, Paths)) { in TryStaticDowncast()
1310 Self.IsDerivedFrom(DestType, SrcType, Paths); in TryStaticDowncast()
1328 Self.Diag(OpRange.getBegin(), diag::err_ambiguous_base_to_derived_cast) in TryStaticDowncast()
1338 Self.Diag(OpRange.getBegin(), diag::err_static_downcast_via_virtual) in TryStaticDowncast()
1345 switch (Self.CheckBaseClassAccess(OpRange.getBegin(), in TryStaticDowncast()
1360 Self.BuildBasePathArray(Paths, BasePath); in TryStaticDowncast()
1373 TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, QualType SrcType, in TryStaticMemberPointerUpcast() argument
1384 if (SrcExpr.get()->getType() == Self.Context.OverloadTy) { in TryStaticMemberPointerUpcast()
1386 = Self.ResolveAddressOfOverloadedFunction(SrcExpr.get(), DestType, false, in TryStaticMemberPointerUpcast()
1389 SrcType = Self.Context.getMemberPointerType(Fn->getType(), in TryStaticMemberPointerUpcast()
1390 Self.Context.getTypeDeclType(M->getParent()).getTypePtr()); in TryStaticMemberPointerUpcast()
1402 if (!Self.Context.hasSameUnqualifiedType(SrcMemPtr->getPointeeType(), in TryStaticMemberPointerUpcast()
1411 if (Self.RequireCompleteType(OpRange.getBegin(), SrcClass, 0) || in TryStaticMemberPointerUpcast()
1412 !Self.IsDerivedFrom(SrcClass, DestClass, Paths)) { in TryStaticMemberPointerUpcast()
1417 if (Paths.isAmbiguous(Self.Context.getCanonicalType(DestClass))) { in TryStaticMemberPointerUpcast()
1420 bool StillOkay = Self.IsDerivedFrom(SrcClass, DestClass, Paths); in TryStaticMemberPointerUpcast()
1423 std::string PathDisplayStr = Self.getAmbiguousPathsDisplayString(Paths); in TryStaticMemberPointerUpcast()
1424 Self.Diag(OpRange.getBegin(), diag::err_ambiguous_memptr_conv) in TryStaticMemberPointerUpcast()
1431 Self.Diag(OpRange.getBegin(), diag::err_memptr_conv_via_virtual) in TryStaticMemberPointerUpcast()
1438 switch (Self.CheckBaseClassAccess(OpRange.getBegin(), in TryStaticMemberPointerUpcast()
1458 FunctionDecl *Fn = Self.ResolveAddressOfOverloadedFunction(SrcExpr.get(), in TryStaticMemberPointerUpcast()
1467 SrcExpr = Self.FixOverloadedFunctionReference(SrcExpr, FoundOverload, Fn); in TryStaticMemberPointerUpcast()
1474 Self.BuildBasePathArray(Paths, BasePath); in TryStaticMemberPointerUpcast()
1485 TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr, QualType DestType, in TryStaticImplicitCast() argument
1490 if (Self.RequireCompleteType(OpRange.getBegin(), DestType, in TryStaticImplicitCast()
1492 Self.RequireNonAbstractType(OpRange.getBegin(), DestType, in TryStaticImplicitCast()
1498 if (Self.Context.getTargetInfo().getCXXABI().isMicrosoft()) { in TryStaticImplicitCast()
1499 Self.RequireCompleteType(OpRange.getBegin(), DestType, 0); in TryStaticImplicitCast()
1512 InitializationSequence InitSeq(Self, Entity, InitKind, SrcExprRaw); in TryStaticImplicitCast()
1524 ExprResult Result = InitSeq.Perform(Self, Entity, InitKind, SrcExprRaw); in TryStaticImplicitCast()
1541 static TryCastResult TryConstCast(Sema &Self, ExprResult &SrcExpr, in TryConstCast() argument
1544 DestType = Self.Context.getCanonicalType(DestType); in TryConstCast()
1591 DestType = Self.Context.getPointerType(DestTypeTmp->getPointeeType()); in TryConstCast()
1592 SrcType = Self.Context.getPointerType(SrcType); in TryConstCast()
1619 SrcType = Self.Context.getCanonicalType(SrcType); in TryConstCast()
1627 Self.Context.UnwrapSimilarPointerTypes(SrcType, DestType)) { in TryConstCast()
1629 SrcType = Self.Context.getUnqualifiedArrayType(SrcType, SrcQuals); in TryConstCast()
1630 DestType = Self.Context.getUnqualifiedArrayType(DestType, DestQuals); in TryConstCast()
1647 SrcExpr = new (Self.Context) MaterializeTemporaryExpr( in TryConstCast()
1708 static void DiagnoseCastOfObjCSEL(Sema &Self, const ExprResult &SrcExpr, in DiagnoseCastOfObjCSEL() argument
1711 if (Self.Context.hasSameType(SrcType, DestType)) in DiagnoseCastOfObjCSEL()
1719 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseCastOfObjCSEL()
1727 Sema &Self) { in checkIntToPointerCast() argument
1733 if (CStyle && SrcType->isIntegralType(Self.Context) in checkIntToPointerCast()
1736 && !SrcExpr->isIntegerConstantExpr(Self.Context) in checkIntToPointerCast()
1737 && Self.Context.getTypeSize(DestType) > in checkIntToPointerCast()
1738 Self.Context.getTypeSize(SrcType)) { in checkIntToPointerCast()
1747 Self.Diag(Loc, Diag) << SrcType << DestType; in checkIntToPointerCast()
1751 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr, in TryReinterpretCast() argument
1758 DestType = Self.Context.getCanonicalType(DestType); in TryReinterpretCast()
1763 if (SrcType == Self.Context.OverloadTy) { in TryReinterpretCast()
1768 if (Self.ResolveAndFixSingleFunctionTemplateSpecialization( in TryReinterpretCast()
1788 Self.CheckCompatibleReinterpretCast(SrcType, DestType, in TryReinterpretCast()
1807 Self.Diag(OpRange.getBegin(), diag::err_bad_reinterpret_cast_reference) in TryReinterpretCast()
1815 DestType = Self.Context.getPointerType(DestTypeTmp->getPointeeType()); in TryReinterpretCast()
1816 SrcType = Self.Context.getPointerType(SrcType); in TryReinterpretCast()
1822 SrcType = Self.Context.getCanonicalType(SrcType); in TryReinterpretCast()
1839 if (CastsAwayConstness(Self, SrcType, DestType, /*CheckCVR=*/!CStyle, in TryReinterpretCast()
1845 if (Self.Context.getTargetInfo().getCXXABI().isMicrosoft()) { in TryReinterpretCast()
1848 Self.RequireCompleteType(OpRange.getBegin(), SrcType, 0); in TryReinterpretCast()
1849 Self.RequireCompleteType(OpRange.getBegin(), DestType, 0); in TryReinterpretCast()
1853 if (Self.Context.getTypeSize(DestMemPtr) != in TryReinterpretCast()
1854 Self.Context.getTypeSize(SrcMemPtr)) { in TryReinterpretCast()
1866 if (SrcType->isNullPtrType() && DestType->isIntegralType(Self.Context)) { in TryReinterpretCast()
1871 if (Self.Context.getTypeSize(SrcType) > in TryReinterpretCast()
1872 Self.Context.getTypeSize(DestType)) { in TryReinterpretCast()
1884 bool srcIsScalar = SrcType->isIntegralType(Self.Context); in TryReinterpretCast()
1885 bool destIsScalar = DestType->isIntegralType(Self.Context); in TryReinterpretCast()
1893 if (Self.Context.getTypeSize(SrcType) in TryReinterpretCast()
1894 == Self.Context.getTypeSize(DestType)) { in TryReinterpretCast()
1939 if (DestType->isIntegralType(Self.Context)) { in TryReinterpretCast()
1944 bool MicrosoftException = Self.getLangOpts().MicrosoftExt && in TryReinterpretCast()
1946 if ((Self.Context.getTypeSize(SrcType) > in TryReinterpretCast()
1947 Self.Context.getTypeSize(DestType)) && in TryReinterpretCast()
1959 Self); in TryReinterpretCast()
1976 if (CastsAwayConstness(Self, SrcType, DestType, /*CheckCVR=*/!CStyle, in TryReinterpretCast()
1990 Kind = Self.PrepareCastToObjCObjectPointer(SrcExpr); in TryReinterpretCast()
2007 DiagnoseCastOfObjCSEL(Self, SrcExpr, DestType); in TryReinterpretCast()
2025 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2026 Self.getLangOpts().CPlusPlus11 ? in TryReinterpretCast()
2034 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2035 Self.getLangOpts().CPlusPlus11 ? in TryReinterpretCast()
2055 SrcExpr = Self.checkUnknownAnyCast(DestRange, DestType, in CheckCXXCStyleCast()
2073 Self.ResolveAndFixSingleFunctionTemplateSpecialization( in CheckCXXCStyleCast()
2081 SrcExpr = Self.IgnoredValueConversions(SrcExpr.get()); in CheckCXXCStyleCast()
2094 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckCXXCStyleCast()
2120 TryCastResult tcr = TryConstCast(Self, SrcExpr, DestType, in CheckCXXCStyleCast()
2132 tcr = TryStaticCast(Self, SrcExpr, DestType, CCK, OpRange, in CheckCXXCStyleCast()
2139 tcr = TryReinterpretCast(Self, SrcExpr, DestType, /*CStyle*/true, in CheckCXXCStyleCast()
2146 if (Self.getLangOpts().ObjCAutoRefCount && tcr == TC_Success) in CheckCXXCStyleCast()
2150 if (SrcExpr.get()->getType() == Self.Context.OverloadTy) { in CheckCXXCStyleCast()
2152 FunctionDecl *Fn = Self.ResolveAddressOfOverloadedFunction(SrcExpr.get(), in CheckCXXCStyleCast()
2161 Self.Diag(OpRange.getBegin(), diag::err_bad_cstyle_cast_overload) in CheckCXXCStyleCast()
2164 Self.NoteAllOverloadCandidates(SrcExpr.get()); in CheckCXXCStyleCast()
2167 diagnoseBadCast(Self, msg, (FunctionalStyle ? CT_Functional : CT_CStyle), in CheckCXXCStyleCast()
2182 static void DiagnoseBadFunctionCast(Sema &Self, const ExprResult &SrcExpr, in DiagnoseBadFunctionCast() argument
2184 if (Self.Diags.isIgnored(diag::warn_bad_function_cast, in DiagnoseBadFunctionCast()
2210 Self.Diag(SrcExpr.get()->getExprLoc(), in DiagnoseBadFunctionCast()
2217 assert(!Self.getLangOpts().CPlusPlus); in CheckCStyleCast()
2221 SrcExpr = Self.checkUnknownAnyCast(DestRange, DestType, in CheckCStyleCast()
2231 SrcExpr = Self.IgnoredValueConversions(SrcExpr.get()); in CheckCStyleCast()
2240 SrcExpr = Self.DefaultFunctionArrayLvalueConversion(SrcExpr.get()); in CheckCStyleCast()
2249 if (Self.getLangOpts().OpenCL && DestType->isPointerType() && in CheckCStyleCast()
2253 Self.Diag(OpRange.getBegin(), in CheckCStyleCast()
2262 if (Self.RequireCompleteType(OpRange.getBegin(), DestType, in CheckCStyleCast()
2271 if (DestRecordTy && Self.Context.hasSameUnqualifiedType(DestType, SrcType)){ in CheckCStyleCast()
2273 Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_nonscalar) in CheckCStyleCast()
2285 if (Self.Context.hasSameUnqualifiedType(Field->getType(), SrcType) && in CheckCStyleCast()
2287 Self.Diag(OpRange.getBegin(), diag::ext_typecheck_cast_to_union) in CheckCStyleCast()
2293 Self.Diag(OpRange.getBegin(), diag::err_typecheck_cast_to_union_no_type) in CheckCStyleCast()
2303 Self.Diag(OpRange.getBegin(), diag::err_typecheck_cond_expect_scalar) in CheckCStyleCast()
2313 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
2321 SrcExpr = Self.CheckExtVectorCast(OpRange, DestType, SrcExpr.get(), Kind); in CheckCStyleCast()
2329 } else if (Self.CheckVectorCast(OpRange, DestType, SrcType, Kind)) { in CheckCStyleCast()
2336 if (Self.CheckVectorCast(OpRange, SrcType, DestType, Kind)) in CheckCStyleCast()
2347 Self.Diag(SrcExpr.get()->getExprLoc(), diag::err_cast_selector_expr); in CheckCStyleCast()
2355 if (!SrcType->isIntegralType(Self.Context) && SrcType->isArithmeticType()) { in CheckCStyleCast()
2356 Self.Diag(SrcExpr.get()->getExprLoc(), in CheckCStyleCast()
2363 DestType, Self); in CheckCStyleCast()
2365 if (!DestType->isIntegralType(Self.Context) && in CheckCStyleCast()
2367 Self.Diag(SrcExpr.get()->getLocStart(), in CheckCStyleCast()
2375 if (Self.getLangOpts().OpenCL && !Self.getOpenCLOptions().cl_khr_fp16) { in CheckCStyleCast()
2377 Self.Diag(SrcExpr.get()->getLocStart(), diag::err_opencl_cast_to_half) in CheckCStyleCast()
2385 if (Self.getLangOpts().ObjCAutoRefCount) { in CheckCStyleCast()
2397 Self.Diag(SrcExpr.get()->getLocStart(), in CheckCStyleCast()
2405 else if (!Self.CheckObjCARCUnavailableWeakConversion(DestType, SrcType)) { in CheckCStyleCast()
2406 Self.Diag(SrcExpr.get()->getLocStart(), in CheckCStyleCast()
2414 DiagnoseCastOfObjCSEL(Self, SrcExpr, DestType); in CheckCStyleCast()
2415 DiagnoseBadFunctionCast(Self, SrcExpr, DestType); in CheckCStyleCast()
2416 Kind = Self.PrepareScalarCast(SrcExpr, DestType); in CheckCStyleCast()
2427 CastsAwayConstness(Self, SrcType, DestType, true, false, in CheckCStyleCast()
2440 Self.Diag(SrcExpr.get()->getLocStart(), diag::warn_cast_qual2) << in CheckCStyleCast()
2443 Self.Diag(SrcExpr.get()->getLocStart(), diag::warn_cast_qual) << in CheckCStyleCast()