Lines Matching refs:Exp

293     Stmt *RewriteAtEncode(ObjCEncodeExpr *Exp);
296 Stmt *RewriteAtSelector(ObjCSelectorExpr *Exp);
297 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
298 Stmt *RewriteObjCStringLiteral(ObjCStringLiteral *Exp);
299 Stmt *RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp);
358 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
385 Stmt *SynthesizeBlockCall(CallExpr *Exp, const Expr* BlockExp);
389 Stmt *SynthBlockInitExpr(BlockExpr *Exp,
401 void CollectBlockDeclRefInfo(BlockExpr *Exp);
1980 Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) { in RewriteAtEncode() argument
1983 Context->getObjCEncodingForType(Exp->getEncodedType(), StrEncoding); in RewriteAtEncode()
1985 ReplaceStmt(Exp, Replacement); in RewriteAtEncode()
1992 Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) { in RewriteAtSelector() argument
1998 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString())); in RewriteAtSelector()
2001 ReplaceStmt(Exp, SelExp); in RewriteAtSelector()
2026 CallExpr *Exp = new (Context) CallExpr(*Context, ICE, Args, in SynthesizeCallToFunctionDecl() local
2029 return Exp; in SynthesizeCallToFunctionDecl()
2481 Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { in RewriteObjCStringLiteral() argument
2482 assert(Exp != nullptr && "Expected non-null ObjCStringLiteral"); in RewriteObjCStringLiteral()
2505 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts)); in RewriteObjCStringLiteral()
2508 Preamble += utostr(Exp->getString()->getByteLength()) + "};\n"; in RewriteObjCStringLiteral()
2520 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(), in RewriteObjCStringLiteral()
2522 ReplaceStmt(Exp, cast); in RewriteObjCStringLiteral()
2622 Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp, in SynthMessageExpr() argument
2648 if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) { in SynthMessageExpr()
2658 switch (Exp->getReceiverKind()) { in SynthMessageExpr()
2748 = Exp->getClassReceiver()->getAs<ObjCObjectType>()->getInterface(); in SynthMessageExpr()
2837 Expr *recExpr = Exp->getInstanceReceiver(); in SynthMessageExpr()
2854 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString())); in SynthMessageExpr()
2860 for (unsigned i = 0; i < Exp->getNumArgs(); i++) { in SynthMessageExpr()
2861 Expr *userExpr = Exp->getArg(i); in SynthMessageExpr()
2925 if (ObjCMethodDecl *OMD = Exp->getMethodDecl()) { in SynthMessageExpr()
2935 returnType = Exp->getType(); in SynthMessageExpr()
2958 const ObjCMethodDecl *MD = Exp->getMethodDecl(); in SynthMessageExpr()
2981 Exp->getMethodDecl()); in SynthMessageExpr()
3016 Stmt *RewriteObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) { in RewriteMessageExpr() argument
3017 Stmt *ReplacingStmt = SynthMessageExpr(Exp, Exp->getLocStart(), in RewriteMessageExpr()
3018 Exp->getLocEnd()); in RewriteMessageExpr()
3021 ReplaceStmt(Exp, ReplacingStmt); in RewriteMessageExpr()
3044 Stmt *RewriteObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) { in RewriteObjCProtocolExpr() argument
3045 std::string Name = "_OBJC_PROTOCOL_" + Exp->getProtocol()->getNameAsString(); in RewriteObjCProtocolExpr()
3058 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3059 ProtocolExprDecls.insert(Exp->getProtocol()->getCanonicalDecl()); in RewriteObjCProtocolExpr()
3561 DeclRefExpr *Exp = InnerDeclRefs[count++]; in SynthesizeBlockLiterals() local
3562 ValueDecl *VD = Exp->getDecl(); in SynthesizeBlockLiterals()
3563 BlockDeclRefs.push_back(Exp); in SynthesizeBlockLiterals()
3731 Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) { in SynthesizeBlockCall() argument
3741 return SynthesizeBlockCall(Exp, PRE->getSubExpr()); in SynthesizeBlockCall()
3748 Stmt *LHSStmt = SynthesizeBlockCall(Exp, LHSExp); in SynthesizeBlockCall()
3750 Stmt *RHSStmt = SynthesizeBlockCall(Exp, RHSExp); in SynthesizeBlockCall()
3756 Exp->getType(), VK_RValue, OK_Ordinary); in SynthesizeBlockCall()
3792 QualType PtrToFuncCastType = getSimpleFunctionType(Exp->getType(), ArgTypes); in SynthesizeBlockCall()
3822 for (CallExpr::arg_iterator I = Exp->arg_begin(), in SynthesizeBlockCall()
3823 E = Exp->arg_end(); I != E; ++I) { in SynthesizeBlockCall()
3827 Exp->getType(), VK_RValue, in SynthesizeBlockCall()
3888 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage() local
3893 Exp); in RewriteLocalVariableExternalStorage()
4334 void RewriteObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { in CollectBlockDeclRefInfo() argument
4336 GetBlockDeclRefExprs(Exp->getBody()); in CollectBlockDeclRefInfo()
4371 Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp, in SynthBlockInitExpr() argument
4373 const BlockDecl *block = Exp->getBlockDecl(); in SynthBlockInitExpr()
4374 Blocks.push_back(Exp); in SynthBlockInitExpr()
4376 CollectBlockDeclRefInfo(Exp); in SynthBlockInitExpr()
4382 DeclRefExpr *Exp = InnerBlockDeclRefs[i]; in SynthBlockInitExpr() local
4383 ValueDecl *VD = Exp->getDecl(); in SynthBlockInitExpr()
4388 InnerDeclRefs.push_back(Exp); countOfInnerDecls++; in SynthBlockInitExpr()
4389 BlockDeclRefs.push_back(Exp); in SynthBlockInitExpr()
4394 InnerDeclRefs.push_back(Exp); countOfInnerDecls++; in SynthBlockInitExpr()
4395 BlockDeclRefs.push_back(Exp); in SynthBlockInitExpr()
4424 QualType BFT = convertFunctionTypeOfBlocks(Exp->getFunctionType()); in SynthBlockInitExpr()
4466 Expr *Exp; in SynthBlockInitExpr() local
4473 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4478 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4485 Exp = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
4489 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4494 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4499 InitExprs.push_back(Exp); in SynthBlockInitExpr()
4517 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4533 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, in SynthBlockInitExpr()
4534 Context->getPointerType(Exp->getType()), in SynthBlockInitExpr()
4536 Exp = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, Exp); in SynthBlockInitExpr()
4537 InitExprs.push_back(Exp); in SynthBlockInitExpr()