Lines Matching refs:Exp

348     Stmt *RewriteAtEncode(ObjCEncodeExpr *Exp);
351 Stmt *RewriteAtSelector(ObjCSelectorExpr *Exp);
352 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
353 Stmt *RewriteObjCStringLiteral(ObjCStringLiteral *Exp);
354 Stmt *RewriteObjCBoolLiteralExpr(ObjCBoolLiteralExpr *Exp);
355 Stmt *RewriteObjCBoxedExpr(ObjCBoxedExpr *Exp);
356 Stmt *RewriteObjCArrayLiteralExpr(ObjCArrayLiteral *Exp);
357 Stmt *RewriteObjCDictionaryLiteralExpr(ObjCDictionaryLiteral *Exp);
358 Stmt *RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp);
423 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
476 Stmt *SynthesizeBlockCall(CallExpr *Exp, const Expr* BlockExp);
480 Stmt *SynthBlockInitExpr(BlockExpr *Exp,
491 void CollectBlockDeclRefInfo(BlockExpr *Exp);
2061 Stmt *RewriteModernObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) {
2064 Context->getObjCEncodingForType(Exp->getEncodedType(), StrEncoding);
2066 ReplaceStmt(Exp, Replacement);
2069 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
2073 Stmt *RewriteModernObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) {
2079 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString()));
2082 ReplaceStmt(Exp, SelExp);
2083 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
2107 CallExpr *Exp = new (Context) CallExpr(*Context, ICE, Args,
2110 return Exp;
2552 Stmt *RewriteModernObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
2553 assert (Exp != nullptr && "Expected non-null ObjCStringLiteral");
2576 Exp->getString()->printPretty(prettyBuf, nullptr, PrintingPolicy(LangOpts));
2579 Preamble += utostr(Exp->getString()->getByteLength()) + "};\n";
2591 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(),
2593 ReplaceStmt(Exp, cast);
2594 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
2598 Stmt *RewriteModernObjC::RewriteObjCBoolLiteralExpr(ObjCBoolLiteralExpr *Exp) {
2603 llvm::APInt(IntSize, Exp->getValue()),
2604 Context->IntTy, Exp->getLocation());
2607 ParenExpr *PE = new (Context) ParenExpr(Exp->getLocation(), Exp->getExprLoc(),
2609 ReplaceStmt(Exp, PE);
2613 Stmt *RewriteModernObjC::RewriteObjCBoxedExpr(ObjCBoxedExpr *Exp) {
2624 SourceLocation StartLoc = Exp->getLocStart();
2625 SourceLocation EndLoc = Exp->getLocEnd();
2632 ObjCMethodDecl *BoxingMethod = Exp->getBoxingMethod();
2651 Expr *subExpr = Exp->getSubExpr();
2668 QualType returnType = Exp->getType();
2693 ReplaceStmt(Exp, CE);
2697 Stmt *RewriteModernObjC::RewriteObjCArrayLiteralExpr(ObjCArrayLiteral *Exp) {
2708 SourceLocation StartLoc = Exp->getLocStart();
2709 SourceLocation EndLoc = Exp->getLocEnd();
2722 unsigned NumElements = Exp->getNumElements();
2730 InitExprs.push_back(Exp->getElement(i));
2754 QualType expType = Exp->getType();
2769 ObjCMethodDecl *ArrayMethod = Exp->getArrayWithObjectsMethod();
2791 QualType returnType = Exp->getType();
2816 ReplaceStmt(Exp, CE);
2820 Stmt *RewriteModernObjC::RewriteObjCDictionaryLiteralExpr(ObjCDictionaryLiteral *Exp) {
2831 SourceLocation StartLoc = Exp->getLocStart();
2832 SourceLocation EndLoc = Exp->getLocEnd();
2847 unsigned NumElements = Exp->getNumElements();
2856 ObjCDictionaryElement Element = Exp->getKeyValueElement(i);
2899 QualType expType = Exp->getType();
2914 ObjCMethodDecl *DictMethod = Exp->getDictWithObjectsMethod();
2945 QualType returnType = Exp->getType();
2970 ReplaceStmt(Exp, CE);
3197 Stmt *RewriteModernObjC::SynthMessageExpr(ObjCMessageExpr *Exp,
3223 if (ObjCMethodDecl *mDecl = Exp->getMethodDecl()) {
3233 switch (Exp->getReceiverKind()) {
3321 = Exp->getClassReceiver()->getAs<ObjCObjectType>()->getInterface();
3410 Expr *recExpr = Exp->getInstanceReceiver();
3427 SelExprs.push_back(getStringLiteral(Exp->getSelector().getAsString()));
3433 for (unsigned i = 0; i < Exp->getNumArgs(); i++) {
3434 Expr *userExpr = Exp->getArg(i);
3485 //Exp->setArg(i, 0);
3498 if (ObjCMethodDecl *OMD = Exp->getMethodDecl()) {
3508 returnType = Exp->getType();
3531 const ObjCMethodDecl *MD = Exp->getMethodDecl();
3554 Exp->getMethodDecl());
3557 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
3561 Stmt *RewriteModernObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) {
3562 Stmt *ReplacingStmt = SynthMessageExpr(Exp, Exp->getLocStart(),
3563 Exp->getLocEnd());
3566 ReplaceStmt(Exp, ReplacingStmt);
3568 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
3589 Stmt *RewriteModernObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) {
3591 Exp->getProtocol()->getNameAsString();
3601 ReplaceStmt(Exp, castExpr);
3602 ProtocolExprDecls.insert(Exp->getProtocol()->getCanonicalDecl());
3603 // delete Exp; leak for now, see RewritePropertyOrImplicitSetter() usage for more info.
4348 DeclRefExpr *Exp = InnerDeclRefs[count++];
4349 ValueDecl *VD = Exp->getDecl();
4350 BlockDeclRefs.push_back(Exp);
4559 Stmt *RewriteModernObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) {
4569 return SynthesizeBlockCall(Exp, PRE->getSubExpr());
4576 Stmt *LHSStmt = SynthesizeBlockCall(Exp, LHSExp);
4578 Stmt *RHSStmt = SynthesizeBlockCall(Exp, RHSExp);
4584 Exp->getType(), VK_RValue, OK_Ordinary);
4620 QualType PtrToFuncCastType = getSimpleFunctionType(Exp->getType(), ArgTypes);
4650 for (CallExpr::arg_iterator I = Exp->arg_begin(),
4651 E = Exp->arg_end(); I != E; ++I) {
4655 Exp->getType(), VK_RValue,
4716 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(),
4721 Exp);
5171 void RewriteModernObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) {
5173 GetBlockDeclRefExprs(Exp->getBody());
5208 Stmt *RewriteModernObjC::SynthBlockInitExpr(BlockExpr *Exp,
5210 const BlockDecl *block = Exp->getBlockDecl();
5212 Blocks.push_back(Exp);
5214 CollectBlockDeclRefInfo(Exp);
5220 DeclRefExpr *Exp = InnerBlockDeclRefs[i];
5221 ValueDecl *VD = Exp->getDecl();
5226 InnerDeclRefs.push_back(Exp); countOfInnerDecls++;
5227 BlockDeclRefs.push_back(Exp);
5232 InnerDeclRefs.push_back(Exp); countOfInnerDecls++;
5233 BlockDeclRefs.push_back(Exp);
5269 QualType BFT = convertFunctionTypeOfBlocks(Exp->getFunctionType());
5319 Expr *Exp;
5326 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(),
5331 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue,
5338 Exp = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy,
5342 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(),
5347 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue,
5352 InitExprs.push_back(Exp);
5370 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue,
5386 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf,
5387 Context->getPointerType(Exp->getType()),
5389 Exp = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, Exp);
5390 InitExprs.push_back(Exp);
7555 Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT,
7560 Exp);