Home
last modified time | relevance | path

Searched refs:NSAPI (Results 1 – 14 of 14) sorted by relevance

/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp60 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 …]
/llvm-project/clang/lib/AST/
H A DNSAPI.cpp1 //===--- NSAPI.cpp - NSFoundation APIs ------------------------------------===//
9 #include "clang/AST/NSAPI.h"
18 NSAPI::NSAPI(ASTContext &ctx) in NSAPI() function in NSAPI
23 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
[all...]
H A DCMakeLists.txt103 NSAPI.cpp
/llvm-project/clang/include/clang/Edit/
H A DRewriters.h17 class NSAPI; variable
26 const NSAPI &NS, Commit &commit);
29 const NSAPI &NS, Commit &commit,
33 const NSAPI &NS, Commit &commit);
/llvm-project/clang/lib/Sema/
H A DSemaObjC.cpp1000 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableArray); in GetNSMutableArrayArgumentIndex()
1007 std::optional<NSAPI::NSArrayMethodKind> MKOpt = in GetNSMutableArrayArgumentIndex()
1013 NSAPI::NSArrayMethodKind MK = *MKOpt; in GetNSMutableArrayArgumentIndex()
1016 case NSAPI::NSMutableArr_addObject: in GetNSMutableArrayArgumentIndex()
1017 case NSAPI::NSMutableArr_insertObjectAtIndex: in GetNSMutableArrayArgumentIndex()
1018 case NSAPI::NSMutableArr_setObjectAtIndexedSubscript: in GetNSMutableArrayArgumentIndex()
1020 case NSAPI::NSMutableArr_replaceObjectAtIndex: in GetNSMutableArrayArgumentIndex()
1033 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableDictionary); in GetNSMutableDictionaryArgumentIndex()
1040 std::optional<NSAPI::NSDictionaryMethodKind> MKOpt = in GetNSMutableDictionaryArgumentIndex()
1046 NSAPI in GetNSMutableDictionaryArgumentIndex()
[all...]
H A DSemaExprObjC.cpp121 IdentifierInfo *NSIdent = NSAPIObj->getNSClassId(NSAPI::ClassId_NSString); in BuildObjCStringLiteral()
175 static NSAPI::NSClassIdKindKind
179 return NSAPI::ClassId_NSArray; in ClassKindFromLiteralKind()
181 return NSAPI::ClassId_NSDictionary; in ClassKindFromLiteralKind()
183 return NSAPI::ClassId_NSNumber; in ClassKindFromLiteralKind()
185 return NSAPI::ClassId_NSString; in ClassKindFromLiteralKind()
187 return NSAPI::ClassId_NSValue; in ClassKindFromLiteralKind()
206 NSAPI::NSClassIdKindKind Kind = ClassKindFromLiteralKind(LiteralKind); in ValidateObjCLiteralInterfaceDecl()
227 NSAPI::NSClassIdKindKind ClassKind = ClassKindFromLiteralKind(LiteralKind); in LookupObjCInterfaceDeclForLiteral()
252 std::optional<NSAPI in getNSNumberFactoryMethod()
2464 applyCocoaAPICheck(Sema & S,const ObjCMessageExpr * Msg,unsigned DiagID,bool (* refactor)(const ObjCMessageExpr *,const NSAPI &,edit::Commit &)) applyCocoaAPICheck() argument
[all...]
H A DSema.cpp271 for (unsigned I = 0; I != NSAPI::NumNSNumberLiteralMethods; ++I) in Sema()
275 ObjC().NSAPIObj.reset(new NSAPI(Context)); in Sema()
H A DSemaDeclObjC.cpp4140 SemaRef.TUScope, NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject), in ActOnAtEnd()
H A DSemaDecl.cpp16286 ObjC().NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject); in ImplicitlyDefineFunction()
/llvm-project/clang/include/clang/AST/
H A DNSAPI.h23 class NSAPI {
25 explicit NSAPI(ASTContext &Ctx);
/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp16 #include "clang/AST/NSAPI.h"
98 std::unique_ptr<NSAPI> NSAPIObj;
132 NSAPIObj.reset(new NSAPI(Context)); in Initialize()
234 const NSAPI &NS, edit::Commit &commit, in rewriteToPropertyDotSyntax()
455 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty()
662 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl()
705 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl()
760 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl()
/llvm-project/llvm/utils/gn/secondary/clang/lib/AST/
H A DBUILD.gn130 "NSAPI.cpp",
/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h18 #include "clang/AST/NSAPI.h"
591 std::unique_ptr<NSAPI> NSAPIObj;
606 ObjCMethodDecl *NSNumberLiteralMethods[NSAPI::NumNSNumberLiteralMethods];
/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp30 #include "clang/AST/NSAPI.h"
1932 NSAPI(CGM.getContext()).isObjCBOOLType(Ty);