Lines Matching refs:Expr
66 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteObjCRedundantCallWithLiteral()
109 const Expr *Receiver, in maybeAdjustInterfaceForSubscriptingCheck()
159 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax()
171 static bool subscriptOperatorNeedsParens(const Expr *FullExpr);
173 static void maybePutParensOnReceiver(const Expr *Receiver, Commit &commit) { in maybePutParensOnReceiver()
184 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon()
232 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet()
266 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToDictionarySubscriptSet()
375 static void objectifyExpr(const Expr *E, Commit &commit);
411 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral()
439 static bool getNSArrayObjects(const Expr *E, const NSAPI &NS, in getNSArrayObjects()
440 SmallVectorImpl<const Expr *> &Objs) { in getNSArrayObjects()
471 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in getNSArrayObjects()
528 const Expr *SentinelExpr = Msg->getArg(SentinelIdx); in rewriteToDictionaryLiteral()
565 SmallVector<const Expr *, 8> Vals; in rewriteToDictionaryLiteral()
569 SmallVector<const Expr *, 8> Keys; in rewriteToDictionaryLiteral()
621 SmallVector<const Expr *, 8> Vals; in shouldNotRewriteImmediateMessageArgs()
625 SmallVector<const Expr *, 8> Keys; in shouldNotRewriteImmediateMessageArgs()
659 const Expr *Arg, in rewriteToBoolLiteral()
757 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteToNumberLiteral()
765 const Expr *literalE = Arg; in rewriteToNumberLiteral()
891 static bool subscriptOperatorNeedsParens(const Expr *FullExpr) { in subscriptOperatorNeedsParens()
892 const Expr* Expr = FullExpr->IgnoreImpCasts(); in subscriptOperatorNeedsParens() local
893 if (isa<ArraySubscriptExpr>(Expr) || in subscriptOperatorNeedsParens()
894 isa<CallExpr>(Expr) || in subscriptOperatorNeedsParens()
895 isa<DeclRefExpr>(Expr) || in subscriptOperatorNeedsParens()
896 isa<CXXNamedCastExpr>(Expr) || in subscriptOperatorNeedsParens()
897 isa<CXXConstructExpr>(Expr) || in subscriptOperatorNeedsParens()
898 isa<CXXThisExpr>(Expr) || in subscriptOperatorNeedsParens()
899 isa<CXXTypeidExpr>(Expr) || in subscriptOperatorNeedsParens()
900 isa<CXXUnresolvedConstructExpr>(Expr) || in subscriptOperatorNeedsParens()
901 isa<ObjCMessageExpr>(Expr) || in subscriptOperatorNeedsParens()
902 isa<ObjCPropertyRefExpr>(Expr) || in subscriptOperatorNeedsParens()
903 isa<ObjCProtocolExpr>(Expr) || in subscriptOperatorNeedsParens()
904 isa<MemberExpr>(Expr) || in subscriptOperatorNeedsParens()
905 isa<ObjCIvarRefExpr>(Expr) || in subscriptOperatorNeedsParens()
907 isa<ParenListExpr>(Expr) || in subscriptOperatorNeedsParens()
908 isa<SizeOfPackExpr>(Expr)) in subscriptOperatorNeedsParens()
913 static bool castOperatorNeedsParens(const Expr *FullExpr) { in castOperatorNeedsParens()
914 const Expr* Expr = FullExpr->IgnoreImpCasts(); in castOperatorNeedsParens() local
915 if (isa<ArraySubscriptExpr>(Expr) || in castOperatorNeedsParens()
916 isa<CallExpr>(Expr) || in castOperatorNeedsParens()
917 isa<DeclRefExpr>(Expr) || in castOperatorNeedsParens()
918 isa<CastExpr>(Expr) || in castOperatorNeedsParens()
919 isa<CXXNewExpr>(Expr) || in castOperatorNeedsParens()
920 isa<CXXConstructExpr>(Expr) || in castOperatorNeedsParens()
921 isa<CXXDeleteExpr>(Expr) || in castOperatorNeedsParens()
922 isa<CXXNoexceptExpr>(Expr) || in castOperatorNeedsParens()
923 isa<CXXPseudoDestructorExpr>(Expr) || in castOperatorNeedsParens()
924 isa<CXXScalarValueInitExpr>(Expr) || in castOperatorNeedsParens()
925 isa<CXXThisExpr>(Expr) || in castOperatorNeedsParens()
926 isa<CXXTypeidExpr>(Expr) || in castOperatorNeedsParens()
927 isa<CXXUnresolvedConstructExpr>(Expr) || in castOperatorNeedsParens()
928 isa<ObjCMessageExpr>(Expr) || in castOperatorNeedsParens()
929 isa<ObjCPropertyRefExpr>(Expr) || in castOperatorNeedsParens()
930 isa<ObjCProtocolExpr>(Expr) || in castOperatorNeedsParens()
931 isa<MemberExpr>(Expr) || in castOperatorNeedsParens()
932 isa<ObjCIvarRefExpr>(Expr) || in castOperatorNeedsParens()
934 isa<ParenListExpr>(Expr) || in castOperatorNeedsParens()
935 isa<SizeOfPackExpr>(Expr) || in castOperatorNeedsParens()
936 isa<UnaryOperator>(Expr)) in castOperatorNeedsParens()
942 static void objectifyExpr(const Expr *E, Commit &commit) { in objectifyExpr()
967 static bool isEnumConstant(const Expr *E) { in isEnumConstant()
980 const Expr *Arg = Msg->getArg(0); in rewriteToNumericBoxedExpression()
992 const Expr *OrigArg = Arg->IgnoreImpCasts(); in rewriteToNumericBoxedExpression()
1127 const Expr *Arg = Msg->getArg(0); in doRewriteToUTF8StringBoxedExpressionHelper()
1133 const Expr *OrigArg = Arg->IgnoreImpCasts(); in doRewriteToUTF8StringBoxedExpressionHelper()
1179 const Expr *encodingArg = Msg->getArg(1); in rewriteToStringBoxedExpression()