Lines Matching defs:DRE
391 Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2103 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType,
2110 DRE, nullptr, VK_PRValue, FPOptionsOverride());
2590 DeclRefExpr *DRE = new (Context)
2593 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf,
2594 Context->getPointerType(DRE->getType()), VK_PRValue, OK_Ordinary,
2679 DeclRefExpr *DRE = new (Context) DeclRefExpr(
2683 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE);
2800 DeclRefExpr *DRE = new (Context) DeclRefExpr(
2804 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE);
2952 DeclRefExpr *DRE = new (Context) DeclRefExpr(
2956 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE);
3179 DeclRefExpr *DRE = new (Context)
3182 CallExpr::Create(*Context, DRE, MsgExprs, castType, VK_LValue,
3275 DeclRefExpr *DRE = new (Context)
3279 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue,
3367 DeclRefExpr *DRE = new (Context)
3371 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue,
3511 DeclRefExpr *DRE = new (Context) DeclRefExpr(
3520 CK_BitCast, DRE);
3589 DeclRefExpr *DRE = new (Context) DeclRefExpr(
3592 Context, Context->getPointerType(DRE->getType()), CK_BitCast, DRE);
4466 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S))
4467 if (DRE->refersToEnclosingVariableOrCapture() ||
4468 HasLocalVariableExternalStorage(DRE->getDecl()))
4470 BlockDeclRefs.push_back(DRE);
4488 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
4489 if (DRE->refersToEnclosingVariableOrCapture() ||
4490 HasLocalVariableExternalStorage(DRE->getDecl())) {
4491 if (!InnerContexts.count(DRE->getDecl()->getDeclContext()))
4492 InnerBlockDeclRefs.push_back(DRE);
4493 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl()))
4553 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) {
4554 CPT = DRE->getType()->getAs<BlockPointerType>();
4696 Stmt *RewriteModernObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
4697 ValueDecl *VD = DRE->getDecl();
4700 return DRE;
4702 const_cast<ASTContext &>(*Context), DRE, UO_Deref, DRE->getType(),
4703 VK_LValue, OK_Ordinary, DRE->getLocation(), false, FPOptionsOverride());
4707 ReplaceStmt(DRE, PE);
5270 DeclRefExpr *DRE = new (Context)
5386 NewRep = CallExpr::Create(*Context, DRE, InitExprs, FType, VK_LValue,
5393 NewRep = DRE;
5624 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) {
5625 ValueDecl *VD = DRE->getDecl();
5627 return RewriteBlockDeclRefExpr(DRE);
5629 return RewriteLocalVariableExternalStorage(DRE);
7481 DeclRefExpr *DRE = new (Context)
7485 *Context, castExpr, DRE, BO_Add,