Lines Matching refs:DRE

392     Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2104 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local
2111 DRE, nullptr, VK_PRValue, FPOptionsOverride()); in SynthesizeCallToFunctionDecl()
2591 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral() local
2594 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2595 Context->getPointerType(DRE->getType()), VK_PRValue, OK_Ordinary, in RewriteObjCStringLiteral()
2680 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCBoxedExpr() local
2684 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCBoxedExpr()
2801 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr() local
2805 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr()
2953 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr() local
2957 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCDictionaryLiteralExpr()
3180 DeclRefExpr *DRE = new (Context) in SynthMsgSendStretCallExpr() local
3183 CallExpr::Create(*Context, DRE, MsgExprs, castType, VK_LValue, in SynthMsgSendStretCallExpr()
3276 DeclRefExpr *DRE = new (Context) in SynthMessageExpr() local
3280 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue, in SynthMessageExpr()
3368 DeclRefExpr *DRE = new (Context) in SynthMessageExpr() local
3372 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue, in SynthMessageExpr()
3512 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr() local
3521 CK_BitCast, DRE); in SynthMessageExpr()
3590 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr() local
3593 Context, Context->getPointerType(DRE->getType()), CK_BitCast, DRE); in RewriteObjCProtocolExpr()
4469 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs() local
4470 if (DRE->refersToEnclosingVariableOrCapture() || in GetBlockDeclRefExprs()
4471 HasLocalVariableExternalStorage(DRE->getDecl())) in GetBlockDeclRefExprs()
4473 BlockDeclRefs.push_back(DRE); in GetBlockDeclRefExprs()
4491 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs() local
4492 if (DRE->refersToEnclosingVariableOrCapture() || in GetInnerBlockDeclRefExprs()
4493 HasLocalVariableExternalStorage(DRE->getDecl())) { in GetInnerBlockDeclRefExprs()
4494 if (!InnerContexts.count(DRE->getDecl()->getDeclContext())) in GetInnerBlockDeclRefExprs()
4495 InnerBlockDeclRefs.push_back(DRE); in GetInnerBlockDeclRefExprs()
4496 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl())) in GetInnerBlockDeclRefExprs()
4556 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) { in SynthesizeBlockCall() local
4557 CPT = DRE->getType()->getAs<BlockPointerType>(); in SynthesizeBlockCall()
4699 Stmt *RewriteModernObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) { in RewriteLocalVariableExternalStorage() argument
4700 ValueDecl *VD = DRE->getDecl(); in RewriteLocalVariableExternalStorage()
4703 return DRE; in RewriteLocalVariableExternalStorage()
4705 const_cast<ASTContext &>(*Context), DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage()
4706 VK_LValue, OK_Ordinary, DRE->getLocation(), false, FPOptionsOverride()); in RewriteLocalVariableExternalStorage()
4710 ReplaceStmt(DRE, PE); in RewriteLocalVariableExternalStorage()
5273 DeclRefExpr *DRE = new (Context) in SynthBlockInitExpr() local
5389 NewRep = CallExpr::Create(*Context, DRE, InitExprs, FType, VK_LValue, in SynthBlockInitExpr()
5396 NewRep = DRE; in SynthBlockInitExpr()
5627 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in RewriteFunctionBodyOrGlobalInitializer() local
5628 ValueDecl *VD = DRE->getDecl(); in RewriteFunctionBodyOrGlobalInitializer()
5630 return RewriteBlockDeclRefExpr(DRE); in RewriteFunctionBodyOrGlobalInitializer()
5632 return RewriteLocalVariableExternalStorage(DRE); in RewriteFunctionBodyOrGlobalInitializer()
7484 DeclRefExpr *DRE = new (Context) in RewriteObjCIvarRefExpr() local
7488 *Context, castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr()