Lines Matching refs:DRE
327 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2022 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType,
2029 DRE, nullptr, VK_RValue);
2521 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue,
2523 DRE, UO_AddrOf,
2524 Context->getPointerType(DRE->getType()),
2719 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl,
2722 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2819 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl,
2822 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs,
2965 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType,
2974 CK_BitCast, DRE);
3070 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(),
3072 Expr *DerefExpr = new (Context) UnaryOperator(DRE, UO_AddrOf,
3073 Context->getPointerType(DRE->getType()),
3687 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
3688 if (DRE->refersToEnclosingLocal()) {
3690 if (!isa<FunctionDecl>(DRE->getDecl()))
3691 BlockDeclRefs.push_back(DRE);
3692 DRE->getDecl()))
3693 BlockDeclRefs.push_back(DRE);
3718 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
3719 if (DRE->refersToEnclosingLocal()) {
3720 if (!isa<FunctionDecl>(DRE->getDecl()) &&
3721 !InnerContexts.count(DRE->getDecl()->getDeclContext()))
3722 InnerBlockDeclRefs.push_back(DRE);
3723 if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl()))
3766 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
3767 CPT = DRE->getType()->getAs<BlockPointerType>();
3916 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
3917 ValueDecl *VD = DRE->getDecl();
3920 return DRE;
3921 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(),
3923 DRE->getLocation());
3927 ReplaceStmt(DRE, PE);
4465 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue,
4582 NewRep = new (Context) CallExpr(*Context, DRE, InitExprs,
4786 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
4787 ValueDecl *VD = DRE->getDecl();
4789 return RewriteBlockDeclRefExpr(DRE);
4791 return RewriteLocalVariableExternalStorage(DRE);