Lines Matching defs:castExpr
3761 SourceLocation afterLParen, QualType castType, Expr *castExpr,
3791 Expr *castedE = castExpr;
3837 Expr *castedE = castExpr->IgnoreImpCasts();
3884 Expr *castExpr, Expr *realCast,
3888 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc());
3894 QualType castExprType = castExpr->getType();
3935 << castExpr->getSourceRange();
3938 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr);
3947 castType, castExpr, realCast, "__bridge ",
3955 : S.Diag(br ? castExpr->getExprLoc() : noteLoc,
3960 castType, castExpr, realCast, "__bridge_transfer ",
3977 << castExpr->getSourceRange();
3979 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr);
3987 castType, castExpr, realCast, "__bridge ",
3995 : S.Diag(br ? castExpr->getExprLoc() : noteLoc,
4000 castType, castExpr, realCast, "__bridge_retained ",
4010 << castRange << castExpr->getSourceRange();
4014 static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr,
4016 QualType T = castExpr->getType();
4041 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
4053 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
4062 S.Diag(castExpr->getBeginLoc(),
4064 << castExpr->getType() << Parm;
4077 static bool CheckObjCBridgeCFCast(Sema &S, QualType castType, Expr *castExpr,
4098 castExpr->getType()->getAsObjCInterfacePointerType()) {
4105 S.Diag(castExpr->getBeginLoc(),
4107 << castExpr->getType()->getPointeeType() << T;
4111 } else if (castExpr->getType()->isObjCIdType() ||
4113 castExpr->getType(), CastClass)))
4120 S.Diag(castExpr->getBeginLoc(),
4122 << castExpr->getType() << castType;
4130 S.Diag(castExpr->getBeginLoc(),
4132 << castExpr->getType() << castType;
4145 void SemaObjC::CheckTollFreeBridgeCast(QualType castType, Expr *castExpr) {
4149 ARCConversionTypeClass exprACTC = classifyTypeForARCConversion(castExpr->getType());
4154 SemaRef, castType, castExpr, HasObjCBridgeAttr, false);
4160 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, false);
4165 CheckObjCBridgeNSCast<ObjCBridgeAttr>(SemaRef, castType, castExpr,
4169 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, true);
4174 SemaRef, castType, castExpr, HasObjCBridgeAttr, false);
4180 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, false);
4185 CheckObjCBridgeCFCast<ObjCBridgeAttr>(SemaRef, castType, castExpr,
4189 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, true);
4193 void SemaObjC::CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr) {
4194 QualType SrcType = castExpr->getType();
4195 if (ObjCPropertyRefExpr *PRE = dyn_cast<ObjCPropertyRefExpr>(castExpr)) {
4210 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType,
4211 castExpr);
4214 bool SemaObjC::CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,
4219 classifyTypeForARCConversion(castExpr->getType());
4223 CheckTollFreeBridgeCast(castType, castExpr);
4400 Expr *&castExpr, CheckedConversionKind CCK,
4404 QualType castExprType = castExpr->getType();
4436 : castExpr->getExprLoc());
4471 switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) {
4483 castExpr = ImplicitCastExpr::Create(Context, castExpr->getType(),
4484 CK_ARCConsumeObject, castExpr, nullptr,
4501 CheckConversionToObjCLiteral(castType, castExpr, Diagnose))
4514 castExpr, castExpr, exprACTC, CCK);
4546 Expr *castExpr = realCast->getSubExpr();
4547 assert(classifyTypeForARCConversion(castExpr->getType()) == ACTC_retainable);
4549 diagnoseObjCARCConversion(SemaRef, castRange, castType, castACTC, castExpr,