/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 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 …]
|
/llvm-project/clang/lib/AST/ |
H A D | NSAPI.cpp | 1 //===--- 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 D | CMakeLists.txt | 103 NSAPI.cpp
|
/llvm-project/clang/include/clang/Edit/ |
H A D | Rewriters.h | 17 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 D | SemaObjC.cpp | 1000 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 D | SemaExprObjC.cpp | 121 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 D | Sema.cpp | 271 for (unsigned I = 0; I != NSAPI::NumNSNumberLiteralMethods; ++I) in Sema() 275 ObjC().NSAPIObj.reset(new NSAPI(Context)); in Sema()
|
H A D | SemaDeclObjC.cpp | 4140 SemaRef.TUScope, NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject), in ActOnAtEnd()
|
H A D | SemaDecl.cpp | 16286 ObjC().NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject); in ImplicitlyDefineFunction()
|
/llvm-project/clang/include/clang/AST/ |
H A D | NSAPI.h | 23 class NSAPI { 25 explicit NSAPI(ASTContext &Ctx);
|
/llvm-project/clang/lib/ARCMigrate/ |
H A D | ObjCMT.cpp | 16 #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 D | BUILD.gn | 130 "NSAPI.cpp",
|
/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 18 #include "clang/AST/NSAPI.h" 591 std::unique_ptr<NSAPI> NSAPIObj; 606 ObjCMethodDecl *NSNumberLiteralMethods[NSAPI::NumNSNumberLiteralMethods];
|
/llvm-project/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 30 #include "clang/AST/NSAPI.h" 1932 NSAPI(CGM.getContext()).isObjCBOOLType(Ty);
|