Lines Matching refs:Expr

67   const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts();  in rewriteObjCRedundantCallWithLiteral()
110 const Expr *Receiver, in maybeAdjustInterfaceForSubscriptingCheck()
160 const Expr *Rec = Msg->getInstanceReceiver(); in canRewriteToSubscriptSyntax()
172 static bool subscriptOperatorNeedsParens(const Expr *FullExpr);
174 static void maybePutParensOnReceiver(const Expr *Receiver, Commit &commit) { in maybePutParensOnReceiver()
185 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToSubscriptGetCommon()
233 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToArraySubscriptSet()
267 const Expr *Rec = Msg->getInstanceReceiver(); in rewriteToDictionarySubscriptSet()
376 static void objectifyExpr(const Expr *E, Commit &commit);
412 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in rewriteToArrayLiteral()
440 static bool getNSArrayObjects(const Expr *E, const NSAPI &NS, in getNSArrayObjects()
441 SmallVectorImpl<const Expr *> &Objs) { in getNSArrayObjects()
472 const Expr *SentinelExpr = Msg->getArg(Msg->getNumArgs() - 1); in getNSArrayObjects()
529 const Expr *SentinelExpr = Msg->getArg(SentinelIdx); in rewriteToDictionaryLiteral()
566 SmallVector<const Expr *, 8> Vals; in rewriteToDictionaryLiteral()
570 SmallVector<const Expr *, 8> Keys; in rewriteToDictionaryLiteral()
623 SmallVector<const Expr *, 8> Vals; in shouldNotRewriteImmediateMessageArgs()
627 SmallVector<const Expr *, 8> Keys; in shouldNotRewriteImmediateMessageArgs()
661 const Expr *Arg, in rewriteToBoolLiteral()
759 const Expr *Arg = Msg->getArg(0)->IgnoreParenImpCasts(); in rewriteToNumberLiteral()
767 const Expr *literalE = Arg; in rewriteToNumberLiteral()
889 static bool subscriptOperatorNeedsParens(const Expr *FullExpr) { in subscriptOperatorNeedsParens()
890 const Expr* Expr = FullExpr->IgnoreImpCasts(); in subscriptOperatorNeedsParens() local
891 if (isa<ArraySubscriptExpr>(Expr) || in subscriptOperatorNeedsParens()
892 isa<CallExpr>(Expr) || in subscriptOperatorNeedsParens()
893 isa<DeclRefExpr>(Expr) || in subscriptOperatorNeedsParens()
894 isa<CXXNamedCastExpr>(Expr) || in subscriptOperatorNeedsParens()
895 isa<CXXConstructExpr>(Expr) || in subscriptOperatorNeedsParens()
896 isa<CXXThisExpr>(Expr) || in subscriptOperatorNeedsParens()
897 isa<CXXTypeidExpr>(Expr) || in subscriptOperatorNeedsParens()
898 isa<CXXUnresolvedConstructExpr>(Expr) || in subscriptOperatorNeedsParens()
899 isa<ObjCMessageExpr>(Expr) || in subscriptOperatorNeedsParens()
900 isa<ObjCPropertyRefExpr>(Expr) || in subscriptOperatorNeedsParens()
901 isa<ObjCProtocolExpr>(Expr) || in subscriptOperatorNeedsParens()
902 isa<MemberExpr>(Expr) || in subscriptOperatorNeedsParens()
903 isa<ObjCIvarRefExpr>(Expr) || in subscriptOperatorNeedsParens()
905 isa<ParenListExpr>(Expr) || in subscriptOperatorNeedsParens()
906 isa<SizeOfPackExpr>(Expr)) in subscriptOperatorNeedsParens()
911 static bool castOperatorNeedsParens(const Expr *FullExpr) { in castOperatorNeedsParens()
912 const Expr* Expr = FullExpr->IgnoreImpCasts(); in castOperatorNeedsParens() local
913 if (isa<ArraySubscriptExpr>(Expr) || in castOperatorNeedsParens()
914 isa<CallExpr>(Expr) || in castOperatorNeedsParens()
915 isa<DeclRefExpr>(Expr) || in castOperatorNeedsParens()
916 isa<CastExpr>(Expr) || in castOperatorNeedsParens()
917 isa<CXXNewExpr>(Expr) || in castOperatorNeedsParens()
918 isa<CXXConstructExpr>(Expr) || in castOperatorNeedsParens()
919 isa<CXXDeleteExpr>(Expr) || in castOperatorNeedsParens()
920 isa<CXXNoexceptExpr>(Expr) || in castOperatorNeedsParens()
921 isa<CXXPseudoDestructorExpr>(Expr) || in castOperatorNeedsParens()
922 isa<CXXScalarValueInitExpr>(Expr) || in castOperatorNeedsParens()
923 isa<CXXThisExpr>(Expr) || in castOperatorNeedsParens()
924 isa<CXXTypeidExpr>(Expr) || in castOperatorNeedsParens()
925 isa<CXXUnresolvedConstructExpr>(Expr) || in castOperatorNeedsParens()
926 isa<ObjCMessageExpr>(Expr) || in castOperatorNeedsParens()
927 isa<ObjCPropertyRefExpr>(Expr) || in castOperatorNeedsParens()
928 isa<ObjCProtocolExpr>(Expr) || in castOperatorNeedsParens()
929 isa<MemberExpr>(Expr) || in castOperatorNeedsParens()
930 isa<ObjCIvarRefExpr>(Expr) || in castOperatorNeedsParens()
932 isa<ParenListExpr>(Expr) || in castOperatorNeedsParens()
933 isa<SizeOfPackExpr>(Expr) || in castOperatorNeedsParens()
934 isa<UnaryOperator>(Expr)) in castOperatorNeedsParens()
940 static void objectifyExpr(const Expr *E, Commit &commit) { in objectifyExpr()
965 static bool isEnumConstant(const Expr *E) { in isEnumConstant()
978 const Expr *Arg = Msg->getArg(0); in rewriteToNumericBoxedExpression()
990 const Expr *OrigArg = Arg->IgnoreImpCasts(); in rewriteToNumericBoxedExpression()
1111 const Expr *Arg = Msg->getArg(0); in doRewriteToUTF8StringBoxedExpressionHelper()
1117 const Expr *OrigArg = Arg->IgnoreImpCasts(); in doRewriteToUTF8StringBoxedExpressionHelper()
1163 const Expr *encodingArg = Msg->getArg(1); in rewriteToStringBoxedExpression()