Lines Matching refs:ObjCMessageExpr
26 static bool checkForLiteralCreation(const ObjCMessageExpr *Msg, in checkForLiteralCreation()
37 if (Msg->getReceiverKind() == ObjCMessageExpr::Class) in checkForLiteralCreation()
43 if (Msg->getReceiverKind() == ObjCMessageExpr::Instance) { in checkForLiteralCreation()
44 if (const ObjCMessageExpr *Rec = dyn_cast<ObjCMessageExpr>( in checkForLiteralCreation()
59 bool edit::rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, in rewriteObjCRedundantCallWithLiteral()
118 const ObjCMessageExpr * in maybeAdjustInterfaceForSubscriptingCheck()
119 InnerMsg = dyn_cast<ObjCMessageExpr>(Receiver->IgnoreParenCasts()); in maybeAdjustInterfaceForSubscriptingCheck()
125 case ObjCMessageExpr::Instance: in maybeAdjustInterfaceForSubscriptingCheck()
126 case ObjCMessageExpr::SuperInstance: in maybeAdjustInterfaceForSubscriptingCheck()
129 case ObjCMessageExpr::Class: in maybeAdjustInterfaceForSubscriptingCheck()
132 case ObjCMessageExpr::SuperClass: in maybeAdjustInterfaceForSubscriptingCheck()
157 const ObjCMessageExpr *Msg, in canRewriteToSubscriptSyntax()
181 static bool rewriteToSubscriptGetCommon(const ObjCMessageExpr *Msg, in rewriteToSubscriptGetCommon()
204 const ObjCMessageExpr *Msg, in rewriteToArraySubscriptGet()
214 const ObjCMessageExpr *Msg, in rewriteToDictionarySubscriptGet()
224 const ObjCMessageExpr *Msg, in rewriteToArraySubscriptSet()
258 const ObjCMessageExpr *Msg, in rewriteToDictionarySubscriptSet()
290 bool edit::rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg, in rewriteToObjCSubscriptSyntax()
293 Msg->getReceiverKind() != ObjCMessageExpr::Instance) in rewriteToObjCSubscriptSyntax()
327 static bool rewriteToArrayLiteral(const ObjCMessageExpr *Msg,
330 static bool rewriteToDictionaryLiteral(const ObjCMessageExpr *Msg,
332 static bool rewriteToNumberLiteral(const ObjCMessageExpr *Msg,
334 static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg,
336 static bool rewriteToStringBoxedExpression(const ObjCMessageExpr *Msg,
339 bool edit::rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, in rewriteToObjCLiteralSyntax()
368 static bool shouldNotRewriteImmediateMessageArgs(const ObjCMessageExpr *Msg,
378 static bool rewriteToArrayLiteral(const ObjCMessageExpr *Msg, in rewriteToArrayLiteral()
382 const ObjCMessageExpr *ParentMsg = in rewriteToArrayLiteral()
383 dyn_cast_or_null<ObjCMessageExpr>(PMap->getParentIgnoreParenCasts(Msg)); in rewriteToArrayLiteral()
449 if (const ObjCMessageExpr *Msg = dyn_cast<ObjCMessageExpr>(E)) { in getNSArrayObjects()
490 static bool rewriteToDictionaryLiteral(const ObjCMessageExpr *Msg, in rewriteToDictionaryLiteral()
604 static bool shouldNotRewriteImmediateMessageArgs(const ObjCMessageExpr *Msg, in shouldNotRewriteImmediateMessageArgs()
644 static bool rewriteToCharLiteral(const ObjCMessageExpr *Msg, in rewriteToCharLiteral()
660 static bool rewriteToBoolLiteral(const ObjCMessageExpr *Msg, in rewriteToBoolLiteral()
754 static bool rewriteToNumberLiteral(const ObjCMessageExpr *Msg, in rewriteToNumberLiteral()
899 isa<ObjCMessageExpr>(Expr) || in subscriptOperatorNeedsParens()
926 isa<ObjCMessageExpr>(Expr) || in castOperatorNeedsParens()
973 static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg, in rewriteToNumericBoxedExpression()
1109 const ObjCMessageExpr *Msg, in doRewriteToUTF8StringBoxedExpressionHelper()
1147 static bool rewriteToStringBoxedExpression(const ObjCMessageExpr *Msg, in rewriteToStringBoxedExpression()