Home
last modified time | relevance | path

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

/freebsd/contrib/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 …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DNSAPI.cpp18 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::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 …]
/freebsd/contrib/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);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjC.cpp999 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableArray); in GetNSMutableArrayArgumentIndex()
1006 std::optional<NSAPI::NSArrayMethodKind> MKOpt = in GetNSMutableArrayArgumentIndex()
1012 NSAPI::NSArrayMethodKind MK = *MKOpt; in GetNSMutableArrayArgumentIndex()
1015 case NSAPI::NSMutableArr_addObject: in GetNSMutableArrayArgumentIndex()
1016 case NSAPI::NSMutableArr_insertObjectAtIndex: in GetNSMutableArrayArgumentIndex()
1017 case NSAPI::NSMutableArr_setObjectAtIndexedSubscript: in GetNSMutableArrayArgumentIndex()
1019 case NSAPI::NSMutableArr_replaceObjectAtIndex: in GetNSMutableArrayArgumentIndex()
1032 Message->getReceiverInterface(), NSAPI::ClassId_NSMutableDictionary); in GetNSMutableDictionaryArgumentIndex()
1039 std::optional<NSAPI::NSDictionaryMethodKind> MKOpt = in GetNSMutableDictionaryArgumentIndex()
1045 NSAPI::NSDictionaryMethodKind MK = *MKOpt; in GetNSMutableDictionaryArgumentIndex()
[all …]
H A DSemaExprObjC.cpp122 IdentifierInfo *NSIdent = NSAPIObj->getNSClassId(NSAPI::ClassId_NSString); in BuildObjCStringLiteral()
176 static NSAPI::NSClassIdKindKind
180 return NSAPI::ClassId_NSArray; in ClassKindFromLiteralKind()
182 return NSAPI::ClassId_NSDictionary; in ClassKindFromLiteralKind()
184 return NSAPI::ClassId_NSNumber; in ClassKindFromLiteralKind()
186 return NSAPI::ClassId_NSString; in ClassKindFromLiteralKind()
188 return NSAPI::ClassId_NSValue; in ClassKindFromLiteralKind()
207 NSAPI::NSClassIdKindKind Kind = ClassKindFromLiteralKind(LiteralKind); in ValidateObjCLiteralInterfaceDecl()
228 NSAPI::NSClassIdKindKind ClassKind = ClassKindFromLiteralKind(LiteralKind); in LookupObjCInterfaceDeclForLiteral()
253 std::optional<NSAPI::NSNumberLiteralMethodKind> Kind = in getNSNumberFactoryMethod()
[all …]
H A DSema.cpp272 for (unsigned I = 0; I != NSAPI::NumNSNumberLiteralMethods; ++I) in Sema()
276 ObjC().NSAPIObj.reset(new NSAPI(Context)); in Sema()
H A DSemaDeclObjC.cpp4147 SemaRef.TUScope, NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject), in ActOnAtEnd()
H A DSemaDecl.cpp16089 ObjC().NSAPIObj->getNSClassId(NSAPI::ClassId_NSObject); in ActOnFinishFunctionBody()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DNSAPI.h23 class NSAPI {
25 explicit NSAPI(ASTContext &Ctx);
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp97 std::unique_ptr<NSAPI> NSAPIObj;
131 NSAPIObj.reset(new NSAPI(Context)); in Initialize()
233 const NSAPI &NS, edit::Commit &commit, in rewriteToPropertyDotSyntax()
454 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty()
661 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl()
704 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl()
759 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaObjC.h599 std::unique_ptr<NSAPI> NSAPIObj;
614 ObjCMethodDecl *NSNumberLiteralMethods[NSAPI::NumNSNumberLiteralMethods];
/freebsd/lib/clang/libclang/
H A DMakefile124 SRCS_MIN+= AST/NSAPI.cpp
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp1898 NSAPI(CGM.getContext()).isObjCBOOLType(Ty); in EmitScalarRangeCheck()