Lines Matching defs:castExpr
3750 SourceLocation afterLParen, QualType castType, Expr *castExpr,
3780 Expr *castedE = castExpr;
3826 Expr *castedE = castExpr->IgnoreImpCasts();
3873 Expr *castExpr, Expr *realCast,
3877 (castRange.isValid() ? castRange.getBegin() : castExpr->getExprLoc());
3883 QualType castExprType = castExpr->getType();
3924 << castExpr->getSourceRange();
3927 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr);
3936 castType, castExpr, realCast, "__bridge ",
3944 : S.Diag(br ? castExpr->getExprLoc() : noteLoc,
3949 castType, castExpr, realCast, "__bridge_transfer ",
3966 << castExpr->getSourceRange();
3968 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr);
3976 castType, castExpr, realCast, "__bridge ",
3984 : S.Diag(br ? castExpr->getExprLoc() : noteLoc,
3989 castType, castExpr, realCast, "__bridge_retained ",
3999 << castRange << castExpr->getSourceRange();
4003 static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr,
4005 QualType T = castExpr->getType();
4030 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
4042 S.Diag(castExpr->getBeginLoc(), diag::warn_objc_invalid_bridge)
4051 S.Diag(castExpr->getBeginLoc(),
4053 << castExpr->getType() << Parm;
4066 static bool CheckObjCBridgeCFCast(Sema &S, QualType castType, Expr *castExpr,
4087 castExpr->getType()->getAsObjCInterfacePointerType()) {
4094 S.Diag(castExpr->getBeginLoc(),
4096 << castExpr->getType()->getPointeeType() << T;
4100 } else if (castExpr->getType()->isObjCIdType() ||
4102 castExpr->getType(), CastClass)))
4109 S.Diag(castExpr->getBeginLoc(),
4111 << castExpr->getType() << castType;
4119 S.Diag(castExpr->getBeginLoc(),
4121 << castExpr->getType() << castType;
4134 void SemaObjC::CheckTollFreeBridgeCast(QualType castType, Expr *castExpr) {
4138 ARCConversionTypeClass exprACTC = classifyTypeForARCConversion(castExpr->getType());
4143 SemaRef, castType, castExpr, HasObjCBridgeAttr, false);
4149 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, false);
4154 CheckObjCBridgeNSCast<ObjCBridgeAttr>(SemaRef, castType, castExpr,
4158 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, true);
4163 SemaRef, castType, castExpr, HasObjCBridgeAttr, false);
4169 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, false);
4174 CheckObjCBridgeCFCast<ObjCBridgeAttr>(SemaRef, castType, castExpr,
4178 SemaRef, castType, castExpr, HasObjCBridgeMutableAttr, true);
4182 void SemaObjC::CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr) {
4183 QualType SrcType = castExpr->getType();
4184 if (ObjCPropertyRefExpr *PRE = dyn_cast<ObjCPropertyRefExpr>(castExpr)) {
4199 CheckObjCBridgeRelatedConversions(castExpr->getBeginLoc(), castType, SrcType,
4200 castExpr);
4203 bool SemaObjC::CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,
4208 classifyTypeForARCConversion(castExpr->getType());
4212 CheckTollFreeBridgeCast(castType, castExpr);
4389 Expr *&castExpr, CheckedConversionKind CCK,
4393 QualType castExprType = castExpr->getType();
4425 : castExpr->getExprLoc());
4460 switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) {
4472 castExpr = ImplicitCastExpr::Create(Context, castExpr->getType(),
4473 CK_ARCConsumeObject, castExpr, nullptr,
4490 CheckConversionToObjCLiteral(castType, castExpr, Diagnose))
4503 castExpr, castExpr, exprACTC, CCK);
4535 Expr *castExpr = realCast->getSubExpr();
4536 assert(classifyTypeForARCConversion(castExpr->getType()) == ACTC_retainable);
4538 diagnoseObjCARCConversion(SemaRef, castRange, castType, castACTC, castExpr,