Lines Matching refs:Exp
294 Stmt *RewriteAtEncode(ObjCEncodeExpr *Exp);
297 Stmt *RewriteAtSelector(ObjCSelectorExpr *Exp);
298 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
299 Stmt *RewriteObjCStringLiteral(ObjCStringLiteral *Exp);
300 Stmt *RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp);
359 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
386 Stmt *SynthesizeBlockCall(CallExpr *Exp, const Expr* BlockExp);
390 Stmt *SynthBlockInitExpr(BlockExpr *Exp,
402 void CollectBlockDeclRefInfo(BlockExpr *Exp);
1976 Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) { in RewriteAtEncode() argument
1979 Context->getObjCEncodingForType(Exp->getEncodedType(), StrEncoding); in RewriteAtEncode()
1981 ReplaceStmt(Exp, Replacement); in RewriteAtEncode()
1988 Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) { in RewriteAtSelector() argument
1994 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString())); in RewriteAtSelector()
1997 ReplaceStmt(Exp, SelExp); in RewriteAtSelector()
2022 CallExpr *Exp = new (Context) CallExpr(*Context, ICE, Args, in SynthesizeCallToFunctionDecl() local
2025 return Exp; in SynthesizeCallToFunctionDecl()
2476 Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { in RewriteObjCStringLiteral() argument
2477 assert(Exp != nullptr && "Expected non-null ObjCStringLiteral"); in RewriteObjCStringLiteral()
2500 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts)); in RewriteObjCStringLiteral()
2503 Preamble += utostr(Exp->getString()->getByteLength()) + "};\n"; in RewriteObjCStringLiteral()
2515 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(), in RewriteObjCStringLiteral()
2517 ReplaceStmt(Exp, cast); in RewriteObjCStringLiteral()
2615 Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp, in SynthMessageExpr() argument
2641 if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) { in SynthMessageExpr()
2651 switch (Exp->getReceiverKind()) { in SynthMessageExpr()
2741 = Exp->getClassReceiver()->getAs<ObjCObjectType>()->getInterface(); in SynthMessageExpr()
2830 Expr *recExpr = Exp->getInstanceReceiver(); in SynthMessageExpr()
2847 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString())); in SynthMessageExpr()
2853 for (unsigned i = 0; i < Exp->getNumArgs(); i++) { in SynthMessageExpr()
2854 Expr *userExpr = Exp->getArg(i); in SynthMessageExpr()
2918 if (ObjCMethodDecl *OMD = Exp->getMethodDecl()) { in SynthMessageExpr()
2928 returnType = Exp->getType(); in SynthMessageExpr()
2951 const ObjCMethodDecl *MD = Exp->getMethodDecl(); in SynthMessageExpr()
2974 Exp->getMethodDecl()); in SynthMessageExpr()
3009 Stmt *RewriteObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) { in RewriteMessageExpr() argument
3010 Stmt *ReplacingStmt = SynthMessageExpr(Exp, Exp->getLocStart(), in RewriteMessageExpr()
3011 Exp->getLocEnd()); in RewriteMessageExpr()
3014 ReplaceStmt(Exp, ReplacingStmt); in RewriteMessageExpr()
3037 Stmt *RewriteObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) { in RewriteObjCProtocolExpr() argument
3038 std::string Name = "_OBJC_PROTOCOL_" + Exp->getProtocol()->getNameAsString(); in RewriteObjCProtocolExpr()
3051 ReplaceStmt(Exp, castExpr); in RewriteObjCProtocolExpr()
3052 ProtocolExprDecls.insert(Exp->getProtocol()->getCanonicalDecl()); in RewriteObjCProtocolExpr()
3552 DeclRefExpr *Exp = InnerDeclRefs[count++]; in SynthesizeBlockLiterals() local
3553 ValueDecl *VD = Exp->getDecl(); in SynthesizeBlockLiterals()
3554 BlockDeclRefs.push_back(Exp); in SynthesizeBlockLiterals()
3718 Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) { in SynthesizeBlockCall() argument
3728 return SynthesizeBlockCall(Exp, PRE->getSubExpr()); in SynthesizeBlockCall()
3735 Stmt *LHSStmt = SynthesizeBlockCall(Exp, LHSExp); in SynthesizeBlockCall()
3737 Stmt *RHSStmt = SynthesizeBlockCall(Exp, RHSExp); in SynthesizeBlockCall()
3743 Exp->getType(), VK_RValue, OK_Ordinary); in SynthesizeBlockCall()
3779 QualType PtrToFuncCastType = getSimpleFunctionType(Exp->getType(), ArgTypes); in SynthesizeBlockCall()
3809 for (CallExpr::arg_iterator I = Exp->arg_begin(), in SynthesizeBlockCall()
3810 E = Exp->arg_end(); I != E; ++I) { in SynthesizeBlockCall()
3814 Exp->getType(), VK_RValue, in SynthesizeBlockCall()
3875 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage() local
3880 Exp); in RewriteLocalVariableExternalStorage()
4315 void RewriteObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { in CollectBlockDeclRefInfo() argument
4317 GetBlockDeclRefExprs(Exp->getBody()); in CollectBlockDeclRefInfo()
4352 Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp, in SynthBlockInitExpr() argument
4354 const BlockDecl *block = Exp->getBlockDecl(); in SynthBlockInitExpr()
4355 Blocks.push_back(Exp); in SynthBlockInitExpr()
4357 CollectBlockDeclRefInfo(Exp); in SynthBlockInitExpr()
4363 DeclRefExpr *Exp = InnerBlockDeclRefs[i]; in SynthBlockInitExpr() local
4364 ValueDecl *VD = Exp->getDecl(); in SynthBlockInitExpr()
4369 InnerDeclRefs.push_back(Exp); countOfInnerDecls++; in SynthBlockInitExpr()
4370 BlockDeclRefs.push_back(Exp); in SynthBlockInitExpr()
4375 InnerDeclRefs.push_back(Exp); countOfInnerDecls++; in SynthBlockInitExpr()
4376 BlockDeclRefs.push_back(Exp); in SynthBlockInitExpr()
4405 QualType BFT = convertFunctionTypeOfBlocks(Exp->getFunctionType()); in SynthBlockInitExpr()
4447 Expr *Exp; in SynthBlockInitExpr() local
4454 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4459 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4466 Exp = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
4470 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4475 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4479 InitExprs.push_back(Exp); in SynthBlockInitExpr()
4497 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4513 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, in SynthBlockInitExpr()
4514 Context->getPointerType(Exp->getType()), in SynthBlockInitExpr()
4516 Exp = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, Exp); in SynthBlockInitExpr()
4517 InitExprs.push_back(Exp); in SynthBlockInitExpr()