Searched refs:NSAPI (Results 1 – 12 of 12) sorted by relevance
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()[all …]
18 NSAPI::NSAPI(ASTContext &ctx) in NSAPI() function in NSAPI23 IdentifierInfo *NSAPI::getNSClassId(NSClassIdKindKind K) const { in getNSClassId()43 Selector NSAPI::getNSStringSelector(NSStringMethodKind MK) const { in getNSStringSelector()77 Selector NSAPI::getNSArraySelector(NSArrayMethodKind MK) const { in getNSArraySelector()137 std::optional<NSAPI::NSArrayMethodKind>138 NSAPI::getNSArrayMethodKind(Selector Sel) { in getNSArrayMethodKind()148 Selector NSAPI::getNSDictionarySelector( in getNSDictionarySelector()225 std::optional<NSAPI::NSDictionaryMethodKind>226 NSAPI::getNSDictionaryMethodKind(Selector Sel) { in getNSDictionaryMethodKind()236 Selector NSAPI::getNSSetSelector(NSSetMethodKind MK) const { in getNSSetSelector()[all …]
17 class NSAPI; variable26 const NSAPI &NS, Commit &commit);29 const NSAPI &NS, Commit &commit,33 const NSAPI &NS, Commit &commit);
995 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableArray); in GetNSMutableArrayArgumentIndex()1002 std::optional<NSAPI::NSArrayMethodKind> MKOpt = in GetNSMutableArrayArgumentIndex()1008 NSAPI::NSArrayMethodKind MK = *MKOpt; in GetNSMutableArrayArgumentIndex()1011 case NSAPI::NSMutableArr_addObject: in GetNSMutableArrayArgumentIndex()1012 case NSAPI::NSMutableArr_insertObjectAtIndex: in GetNSMutableArrayArgumentIndex()1013 case NSAPI::NSMutableArr_setObjectAtIndexedSubscript: in GetNSMutableArrayArgumentIndex()1015 case NSAPI::NSMutableArr_replaceObjectAtIndex: in GetNSMutableArrayArgumentIndex()1028 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableDictionary); in GetNSMutableDictionaryArgumentIndex()1035 std::optional<NSAPI::NSDictionaryMethodKind> MKOpt = in GetNSMutableDictionaryArgumentIndex()1041 NSAPI::NSDictionaryMethodKind MK = *MKOpt; in GetNSMutableDictionaryArgumentIndex()[all …]
120 IdentifierInfo *NSIdent = NSAPIObj->getNSClassId(NSAPI::ClassId_NSString); in BuildObjCStringLiteral()174 static NSAPI::NSClassIdKindKind178 return NSAPI::ClassId_NSArray; in ClassKindFromLiteralKind()180 return NSAPI::ClassId_NSDictionary; in ClassKindFromLiteralKind()182 return NSAPI::ClassId_NSNumber; in ClassKindFromLiteralKind()184 return NSAPI::ClassId_NSString; in ClassKindFromLiteralKind()186 return NSAPI::ClassId_NSValue; in ClassKindFromLiteralKind()205 NSAPI::NSClassIdKindKind Kind = ClassKindFromLiteralKind(LiteralKind); in ValidateObjCLiteralInterfaceDecl()226 NSAPI::NSClassIdKindKind ClassKind = ClassKindFromLiteralKind(LiteralKind); in LookupObjCInterfaceDeclForLiteral()251 std::optional<NSAPI::NSNumberLiteralMethodKind> Kind = in getNSNumberFactoryMethod()[all …]
333 for (unsigned I = 0; I != NSAPI::NumNSNumberLiteralMethods; ++I) in Sema()337 ObjC().NSAPIObj.reset(new NSAPI(Context)); in Sema()
4149 SemaRef.TUScope, NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject), in ActOnAtEnd()
16568 ObjC().NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject); in ActOnFinishFunctionBody()
23 class NSAPI {25 explicit NSAPI(ASTContext &Ctx);
591 std::unique_ptr<NSAPI> NSAPIObj;606 ObjCMethodDecl *NSNumberLiteralMethods[NSAPI::NumNSNumberLiteralMethods];
127 SRCS_MIN+= AST/NSAPI.cpp
1961 NSAPI(CGM.getContext()).isObjCBOOLType(Ty); in EmitScalarRangeCheck()