• Home
  • Raw
  • Download

Lines Matching refs:NSAPI

60                                               const NSAPI &NS, Commit &commit) {  in rewriteObjCRedundantCallWithLiteral()
71 NS.getNSClassId(NSAPI::ClassId_NSString) == II && in rewriteObjCRedundantCallWithLiteral()
72 (NS.getNSStringSelector(NSAPI::NSStr_stringWithString) == Sel || in rewriteObjCRedundantCallWithLiteral()
73 NS.getNSStringSelector(NSAPI::NSStr_initWithString) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
76 NS.getNSClassId(NSAPI::ClassId_NSArray) == II && in rewriteObjCRedundantCallWithLiteral()
77 (NS.getNSArraySelector(NSAPI::NSArr_arrayWithArray) == Sel || in rewriteObjCRedundantCallWithLiteral()
78 NS.getNSArraySelector(NSAPI::NSArr_initWithArray) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
81 NS.getNSClassId(NSAPI::ClassId_NSDictionary) == II && in rewriteObjCRedundantCallWithLiteral()
83 NSAPI::NSDict_dictionaryWithDictionary) == Sel || in rewriteObjCRedundantCallWithLiteral()
84 NS.getNSDictionarySelector(NSAPI::NSDict_initWithDictionary) == Sel))) { in rewriteObjCRedundantCallWithLiteral()
205 const NSAPI &NS, in rewriteToArraySubscriptGet()
215 const NSAPI &NS, in rewriteToDictionarySubscriptGet()
225 const NSAPI &NS, in rewriteToArraySubscriptSet()
259 const NSAPI &NS, in rewriteToDictionarySubscriptSet()
291 const NSAPI &NS, Commit &commit) { in rewriteToObjCSubscriptSyntax()
305 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_objectAtIndex)) in rewriteToObjCSubscriptSyntax()
308 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_objectForKey)) in rewriteToObjCSubscriptSyntax()
314 if (Sel == NS.getNSArraySelector(NSAPI::NSMutableArr_replaceObjectAtIndex)) in rewriteToObjCSubscriptSyntax()
317 if (Sel == NS.getNSDictionarySelector(NSAPI::NSMutableDict_setObjectForKey)) in rewriteToObjCSubscriptSyntax()
328 const NSAPI &NS, Commit &commit,
331 const NSAPI &NS, Commit &commit);
333 const NSAPI &NS, Commit &commit);
335 const NSAPI &NS, Commit &commit);
337 const NSAPI &NS, Commit &commit);
340 const NSAPI &NS, Commit &commit, in rewriteToObjCLiteralSyntax()
346 if (II == NS.getNSClassId(NSAPI::ClassId_NSArray)) in rewriteToObjCLiteralSyntax()
348 if (II == NS.getNSClassId(NSAPI::ClassId_NSDictionary)) in rewriteToObjCLiteralSyntax()
350 if (II == NS.getNSClassId(NSAPI::ClassId_NSNumber)) in rewriteToObjCLiteralSyntax()
352 if (II == NS.getNSClassId(NSAPI::ClassId_NSString)) in rewriteToObjCLiteralSyntax()
369 const NSAPI &NS);
379 const NSAPI &NS, Commit &commit, in rewriteToArrayLiteral()
391 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_array)) { in rewriteToArrayLiteral()
398 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObject)) { in rewriteToArrayLiteral()
408 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObjects) || in rewriteToArrayLiteral()
409 Sel == NS.getNSArraySelector(NSAPI::NSArr_initWithObjects)) { in rewriteToArrayLiteral()
440 static bool getNSArrayObjects(const Expr *E, const NSAPI &NS, in getNSArrayObjects()
454 if (Cls != NS.getNSClassId(NSAPI::ClassId_NSArray)) in getNSArrayObjects()
458 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_array)) in getNSArrayObjects()
461 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObject)) { in getNSArrayObjects()
468 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_arrayWithObjects) || in getNSArrayObjects()
469 Sel == NS.getNSArraySelector(NSAPI::NSArr_initWithObjects)) { in getNSArrayObjects()
491 const NSAPI &NS, Commit &commit) { in rewriteToDictionaryLiteral()
495 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_dictionary)) { in rewriteToDictionaryLiteral()
503 NSAPI::NSDict_dictionaryWithObjectForKey)) { in rewriteToDictionaryLiteral()
524 NSAPI::NSDict_dictionaryWithObjectsAndKeys) || in rewriteToDictionaryLiteral()
525 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsAndKeys)) { in rewriteToDictionaryLiteral()
561 NSAPI::NSDict_dictionaryWithObjectsForKeys) || in rewriteToDictionaryLiteral()
562 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsForKeys)) { in rewriteToDictionaryLiteral()
605 const NSAPI &NS) { in shouldNotRewriteImmediateMessageArgs()
613 if (II != NS.getNSClassId(NSAPI::ClassId_NSDictionary)) in shouldNotRewriteImmediateMessageArgs()
618 NSAPI::NSDict_dictionaryWithObjectsForKeys) || in shouldNotRewriteImmediateMessageArgs()
619 Sel == NS.getNSDictionarySelector(NSAPI::NSDict_initWithObjectsForKeys)) { in shouldNotRewriteImmediateMessageArgs()
646 const NSAPI &NS, Commit &commit) { in rewriteToCharLiteral()
649 if (NS.isNSNumberLiteralSelector(NSAPI::NSNumberWithChar, in rewriteToCharLiteral()
662 const NSAPI &NS, Commit &commit) { in rewriteToBoolLiteral()
663 if (NS.isNSNumberLiteralSelector(NSAPI::NSNumberWithBool, in rewriteToBoolLiteral()
755 const NSAPI &NS, Commit &commit) { in rewriteToNumberLiteral()
780 Optional<NSAPI::NSNumberLiteralMethodKind> in rewriteToNumberLiteral()
784 NSAPI::NSNumberLiteralMethodKind MK = *MKOpt; in rewriteToNumberLiteral()
791 case NSAPI::NSNumberWithChar: in rewriteToNumberLiteral()
792 case NSAPI::NSNumberWithUnsignedChar: in rewriteToNumberLiteral()
793 case NSAPI::NSNumberWithShort: in rewriteToNumberLiteral()
794 case NSAPI::NSNumberWithUnsignedShort: in rewriteToNumberLiteral()
795 case NSAPI::NSNumberWithBool: in rewriteToNumberLiteral()
798 case NSAPI::NSNumberWithUnsignedInt: in rewriteToNumberLiteral()
799 case NSAPI::NSNumberWithUnsignedInteger: in rewriteToNumberLiteral()
801 case NSAPI::NSNumberWithInt: in rewriteToNumberLiteral()
802 case NSAPI::NSNumberWithInteger: in rewriteToNumberLiteral()
805 case NSAPI::NSNumberWithUnsignedLong: in rewriteToNumberLiteral()
807 case NSAPI::NSNumberWithLong: in rewriteToNumberLiteral()
811 case NSAPI::NSNumberWithUnsignedLongLong: in rewriteToNumberLiteral()
813 case NSAPI::NSNumberWithLongLong: in rewriteToNumberLiteral()
817 case NSAPI::NSNumberWithDouble: in rewriteToNumberLiteral()
819 case NSAPI::NSNumberWithFloat: in rewriteToNumberLiteral()
974 const NSAPI &NS, Commit &commit) { in rewriteToNumericBoxedExpression()
984 Optional<NSAPI::NSNumberLiteralMethodKind> in rewriteToNumericBoxedExpression()
988 NSAPI::NSNumberLiteralMethodKind MK = *MKOpt; in rewriteToNumericBoxedExpression()
1007 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
1011 if ((MK == NSAPI::NSNumberWithInteger || in rewriteToNumericBoxedExpression()
1012 MK == NSAPI::NSNumberWithUnsignedInteger) && in rewriteToNumericBoxedExpression()
1016 if ((MK==NSAPI::NSNumberWithInteger) == OrigTy->isSignedIntegerType() && in rewriteToNumericBoxedExpression()
1113 const NSAPI &NS, Commit &commit) { in doRewriteToUTF8StringBoxedExpressionHelper()
1151 const NSAPI &NS, Commit &commit) { in rewriteToStringBoxedExpression()
1154 if (Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithUTF8String) || in rewriteToStringBoxedExpression()
1155 Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithCString) || in rewriteToStringBoxedExpression()
1156 Sel == NS.getNSStringSelector(NSAPI::NSStr_initWithUTF8String)) { in rewriteToStringBoxedExpression()
1162 if (Sel == NS.getNSStringSelector(NSAPI::NSStr_stringWithCStringEncoding)) { in rewriteToStringBoxedExpression()