• Home
  • Raw
  • Download

Lines Matching refs:castExpr

3348                                          Expr *castExpr,  in addFixitForObjCARCConversion()  argument
3379 Expr *castedE = castExpr; in addFixitForObjCARCConversion()
3425 Expr *castedE = castExpr->IgnoreImpCasts(); in addFixitForObjCARCConversion()
3469 Expr *castExpr, Expr *realCast, in diagnoseObjCARCConversion() argument
3473 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion()
3479 QualType castExprType = castExpr->getType(); in diagnoseObjCARCConversion()
3516 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3519 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3528 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3536 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3541 castType, castExpr, realCast, "__bridge_transfer ", in diagnoseObjCARCConversion()
3558 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3560 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3568 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3576 S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3581 castType, castExpr, realCast, "__bridge_retained ", in diagnoseObjCARCConversion()
3591 << castRange << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3595 static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr, in CheckObjCBridgeNSCast() argument
3597 QualType T = castExpr->getType(); in CheckObjCBridgeNSCast()
3623 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
3635 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
3644 S.Diag(castExpr->getLocStart(), diag::err_objc_cf_bridged_not_interface) in CheckObjCBridgeNSCast()
3645 << castExpr->getType() << Parm; in CheckObjCBridgeNSCast()
3660 static bool CheckObjCBridgeCFCast(Sema &S, QualType castType, Expr *castExpr, in CheckObjCBridgeCFCast() argument
3681 castExpr->getType()->getAsObjCInterfacePointerType()) { in CheckObjCBridgeCFCast()
3688 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge_to_cf) in CheckObjCBridgeCFCast()
3689 << castExpr->getType()->getPointeeType() << T; in CheckObjCBridgeCFCast()
3693 } else if (castExpr->getType()->isObjCIdType() || in CheckObjCBridgeCFCast()
3695 castExpr->getType(), CastClass))) in CheckObjCBridgeCFCast()
3702 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge_to_cf) in CheckObjCBridgeCFCast()
3703 << castExpr->getType() << castType; in CheckObjCBridgeCFCast()
3711 S.Diag(castExpr->getLocStart(), diag::err_objc_ns_bridged_invalid_cfobject) in CheckObjCBridgeCFCast()
3712 << castExpr->getType() << castType; in CheckObjCBridgeCFCast()
3725 void Sema::CheckTollFreeBridgeCast(QualType castType, Expr *castExpr) { in CheckTollFreeBridgeCast() argument
3729 ARCConversionTypeClass exprACTC = classifyTypeForARCConversion(castExpr->getType()); in CheckTollFreeBridgeCast()
3734 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
3740 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
3746 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
3749 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
3755 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
3761 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
3767 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
3770 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
3775 void Sema::CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr) { in CheckObjCBridgeRelatedCast() argument
3776 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast()
3777 if (ObjCPropertyRefExpr *PRE = dyn_cast<ObjCPropertyRefExpr>(castExpr)) { in CheckObjCBridgeRelatedCast()
3793 CheckObjCBridgeRelatedConversions(castExpr->getLocStart(), in CheckObjCBridgeRelatedCast()
3794 castType, SrcType, castExpr); in CheckObjCBridgeRelatedCast()
3798 bool Sema::CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr, in CheckTollFreeBridgeStaticCast() argument
3803 classifyTypeForARCConversion(castExpr->getType()); in CheckTollFreeBridgeStaticCast()
3807 CheckTollFreeBridgeCast(castType, castExpr); in CheckTollFreeBridgeStaticCast()
3969 Expr *&castExpr, CheckedConversionKind CCK, in CheckObjCARCConversion() argument
3972 QualType castExprType = castExpr->getType(); in CheckObjCARCConversion()
4003 : castExpr->getExprLoc()); in CheckObjCARCConversion()
4026 switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) { in CheckObjCARCConversion()
4038 castExpr = ImplicitCastExpr::Create(Context, castExpr->getType(), in CheckObjCARCConversion()
4039 CK_ARCConsumeObject, castExpr, in CheckObjCARCConversion()
4056 ConversionToObjCStringLiteralCheck(castType, castExpr)) in CheckObjCARCConversion()
4068 castExpr, castExpr, exprACTC, CCK); in CheckObjCARCConversion()
4099 Expr *castExpr = realCast->getSubExpr(); in diagnoseARCUnbridgedCast() local
4100 assert(classifyTypeForARCConversion(castExpr->getType()) == ACTC_retainable); in diagnoseARCUnbridgedCast()
4103 castExpr, realCast, ACTC_retainable, CCK); in diagnoseARCUnbridgedCast()