Lines Matching refs:NSAPI

59                                               const NSAPI &NS, Commit &commit) {  in rewriteObjCRedundantCallWithLiteral()
70 NS.getNSClassId(NSAPI::ClassId_NSString) == II && in rewriteObjCRedundantCallWithLiteral()
71 (NS.getNSStringSelector(NSAPI::NSStr_stringWithString) == Sel || in rewriteObjCRedundantCallWithLiteral()
72 NS.getNSStringSelector(NSAPI::NSStr_initWithString) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
75 NS.getNSClassId(NSAPI::ClassId_NSArray) == II && in rewriteObjCRedundantCallWithLiteral()
76 (NS.getNSArraySelector(NSAPI::NSArr_arrayWithArray) == Sel || in rewriteObjCRedundantCallWithLiteral()
77 NS.getNSArraySelector(NSAPI::NSArr_initWithArray) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
80 NS.getNSClassId(NSAPI::ClassId_NSDictionary) == II && in rewriteObjCRedundantCallWithLiteral()
82 NSAPI::NSDict_dictionaryWithDictionary) == Sel || in rewriteObjCRedundantCallWithLiteral()
83 NS.getNSDictionarySelector(NSAPI::NSDict_initWithDictionary) == Sel))) { in rewriteObjCRedundantCallWithLiteral()
204 const NSAPI &NS, in rewriteToArraySubscriptGet()
214 const NSAPI &NS, in rewriteToDictionarySubscriptGet()
224 const NSAPI &NS, in rewriteToArraySubscriptSet()
258 const NSAPI &NS, in rewriteToDictionarySubscriptSet()
290 const NSAPI &NS, Commit &commit) { in rewriteToObjCSubscriptSyntax()
304 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_objectAtIndex)) in rewriteToObjCSubscriptSyntax()
307 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_objectForKey)) in rewriteToObjCSubscriptSyntax()
313 if (Sel == NS.getNSArraySelector(NSAPI::NSMutableArr_replaceObjectAtIndex)) in rewriteToObjCSubscriptSyntax()
316 if (Sel == NS.getNSDictionarySelector(NSAPI::NSMutableDict_setObjectForKey)) in rewriteToObjCSubscriptSyntax()
327 const NSAPI &NS, Commit &commit,
330 const NSAPI &NS, Commit &commit);
332 const NSAPI &NS, Commit &commit);
334 const NSAPI &NS, Commit &commit);
336 const NSAPI &NS, Commit &commit);
339 const NSAPI &NS, Commit &commit, in rewriteToObjCLiteralSyntax()
345 if (II == NS.getNSClassId(NSAPI::ClassId_NSArray)) in rewriteToObjCLiteralSyntax()
347 if (II == NS.getNSClassId(NSAPI::ClassId_NSDictionary)) in rewriteToObjCLiteralSyntax()
349 if (II == NS.getNSClassId(NSAPI::ClassId_NSNumber)) in rewriteToObjCLiteralSyntax()
351 if (II == NS.getNSClassId(NSAPI::ClassId_NSString)) in rewriteToObjCLiteralSyntax()
368 const NSAPI &NS);
378 const NSAPI &NS, Commit &commit, in rewriteToArrayLiteral()
390 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_array)) { in rewriteToArrayLiteral()
397 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObject)) { in rewriteToArrayLiteral()
407 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObjects) || in rewriteToArrayLiteral()
408 Sel == NS.getNSArraySelector(NSAPI::NSArr_initWithObjects)) { in rewriteToArrayLiteral()
439 static bool getNSArrayObjects(const Expr *E, const NSAPI &NS, in getNSArrayObjects()
453 if (Cls != NS.getNSClassId(NSAPI::ClassId_NSArray)) in getNSArrayObjects()
457 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_array)) in getNSArrayObjects()
460 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObject)) { in getNSArrayObjects()
467 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObjects) || in getNSArrayObjects()
468 Sel == NS.getNSArraySelector(NSAPI::NSArr_initWithObjects)) { in getNSArrayObjects()
490 const NSAPI &NS, Commit &commit) { in rewriteToDictionaryLiteral()
494 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_dictionary)) { in rewriteToDictionaryLiteral()
502 NSAPI::NSDict_dictionaryWithObjectForKey)) { in rewriteToDictionaryLiteral()
523 NSAPI::NSDict_dictionaryWithObjectsAndKeys) || in rewriteToDictionaryLiteral()
524 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsAndKeys)) { in rewriteToDictionaryLiteral()
560 NSAPI::NSDict_dictionaryWithObjectsForKeys) || in rewriteToDictionaryLiteral()
561 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsForKeys)) { in rewriteToDictionaryLiteral()
603 const NSAPI &NS) { in shouldNotRewriteImmediateMessageArgs()
611 if (II != NS.getNSClassId(NSAPI::ClassId_NSDictionary)) in shouldNotRewriteImmediateMessageArgs()
616 NSAPI::NSDict_dictionaryWithObjectsForKeys) || in shouldNotRewriteImmediateMessageArgs()
617 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsForKeys)) { in shouldNotRewriteImmediateMessageArgs()
644 const NSAPI &NS, Commit &commit) { in rewriteToCharLiteral()
647 if (NS.isNSNumberLiteralSelector(NSAPI::NSNumberWithChar, in rewriteToCharLiteral()
660 const NSAPI &NS, Commit &commit) { in rewriteToBoolLiteral()
661 if (NS.isNSNumberLiteralSelector(NSAPI::NSNumberWithBool, in rewriteToBoolLiteral()
753 const NSAPI &NS, Commit &commit) { in rewriteToNumberLiteral()
778 Optional<NSAPI::NSNumberLiteralMethodKind> in rewriteToNumberLiteral()
782 NSAPI::NSNumberLiteralMethodKind MK = *MKOpt; in rewriteToNumberLiteral()
789 case NSAPI::NSNumberWithChar: in rewriteToNumberLiteral()
790 case NSAPI::NSNumberWithUnsignedChar: in rewriteToNumberLiteral()
791 case NSAPI::NSNumberWithShort: in rewriteToNumberLiteral()
792 case NSAPI::NSNumberWithUnsignedShort: in rewriteToNumberLiteral()
793 case NSAPI::NSNumberWithBool: in rewriteToNumberLiteral()
796 case NSAPI::NSNumberWithUnsignedInt: in rewriteToNumberLiteral()
797 case NSAPI::NSNumberWithUnsignedInteger: in rewriteToNumberLiteral()
800 case NSAPI::NSNumberWithInt: in rewriteToNumberLiteral()
801 case NSAPI::NSNumberWithInteger: in rewriteToNumberLiteral()
804 case NSAPI::NSNumberWithUnsignedLong: in rewriteToNumberLiteral()
807 case NSAPI::NSNumberWithLong: in rewriteToNumberLiteral()
811 case NSAPI::NSNumberWithUnsignedLongLong: in rewriteToNumberLiteral()
814 case NSAPI::NSNumberWithLongLong: in rewriteToNumberLiteral()
818 case NSAPI::NSNumberWithDouble: in rewriteToNumberLiteral()
821 case NSAPI::NSNumberWithFloat: in rewriteToNumberLiteral()
976 const NSAPI &NS, Commit &commit) { in rewriteToNumericBoxedExpression()
986 Optional<NSAPI::NSNumberLiteralMethodKind> in rewriteToNumericBoxedExpression()
990 NSAPI::NSNumberLiteralMethodKind MK = *MKOpt; in rewriteToNumericBoxedExpression()
1009 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
1013 if ((MK == NSAPI::NSNumberWithInteger || in rewriteToNumericBoxedExpression()
1014 MK == NSAPI::NSNumberWithUnsignedInteger) && in rewriteToNumericBoxedExpression()
1018 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression()
1126 const NSAPI &NS, Commit &commit) { in doRewriteToUTF8StringBoxedExpressionHelper()
1164 const NSAPI &NS, Commit &commit) { in rewriteToStringBoxedExpression()
1167 if (Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithUTF8String) || in rewriteToStringBoxedExpression()
1168 Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithCString) || in rewriteToStringBoxedExpression()
1169 Sel == NS.getNSStringSelector(NSAPI::NSStr_initWithUTF8String)) { in rewriteToStringBoxedExpression()
1175 if (Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithCStringEncoding)) { in rewriteToStringBoxedExpression()