Lines Matching refs:castExpr
3752 SourceLocation afterLParen, QualType castType, Expr *castExpr, in addFixitForObjCARCConversion() argument
3782 Expr *castedE = castExpr; in addFixitForObjCARCConversion()
3828 Expr *castedE = castExpr->IgnoreImpCasts(); in addFixitForObjCARCConversion()
3872 Expr *castExpr, Expr *realCast, in diagnoseObjCARCConversion() argument
3876 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc()); in diagnoseObjCARCConversion()
3882 QualType castExprType = castExpr->getType(); in diagnoseObjCARCConversion()
3923 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3926 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3935 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3943 : S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3948 castType, castExpr, realCast, "__bridge_transfer ", in diagnoseObjCARCConversion()
3965 << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
3967 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3975 castType, castExpr, realCast, "__bridge ", in diagnoseObjCARCConversion()
3983 : S.Diag(br ? castExpr->getExprLoc() : noteLoc, in diagnoseObjCARCConversion()
3988 castType, castExpr, realCast, "__bridge_retained ", in diagnoseObjCARCConversion()
3998 << castRange << castExpr->getSourceRange(); in diagnoseObjCARCConversion()
4002 static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr, in CheckObjCBridgeNSCast() argument
4004 QualType T = castExpr->getType(); in CheckObjCBridgeNSCast()
4030 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
4042 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
4051 S.Diag(castExpr->getBeginLoc(), in CheckObjCBridgeNSCast()
4053 << castExpr->getType() << Parm; in CheckObjCBridgeNSCast()
4068 static bool CheckObjCBridgeCFCast(Sema &S, QualType castType, Expr *castExpr, in CheckObjCBridgeCFCast() argument
4089 castExpr->getType()->getAsObjCInterfacePointerType()) { in CheckObjCBridgeCFCast()
4096 S.Diag(castExpr->getBeginLoc(), in CheckObjCBridgeCFCast()
4098 << castExpr->getType()->getPointeeType() << T; in CheckObjCBridgeCFCast()
4102 } else if (castExpr->getType()->isObjCIdType() || in CheckObjCBridgeCFCast()
4104 castExpr->getType(), CastClass))) in CheckObjCBridgeCFCast()
4111 S.Diag(castExpr->getBeginLoc(), in CheckObjCBridgeCFCast()
4113 << castExpr->getType() << castType; in CheckObjCBridgeCFCast()
4121 S.Diag(castExpr->getBeginLoc(), in CheckObjCBridgeCFCast()
4123 << castExpr->getType() << castType; in CheckObjCBridgeCFCast()
4136 void Sema::CheckTollFreeBridgeCast(QualType castType, Expr *castExpr) { in CheckTollFreeBridgeCast() argument
4140 ARCConversionTypeClass exprACTC = classifyTypeForARCConversion(castExpr->getType()); in CheckTollFreeBridgeCast()
4145 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
4151 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
4157 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
4160 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
4166 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
4172 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
4178 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr, in CheckTollFreeBridgeCast()
4181 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr, in CheckTollFreeBridgeCast()
4186 void Sema::CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr) { in CheckObjCBridgeRelatedCast() argument
4187 QualType SrcType = castExpr->getType(); in CheckObjCBridgeRelatedCast()
4188 if (ObjCPropertyRefExpr *PRE = dyn_cast<ObjCPropertyRefExpr>(castExpr)) { in CheckObjCBridgeRelatedCast()
4203 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType, in CheckObjCBridgeRelatedCast()
4204 castExpr); in CheckObjCBridgeRelatedCast()
4207 bool Sema::CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr, in CheckTollFreeBridgeStaticCast() argument
4212 classifyTypeForARCConversion(castExpr->getType()); in CheckTollFreeBridgeStaticCast()
4216 CheckTollFreeBridgeCast(castType, castExpr); in CheckTollFreeBridgeStaticCast()
4394 Expr *&castExpr, CheckedConversionKind CCK, in CheckObjCConversion() argument
4397 QualType castExprType = castExpr->getType(); in CheckObjCConversion()
4428 : castExpr->getExprLoc()); in CheckObjCConversion()
4458 switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) { in CheckObjCConversion()
4470 castExpr = ImplicitCastExpr::Create(Context, castExpr->getType(), in CheckObjCConversion()
4471 CK_ARCConsumeObject, castExpr, nullptr, in CheckObjCConversion()
4487 CheckConversionToObjCLiteral(castType, castExpr, Diagnose)) in CheckObjCConversion()
4499 diagnoseObjCARCConversion(*this, castRange, castType, castACTC, castExpr, in CheckObjCConversion()
4500 castExpr, exprACTC, CCK); in CheckObjCConversion()
4532 Expr *castExpr = realCast->getSubExpr(); in diagnoseARCUnbridgedCast() local
4533 assert(classifyTypeForARCConversion(castExpr->getType()) == ACTC_retainable); in diagnoseARCUnbridgedCast()
4536 castExpr, realCast, ACTC_retainable, CCK); in diagnoseARCUnbridgedCast()