• Home
  • Raw
  • Download

Lines Matching refs:DRE

319     Stmt *RewriteLocalVariableExternalStorage(DeclRefExpr *DRE);
2011 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, in SynthesizeCallToFunctionDecl() local
2018 DRE, nullptr, VK_RValue); in SynthesizeCallToFunctionDecl()
2508 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral() local
2510 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2511 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2699 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local
2702 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2794 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr() local
2797 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2938 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in SynthMessageExpr() local
2947 CK_BitCast, DRE); in SynthMessageExpr()
3043 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), in RewriteObjCProtocolExpr() local
3045 Expr *DerefExpr = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCProtocolExpr()
3046 Context->getPointerType(DRE->getType()), in RewriteObjCProtocolExpr()
3654 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) in GetBlockDeclRefExprs() local
3655 if (DRE->refersToEnclosingVariableOrCapture() || in GetBlockDeclRefExprs()
3656 HasLocalVariableExternalStorage(DRE->getDecl())) in GetBlockDeclRefExprs()
3658 BlockDeclRefs.push_back(DRE); in GetBlockDeclRefExprs()
3676 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in GetInnerBlockDeclRefExprs() local
3677 if (DRE->refersToEnclosingVariableOrCapture() || in GetInnerBlockDeclRefExprs()
3678 HasLocalVariableExternalStorage(DRE->getDecl())) { in GetInnerBlockDeclRefExprs()
3679 if (!InnerContexts.count(DRE->getDecl()->getDeclContext())) in GetInnerBlockDeclRefExprs()
3680 InnerBlockDeclRefs.push_back(DRE); in GetInnerBlockDeclRefExprs()
3681 if (VarDecl *Var = cast<VarDecl>(DRE->getDecl())) in GetInnerBlockDeclRefExprs()
3722 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BlockExp)) { in SynthesizeBlockCall() local
3723 CPT = DRE->getType()->getAs<BlockPointerType>(); in SynthesizeBlockCall()
3870 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) { in RewriteLocalVariableExternalStorage() argument
3871 ValueDecl *VD = DRE->getDecl(); in RewriteLocalVariableExternalStorage()
3874 return DRE; in RewriteLocalVariableExternalStorage()
3875 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage()
3877 DRE->getLocation()); in RewriteLocalVariableExternalStorage()
3881 ReplaceStmt(DRE, PE); in RewriteLocalVariableExternalStorage()
4413 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, in SynthBlockInitExpr() local
4529 NewRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthBlockInitExpr()
4732 if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(S)) { in RewriteFunctionBodyOrGlobalInitializer() local
4733 ValueDecl *VD = DRE->getDecl(); in RewriteFunctionBodyOrGlobalInitializer()
4735 return RewriteBlockDeclRefExpr(DRE); in RewriteFunctionBodyOrGlobalInitializer()
4737 return RewriteLocalVariableExternalStorage(DRE); in RewriteFunctionBodyOrGlobalInitializer()