Lines Matching refs:DRE

319     Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2020 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local
2027 DRE, nullptr, VK_PRValue, FPOptionsOverride()); in SynthesizeCallToFunctionDecl()
2517 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral() local
2520 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2521 Context->getPointerType(DRE->getType()), VK_PRValue, OK_Ordinary, in RewriteObjCStringLiteral()
2705 DeclRefExpr *DRE = new (Context) in SynthMessageExpr() local
2709 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue, in SynthMessageExpr()
2797 DeclRefExpr *DRE = new (Context) in SynthMessageExpr() local
2801 CallExpr::Create(*Context, DRE, InitExprs, superType, VK_LValue, in SynthMessageExpr()
2941 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr() local
2950 CK_BitCast, DRE); in SynthMessageExpr()
3043 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr() local
3046 const_cast<ASTContext &>(*Context), DRE, UO_AddrOf, in RewriteObjCProtocolExpr()
3047 Context->getPointerType(DRE->getType()), VK_PRValue, OK_Ordinary, in RewriteObjCProtocolExpr()
3655 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs() local
3656 if (DRE->refersToEnclosingVariableOrCapture() || in GetBlockDeclRefExprs()
3657 HasLocalVariableExternalStorage(DRE->getDecl())) in GetBlockDeclRefExprs()
3659 BlockDeclRefs.push_back(DRE); in GetBlockDeclRefExprs()
3677 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs() local
3678 if (DRE->refersToEnclosingVariableOrCapture() || in GetInnerBlockDeclRefExprs()
3679 HasLocalVariableExternalStorage(DRE->getDecl())) { in GetInnerBlockDeclRefExprs()
3680 if (!InnerContexts.count(DRE->getDecl()->getDeclContext())) in GetInnerBlockDeclRefExprs()
3681 InnerBlockDeclRefs.push_back(DRE); in GetInnerBlockDeclRefExprs()
3682 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl())) in GetInnerBlockDeclRefExprs()
3723 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) { in SynthesizeBlockCall() local
3724 CPT = DRE->getType()->getAs<BlockPointerType>(); in SynthesizeBlockCall()
3867 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) { in RewriteLocalVariableExternalStorage() argument
3868 ValueDecl *VD = DRE->getDecl(); in RewriteLocalVariableExternalStorage()
3871 return DRE; in RewriteLocalVariableExternalStorage()
3873 const_cast<ASTContext &>(*Context), DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage()
3874 VK_LValue, OK_Ordinary, DRE->getLocation(), false, FPOptionsOverride()); in RewriteLocalVariableExternalStorage()
3878 ReplaceStmt(DRE, PE); in RewriteLocalVariableExternalStorage()
4410 DeclRefExpr *DRE = new (Context) in SynthBlockInitExpr() local
4526 NewRep = CallExpr::Create(*Context, DRE, InitExprs, FType, VK_LValue, in SynthBlockInitExpr()
4730 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in RewriteFunctionBodyOrGlobalInitializer() local
4731 ValueDecl *VD = DRE->getDecl(); in RewriteFunctionBodyOrGlobalInitializer()
4733 return RewriteBlockDeclRefExpr(DRE); in RewriteFunctionBodyOrGlobalInitializer()
4735 return RewriteLocalVariableExternalStorage(DRE); in RewriteFunctionBodyOrGlobalInitializer()