Lines Matching defs:cast
754 !cast<ObjCInterfaceDecl>(*DI)->isThisDeclarationADefinition() &&
779 !cast<ObjCProtocolDecl>(*DI)->isThisDeclarationADefinition() &&
860 auto *CDecl = cast<ObjCContainerDecl>(D->getDeclContext());
959 // Synthesize an explicit cast to gain access to the ivar.
1019 // Synthesize an explicit cast to initialize the ivar.
1087 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(*I), typedefString);
1094 ObjCInterfaceDecl *ForwardDecl = cast<ObjCInterfaceDecl>(D[i]);
1102 RewriteForwardClassEpilogue(cast<ObjCInterfaceDecl>(D[0]), typedefString);
1420 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr(
1434 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1435 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1442 Arg = cast<OpaqueValueExpr>(Arg)->getSourceExpr();
1443 Arg = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Arg));
1508 cast<ObjCMessageExpr>(PseudoOp->getResultExpr()->IgnoreImplicit());
1519 Base = cast<OpaqueValueExpr>(Base)->getSourceExpr();
1520 Base = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Base));
1526 Arg = cast<OpaqueValueExpr>(Arg)->getSourceExpr();
1527 Arg = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(Arg));
1703 NamedDecl* D = cast<NamedDecl>(DS->getSingleDecl());
1704 QualType ElementType = cast<ValueDecl>(D)->getType();
1718 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement());
2106 // Now, we cast the reference to a pointer to the objc_msgSend type.
2284 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
2596 // cast to NSConstantString *
2597 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(),
2599 ReplaceStmt(Exp, cast);
2601 return cast;
2611 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Context->ObjCBuiltinBoolTy,
2614 cast);
2682 CastExpr *cast = NoTypeInfoCStyleCastExpr(
2685 // Now do the "normal" pointer to function cast.
2689 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast,
2690 cast);
2693 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast);
2803 CastExpr *cast = NoTypeInfoCStyleCastExpr(
2806 // Now do the "normal" pointer to function cast.
2810 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast,
2811 cast);
2814 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast);
2955 CastExpr *cast = NoTypeInfoCStyleCastExpr(
2958 // Now do the "normal" pointer to function cast.
2962 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast,
2963 cast);
2966 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast);
3099 // Now do the "normal" pointer to function cast.
3263 // To turn off a warning, type-cast to 'id'
3284 // we need the cast below. For example:
3355 // To turn off a warning, type-cast to 'id'
3376 // we need the cast below. For example:
3455 // Make id<P...> cast into an 'id' cast.
3480 // Generate the funky cast.
3481 CastExpr *cast;
3514 // Need to cast objc_msgSend to "void *" (to workaround a GCC bandaid).
3515 // If we don't do this cast, we get the following bizarre warning/note:
3518 cast = NoTypeInfoCStyleCastExpr(Context,
3522 // Now do the "normal" pointer to function cast.
3523 // If we don't have a method decl, force a variadic cast.
3528 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast,
3529 cast);
3532 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast);
4059 const FunctionProtoType *FT = cast<FunctionProtoType>(AFT);
4479 InnerContexts.insert(cast<DeclContext>(CBE->getBlockDecl()));
4493 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
4528 // Generate a funky cast.
4571 CONDExp, SourceLocation(), cast<Expr>(LHSStmt), SourceLocation(),
4572 cast<Expr>(RHSStmt), Exp->getType(), VK_PRValue, OK_Ordinary);
4593 // Generate a funky cast.
4607 // Now do the pointer to function cast.
4727 const TypeOfExprType *TypeOfExprTypePtr = cast<TypeOfExprType>(TypePtr);
5253 // Get a pointer to the function type so we can cast appropriately.
5447 S = cast<OpaqueValueExpr>(S)->getSourceExpr();
5568 // and cast exprs.
5682 FunctionDecl *FD = cast<FunctionDecl>(D);
5715 ObjCMethodDecl *MD = cast<ObjCMethodDecl>(D);
5734 ObjCImplementationDecl *CI = cast<ObjCImplementationDecl>(D);
5739 ObjCCategoryImplDecl *CI = cast<ObjCCategoryImplDecl>(D);
5744 VarDecl *VD = cast<VarDecl>(D);
5793 RecordDecl *RD = cast<RecordDecl>(D);
6050 // NOTE! Windows uses LLP64 for 64bit mode. So, cast pointer to long long
7445 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr));
7472 // cast offset to "char *".
7501 auto *CDecl = cast<ObjCContainerDecl>(D->getDeclContext());