Lines Matching defs:cast

45   StringLiteral *S = cast<StringLiteral>(Strings[0]);
54 S = cast<StringLiteral>(E);
382 // _Bool. So, we'll use 0/1 and implicit cast to _Bool.
1553 const ObjCMethodDecl *MD = cast<ObjCMethodDecl>(
1554 cast<ImplicitParamDecl>(
1555 cast<DeclRefExpr>(Receiver->IgnoreParenImpCasts())->getDecl())
1797 // results so that clients can cast them.
1845 // Strip the unbridged-cast placeholder expression off unless it's
2126 if (cast<ObjCPropertyDecl>(ChosenDecl)->isClassProperty()) {
3522 /// A result from the cast checker.
3919 // Check whether this could be fixed with a bridge cast.
3939 assert(CreateRule != ACC_bottom && "This cast should already be accepted.");
3980 assert(CreateRule != ACC_bottom && "This cast should already be accepted.");
4032 ObjCInterfaceDecl *ExprClass = cast<ObjCInterfaceDecl>(Target);
4047 // ok to cast to 'id'.
4096 ObjCInterfaceDecl *CastClass = cast<ObjCInterfaceDecl>(Target);
4114 // ok to cast an 'id' expression to a CFtype.
4115 // ok to cast an 'id<plist>' expression to CFtype provided plist
4148 // warn in presence of __bridge casting to or from a toll free bridge cast.
4261 RelatedClass = cast<ObjCInterfaceDecl>(Target);
4424 // that cannot happen in a cast; i.e. auto, and those which
4445 // The life-time qualifier cast check above is all we need for ObjCWeak.
4452 // Allow all of these types to be cast to integer types (but not
4490 // If this is a non-implicit cast from id or block type to a
4491 // CoreFoundation type, delay complaining in case the cast is used
4498 // to 'NSString *', instead of falling through to report a "bridge cast"
4504 // Do not issue "bridge cast" diagnostic when implicit casting
4525 CastExpr *realCast = cast<CastExpr>(e->IgnoreParens());
4531 if (CStyleCastExpr *cast = dyn_cast<CStyleCastExpr>(realCast)) {
4532 castRange = SourceRange(cast->getLParenLoc(), cast->getRParenLoc());
4533 castType = cast->getTypeAsWritten();
4535 } else if (ExplicitCastExpr *cast = dyn_cast<ExplicitCastExpr>(realCast)) {
4536 castRange = cast->getTypeInfoAsWritten()->getTypeLoc().getSourceRange();
4537 castType = cast->getTypeAsWritten();
4554 /// type, remove the placeholder cast.
4591 assert(isa<ImplicitCastExpr>(e) && "bad form of unbridged cast!");
4592 return cast<ImplicitCastExpr>(e)->getSubExpr();
4614 /// Look for an ObjCReclaimReturnedObject cast and destroy it.
4618 // Walk down the expression until we hit an implicit cast of kind
4635 cast<CastExpr>(prevExpr)->setSubExpr(ice->getSubExpr());
4700 // We must consume the Objective-C object produced by the cast.
4862 cast<ObjCIvarDecl>(Ivar.get()));
4939 // to the pseudo-builtin, because that will be implicitly cast back to the
5225 Expr *Inner = cast<ObjCBoxedExpr>(FromE)->getSubExpr()->IgnoreParens();
5235 CastKind CK = cast<CastExpr>(Inner)->getCastKind();