clang 8.0.0

NSAPI.h
Go to the documentation of this file.
1 //===--- NSAPI.h - NSFoundation APIs ----------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_AST_NSAPI_H
11 #define LLVM_CLANG_AST_NSAPI_H
12
13 #include "clang/Basic/IdentifierTable.h"
14 #include "llvm/ADT/ArrayRef.h"
15 #include "llvm/ADT/Optional.h"
16
17 namespace clang {
18 class ASTContext;
19 class ObjCInterfaceDecl;
20 class QualType;
21 class Expr;
22
23 // Provides info and caches identifiers/selectors for NSFoundation API.
24 class NSAPI {
25 public:
26 explicit NSAPI(ASTContext &Ctx);
27
28 ASTContext &getASTContext() const { return Ctx; }
29
30 enum NSClassIdKindKind {
31 ClassId_NSObject,
32 ClassId_NSString,
33 ClassId_NSArray,
34 ClassId_NSMutableArray,
35 ClassId_NSDictionary,
36 ClassId_NSMutableDictionary,
37 ClassId_NSNumber,
38 ClassId_NSMutableSet,
39 ClassId_NSMutableOrderedSet,
40 ClassId_NSValue
41 };
42 static const unsigned NumClassIds = 10;
43
44 enum NSStringMethodKind {
45 NSStr_stringWithString,
46 NSStr_stringWithUTF8String,
47 NSStr_stringWithCStringEncoding,
48 NSStr_stringWithCString,
49 NSStr_initWithString,
50 NSStr_initWithUTF8String
51 };
52 static const unsigned NumNSStringMethods = 6;
53
54 IdentifierInfo *getNSClassId(NSClassIdKindKind K) const;
55
56 /// The Objective-C NSString selectors.
57 Selector getNSStringSelector(NSStringMethodKind MK) const;
58
59 /// Return NSStringMethodKind if \param Sel is such a selector.
60 Optional<NSStringMethodKind> getNSStringMethodKind(Selector Sel) const;
61
62 /// Returns true if the expression \param E is a reference of
63 /// "NSUTF8StringEncoding" enum constant.
64 bool isNSUTF8StringEncodingConstant(const Expr *E) const {
65 return isObjCEnumerator(E, "NSUTF8StringEncoding", NSUTF8StringEncodingId);
66 }
67
68 /// Returns true if the expression \param E is a reference of
69 /// "NSASCIIStringEncoding" enum constant.
70 bool isNSASCIIStringEncodingConstant(const Expr *E) const {
71 return isObjCEnumerator(E, "NSASCIIStringEncoding",NSASCIIStringEncodingId);
72 }
73
74 /// Enumerates the NSArray/NSMutableArray methods used to generate
75 /// literals and to apply some checks.
76 enum NSArrayMethodKind {
77 NSArr_array,
78 NSArr_arrayWithArray,
79 NSArr_arrayWithObject,
80 NSArr_arrayWithObjects,
81 NSArr_arrayWithObjectsCount,
82 NSArr_initWithArray,
83 NSArr_initWithObjects,
84 NSArr_objectAtIndex,
85 NSMutableArr_replaceObjectAtIndex,
86 NSMutableArr_addObject,
87 NSMutableArr_insertObjectAtIndex,
88 NSMutableArr_setObjectAtIndexedSubscript
89 };
90 static const unsigned NumNSArrayMethods = 12;
91
92 /// The Objective-C NSArray selectors.
93 Selector getNSArraySelector(NSArrayMethodKind MK) const;
94
95 /// Return NSArrayMethodKind if \p Sel is such a selector.
96 Optional<NSArrayMethodKind> getNSArrayMethodKind(Selector Sel);
97
98 /// Enumerates the NSDictionary/NSMutableDictionary methods used
99 /// to generate literals and to apply some checks.
100 enum NSDictionaryMethodKind {
101 NSDict_dictionary,
102 NSDict_dictionaryWithDictionary,
103 NSDict_dictionaryWithObjectForKey,
104 NSDict_dictionaryWithObjectsForKeys,
105 NSDict_dictionaryWithObjectsForKeysCount,
106 NSDict_dictionaryWithObjectsAndKeys,
107 NSDict_initWithDictionary,
108 NSDict_initWithObjectsAndKeys,
109 NSDict_initWithObjectsForKeys,
110 NSDict_objectForKey,
111 NSMutableDict_setObjectForKey,
112 NSMutableDict_setObjectForKeyedSubscript,
113 NSMutableDict_setValueForKey
114 };
115 static const unsigned NumNSDictionaryMethods = 13;
116
117 /// The Objective-C NSDictionary selectors.
118 Selector getNSDictionarySelector(NSDictionaryMethodKind MK) const;
119
120 /// Return NSDictionaryMethodKind if \p Sel is such a selector.
121 Optional<NSDictionaryMethodKind> getNSDictionaryMethodKind(Selector Sel);
122
123 /// Enumerates the NSMutableSet/NSOrderedSet methods used
124 /// to apply some checks.
125 enum NSSetMethodKind {
126 NSMutableSet_addObject,
127 NSOrderedSet_insertObjectAtIndex,
128 NSOrderedSet_setObjectAtIndex,
129 NSOrderedSet_setObjectAtIndexedSubscript,
130 NSOrderedSet_replaceObjectAtIndexWithObject
131 };
132 static const unsigned NumNSSetMethods = 5;
133
134 /// The Objective-C NSSet selectors.
135 Selector getNSSetSelector(NSSetMethodKind MK) const;
136
137 /// Return NSSetMethodKind if \p Sel is such a selector.
138 Optional<NSSetMethodKind> getNSSetMethodKind(Selector Sel);
139
140 /// Returns selector for "objectForKeyedSubscript:".
141 Selector getObjectForKeyedSubscriptSelector() const {
142 return getOrInitSelector(StringRef("objectForKeyedSubscript"),
143 objectForKeyedSubscriptSel);
144 }
145
146 /// Returns selector for "objectAtIndexedSubscript:".
147 Selector getObjectAtIndexedSubscriptSelector() const {
148 return getOrInitSelector(StringRef("objectAtIndexedSubscript"),
149 objectAtIndexedSubscriptSel);
150 }
151
152 /// Returns selector for "setObject:forKeyedSubscript".
153 Selector getSetObjectForKeyedSubscriptSelector() const {
154 StringRef Ids[] = { "setObject", "forKeyedSubscript" };
155 return getOrInitSelector(Ids, setObjectForKeyedSubscriptSel);
156 }
157
158 /// Returns selector for "setObject:atIndexedSubscript".
159 Selector getSetObjectAtIndexedSubscriptSelector() const {
160 StringRef Ids[] = { "setObject", "atIndexedSubscript" };
161 return getOrInitSelector(Ids, setObjectAtIndexedSubscriptSel);
162 }
163
164 /// Returns selector for "isEqual:".
165 Selector getIsEqualSelector() const {
166 return getOrInitSelector(StringRef("isEqual"), isEqualSel);
167 }
168
169 Selector getNewSelector() const {
170 return getOrInitNullarySelector("new", NewSel);
171 }
172
173 Selector getInitSelector() const {
174 return getOrInitNullarySelector("init", InitSel);
175 }
176
177 /// Enumerates the NSNumber methods used to generate literals.
178 enum NSNumberLiteralMethodKind {
179 NSNumberWithChar,
180 NSNumberWithUnsignedChar,
181 NSNumberWithShort,
182 NSNumberWithUnsignedShort,
183 NSNumberWithInt,
184 NSNumberWithUnsignedInt,
185 NSNumberWithLong,
186 NSNumberWithUnsignedLong,
187 NSNumberWithLongLong,
188 NSNumberWithUnsignedLongLong,
189 NSNumberWithFloat,
190 NSNumberWithDouble,
191 NSNumberWithBool,
192 NSNumberWithInteger,
193 NSNumberWithUnsignedInteger
194 };
195 static const unsigned NumNSNumberLiteralMethods = 15;
196
197 /// The Objective-C NSNumber selectors used to create NSNumber literals.
198 /// \param Instance if true it will return the selector for the init* method
199 /// otherwise it will return the selector for the number* method.
200 Selector getNSNumberLiteralSelector(NSNumberLiteralMethodKind MK,
201 bool Instance) const;
202
203 bool isNSNumberLiteralSelector(NSNumberLiteralMethodKind MK,
204 Selector Sel) const {
205 return Sel == getNSNumberLiteralSelector(MK, false) ||
206 Sel == getNSNumberLiteralSelector(MK, true);
207 }
208
209 /// Return NSNumberLiteralMethodKind if \p Sel is such a selector.
210 Optional<NSNumberLiteralMethodKind>
211 getNSNumberLiteralMethodKind(Selector Sel) const;
212
213 /// Determine the appropriate NSNumber factory method kind for a
214 /// literal of the given type.
215 Optional<NSNumberLiteralMethodKind>
216 getNSNumberFactoryMethodKind(QualType T) const;
217
218 /// Returns true if \param T is a typedef of "BOOL" in objective-c.
219 bool isObjCBOOLType(QualType T) const;
220 /// Returns true if \param T is a typedef of "NSInteger" in objective-c.
221 bool isObjCNSIntegerType(QualType T) const;
222 /// Returns true if \param T is a typedef of "NSUInteger" in objective-c.
223 bool isObjCNSUIntegerType(QualType T) const;
224 /// Returns one of NSIntegral typedef names if \param T is a typedef
225 /// of that name in objective-c.
226 StringRef GetNSIntegralKind(QualType T) const;
227
228 /// Returns \c true if \p Id is currently defined as a macro.
229 bool isMacroDefined(StringRef Id) const;
230
231 /// Returns \c true if \p InterfaceDecl is subclass of \p NSClassKind
232 bool isSubclassOfNSClass(ObjCInterfaceDecl *InterfaceDecl,
233 NSClassIdKindKind NSClassKind) const;
234
235 private:
236 bool isObjCTypedef(QualType T, StringRef name, IdentifierInfo *&II) const;
237 bool isObjCEnumerator(const Expr *E,
238 StringRef name, IdentifierInfo *&II) const;
239 Selector getOrInitSelector(ArrayRef<StringRef> Ids, Selector &Sel) const;
240 Selector getOrInitNullarySelector(StringRef Id, Selector &Sel) const;
241
242 ASTContext &Ctx;
243
244 mutable IdentifierInfo *ClassIds[NumClassIds];
245
246 mutable Selector NSStringSelectors[NumNSStringMethods];
247
248 /// The selectors for Objective-C NSArray methods.
249 mutable Selector NSArraySelectors[NumNSArrayMethods];
250
251 /// The selectors for Objective-C NSDictionary methods.
252 mutable Selector NSDictionarySelectors[NumNSDictionaryMethods];
253
254 /// The selectors for Objective-C NSSet methods.
255 mutable Selector NSSetSelectors[NumNSSetMethods];
256
257 /// The Objective-C NSNumber selectors used to create NSNumber literals.
258 mutable Selector NSNumberClassSelectors[NumNSNumberLiteralMethods];
259 mutable Selector NSNumberInstanceSelectors[NumNSNumberLiteralMethods];
260
261 mutable Selector objectForKeyedSubscriptSel, objectAtIndexedSubscriptSel,
262 setObjectForKeyedSubscriptSel,setObjectAtIndexedSubscriptSel,
263 isEqualSel, InitSel, NewSel;
264
265 mutable IdentifierInfo *BOOLId, *NSIntegerId, *NSUIntegerId;
266 mutable IdentifierInfo *NSASCIIStringEncodingId, *NSUTF8StringEncodingId;
267 };
268
269 } // end namespace clang
270
271 #endif // LLVM_CLANG_AST_NSAPI_H
clang::NSAPI::getObjectAtIndexedSubscriptSelector
Selector getObjectAtIndexedSubscriptSelector() const
Returns selector for "objectAtIndexedSubscript:".
Definition: NSAPI.h:147
clang::NSAPI::getNSNumberFactoryMethodKind
Optional< NSNumberLiteralMethodKind > getNSNumberFactoryMethodKind(QualType T) const
Determine the appropriate NSNumber factory method kind for a literal of the given type...
Definition: NSAPI.cpp:390
clang::Selector
Smart pointer class that efficiently represents Objective-C method names.
Definition: IdentifierTable.h:673
clang::QualType
A (possibly-)qualified type.
Definition: Type.h:638
clang::NSAPI::NSStr_stringWithCStringEncoding
Definition: NSAPI.h:47
clang::NSAPI::NSNumberWithUnsignedLongLong
Definition: NSAPI.h:188
clang::NSAPI::getNewSelector
Selector getNewSelector() const
Definition: NSAPI.h:169
clang::NSAPI::getNSDictionaryMethodKind
Optional< NSDictionaryMethodKind > getNSDictionaryMethodKind(Selector Sel)
Return NSDictionaryMethodKind if Sel is such a selector.
Definition: NSAPI.cpp:259
clang::NSAPI::NSNumberLiteralMethodKind
NSNumberLiteralMethodKind
Enumerates the NSNumber methods used to generate literals.
Definition: NSAPI.h:178
clang::NSAPI::NSArr_array
Definition: NSAPI.h:77
clang::NSAPI::getIsEqualSelector
Selector getIsEqualSelector() const
Returns selector for "isEqual:".
Definition: NSAPI.h:165
clang::NSAPI::NSDictionaryMethodKind
NSDictionaryMethodKind
Enumerates the NSDictionary/NSMutableDictionary methods used to generate literals and to apply some c...
Definition: NSAPI.h:100
clang::NSAPI::NSDict_objectForKey
Definition: NSAPI.h:110
clang::NSAPI::NSStr_stringWithCString
Definition: NSAPI.h:48
clang::NSAPI::NSArr_objectAtIndex
Definition: NSAPI.h:84
clang::NSAPI::NSOrderedSet_setObjectAtIndexedSubscript
Definition: NSAPI.h:129
clang::NSAPI::NSNumberWithDouble
Definition: NSAPI.h:190
clang::NSAPI::NSDict_dictionary
Definition: NSAPI.h:101
clang::NSAPI::NSDict_initWithObjectsAndKeys
Definition: NSAPI.h:108
clang::NSAPI::NSNumberWithUnsignedInteger
Definition: NSAPI.h:193
clang::NSAPI::NSStr_initWithUTF8String
Definition: NSAPI.h:50
clang::IdentifierInfo
One of these records is kept for each identifier that is lexed.
Definition: IdentifierTable.h:58
clang::NSAPI::getSetObjectForKeyedSubscriptSelector
Selector getSetObjectForKeyedSubscriptSelector() const
Returns selector for "setObject:forKeyedSubscript".
Definition: NSAPI.h:153
clang::NSAPI::ClassId_NSNumber
Definition: NSAPI.h:37
clang::NSAPI::NSStr_initWithString
Definition: NSAPI.h:49
clang::NSAPI::getNSSetMethodKind
Optional< NSSetMethodKind > getNSSetMethodKind(Selector Sel)
Return NSSetMethodKind if Sel is such a selector.
Definition: NSAPI.cpp:316
clang::ASTContext
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition: ASTContext.h:155
llvm::Optional
Definition: LLVM.h:38
clang::NSAPI::NSNumberWithLongLong
Definition: NSAPI.h:187
clang::NSAPI::ClassId_NSMutableArray
Definition: NSAPI.h:34
clang::NSAPI::NSDict_dictionaryWithObjectForKey
Definition: NSAPI.h:103
clang::NSAPI::NSArr_initWithObjects
Definition: NSAPI.h:83
clang::NSAPI::NSOrderedSet_replaceObjectAtIndexWithObject
Definition: NSAPI.h:130
clang::NSAPI::NSOrderedSet_insertObjectAtIndex
Definition: NSAPI.h:127
clang::NSAPI::getNSStringSelector
Selector getNSStringSelector(NSStringMethodKind MK) const
The Objective-C NSString selectors.
Definition: NSAPI.cpp:43
clang::NSAPI::getNSNumberLiteralSelector
Selector getNSNumberLiteralSelector(NSNumberLiteralMethodKind MK, bool Instance) const
The Objective-C NSNumber selectors used to create NSNumber literals.
Definition: NSAPI.cpp:326
clang::NSAPI::NSNumberWithShort
Definition: NSAPI.h:181
clang::NSAPI::getNSNumberLiteralMethodKind
Optional< NSNumberLiteralMethodKind > getNSNumberLiteralMethodKind(Selector Sel) const
Return NSNumberLiteralMethodKind if Sel is such a selector.
Definition: NSAPI.cpp:379
clang::NSAPI::NSMutableDict_setObjectForKey
Definition: NSAPI.h:111
clang::NSAPI::NSStr_stringWithString
Definition: NSAPI.h:45
clang::NSAPI::NumClassIds
static const unsigned NumClassIds
Definition: NSAPI.h:42
clang::NSAPI::NSNumberWithUnsignedShort
Definition: NSAPI.h:182
clang::NSAPI::NumNSNumberLiteralMethods
static const unsigned NumNSNumberLiteralMethods
Definition: NSAPI.h:195
clang::NSAPI::NSSetMethodKind
NSSetMethodKind
Enumerates the NSMutableSet/NSOrderedSet methods used to apply some checks.
Definition: NSAPI.h:125
clang::NSAPI::NSAPI
NSAPI(ASTContext &Ctx)
Definition: NSAPI.cpp:18
clang::NSAPI::ClassId_NSString
Definition: NSAPI.h:32
clang::NSAPI::NSNumberWithFloat
Definition: NSAPI.h:189
clang::ObjCInterfaceDecl
Represents an ObjC class declaration.
Definition: DeclObjC.h:1172
llvm::ArrayRef
Definition: LLVM.h:32
clang::NSAPI::NSNumberWithUnsignedInt
Definition: NSAPI.h:184
clang::NSAPI::ClassId_NSValue
Definition: NSAPI.h:40
clang::NSAPI::NSMutableArr_addObject
Definition: NSAPI.h:86
clang::NSAPI
Definition: NSAPI.h:24
clang::NSAPI::NumNSSetMethods
static const unsigned NumNSSetMethods
Definition: NSAPI.h:132
clang::NSAPI::NSClassIdKindKind
NSClassIdKindKind
Definition: NSAPI.h:30
clang::NSAPI::ClassId_NSDictionary
Definition: NSAPI.h:35
clang::NSAPI::NSArrayMethodKind
NSArrayMethodKind
Enumerates the NSArray/NSMutableArray methods used to generate literals and to apply some checks...
Definition: NSAPI.h:76
clang::NSAPI::NSMutableArr_replaceObjectAtIndex
Definition: NSAPI.h:85
clang::Expr
This represents one expression.
Definition: Expr.h:106
clang::NSAPI::ClassId_NSObject
Definition: NSAPI.h:31
clang::NSAPI::getNSArraySelector
Selector getNSArraySelector(NSArrayMethodKind MK) const
The Objective-C NSArray selectors.
Definition: NSAPI.cpp:90
Id
int Id
Definition: ASTDiff.cpp:191
clang::NSAPI::getASTContext
ASTContext & getASTContext() const
Definition: NSAPI.h:28
clang::NSAPI::NSDict_initWithObjectsForKeys
Definition: NSAPI.h:109
IdentifierTable.h
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
clang::NSAPI::GetNSIntegralKind
StringRef GetNSIntegralKind(QualType T) const
Returns one of NSIntegral typedef names if.
Definition: NSAPI.cpp:514
clang::NSAPI::isNSUTF8StringEncodingConstant
bool isNSUTF8StringEncodingConstant(const Expr *E) const
Returns true if the expression.
Definition: NSAPI.h:64
clang::NSAPI::NSDict_dictionaryWithDictionary
Definition: NSAPI.h:102
clang::NSAPI::NSArr_arrayWithArray
Definition: NSAPI.h:78
clang::NSAPI::NSArr_initWithArray
Definition: NSAPI.h:82
clang::NSAPI::NSDict_dictionaryWithObjectsAndKeys
Definition: NSAPI.h:106
clang::NSAPI::NSDict_dictionaryWithObjectsForKeysCount
Definition: NSAPI.h:105
clang::NSAPI::isObjCBOOLType
bool isObjCBOOLType(QualType T) const
Returns true if.
Definition: NSAPI.cpp:502
clang::NSAPI::NSNumberWithLong
Definition: NSAPI.h:185
clang::NSAPI::isObjCNSUIntegerType
bool isObjCNSUIntegerType(QualType T) const
Returns true if.
Definition: NSAPI.cpp:510
clang::NSAPI::NSNumberWithUnsignedLong
Definition: NSAPI.h:186
clang::NSAPI::ClassId_NSMutableSet
Definition: NSAPI.h:38
clang::NSAPI::NSNumberWithUnsignedChar
Definition: NSAPI.h:180
clang::NSAPI::NSDict_initWithDictionary
Definition: NSAPI.h:107
clang::NSAPI::getNSSetSelector
Selector getNSSetSelector(NSSetMethodKind MK) const
The Objective-C NSSet selectors.
Definition: NSAPI.cpp:269
clang::NSAPI::isObjCNSIntegerType
bool isObjCNSIntegerType(QualType T) const
Returns true if.
Definition: NSAPI.cpp:506
clang::NSAPI::isSubclassOfNSClass
bool isSubclassOfNSClass(ObjCInterfaceDecl *InterfaceDecl, NSClassIdKindKind NSClassKind) const
Returns true if InterfaceDecl is subclass of NSClassKind.
Definition: NSAPI.cpp:545
clang::NSAPI::NSStr_stringWithUTF8String
Definition: NSAPI.h:46
clang::NSAPI::NSDict_dictionaryWithObjectsForKeys
Definition: NSAPI.h:104
clang::NSAPI::getNSClassId
IdentifierInfo * getNSClassId(NSClassIdKindKind K) const
Definition: NSAPI.cpp:23
clang::NSAPI::NSStringMethodKind
NSStringMethodKind
Definition: NSAPI.h:44
clang::NSAPI::NSMutableDict_setObjectForKeyedSubscript
Definition: NSAPI.h:112
clang::NSAPI::getInitSelector
Selector getInitSelector() const
Definition: NSAPI.h:173
clang::NSAPI::getNSStringMethodKind
Optional< NSStringMethodKind > getNSStringMethodKind(Selector Sel) const
Return NSStringMethodKind if.
Definition: NSAPI.cpp:80
clang::NSAPI::NSArr_arrayWithObjects
Definition: NSAPI.h:80
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::NSAPI::isMacroDefined
bool isMacroDefined(StringRef Id) const
Returns true if Id is currently defined as a macro.
Definition: NSAPI.cpp:540
clang::NSAPI::NSMutableArr_insertObjectAtIndex
Definition: NSAPI.h:87
clang::NSAPI::NSNumberWithInt
Definition: NSAPI.h:183
clang::NSAPI::NSArr_arrayWithObjectsCount
Definition: NSAPI.h:81
clang::NSAPI::isNSNumberLiteralSelector
bool isNSNumberLiteralSelector(NSNumberLiteralMethodKind MK, Selector Sel) const
Definition: NSAPI.h:203
clang::NSAPI::NSMutableDict_setValueForKey
Definition: NSAPI.h:113
clang::NSAPI::NumNSArrayMethods
static const unsigned NumNSArrayMethods
Definition: NSAPI.h:90
clang::NSAPI::getNSDictionarySelector
Selector getNSDictionarySelector(NSDictionaryMethodKind MK) const
The Objective-C NSDictionary selectors.
Definition: NSAPI.cpp:167
clang::NSAPI::NumNSDictionaryMethods
static const unsigned NumNSDictionaryMethods
Definition: NSAPI.h:115
clang::NSAPI::NSArr_arrayWithObject
Definition: NSAPI.h:79
clang::NSAPI::ClassId_NSMutableOrderedSet
Definition: NSAPI.h:39
clang::NSAPI::NSMutableArr_setObjectAtIndexedSubscript
Definition: NSAPI.h:88
clang::NSAPI::NSNumberWithInteger
Definition: NSAPI.h:192
clang::NSAPI::getNSArrayMethodKind
Optional< NSArrayMethodKind > getNSArrayMethodKind(Selector Sel)
Return NSArrayMethodKind if Sel is such a selector.
Definition: NSAPI.cpp:157
clang::NSAPI::ClassId_NSArray
Definition: NSAPI.h:33
clang::NSAPI::getObjectForKeyedSubscriptSelector
Selector getObjectForKeyedSubscriptSelector() const
Returns selector for "objectForKeyedSubscript:".
Definition: NSAPI.h:141
clang::NSAPI::ClassId_NSMutableDictionary
Definition: NSAPI.h:36
clang::NSAPI::NSNumberWithChar
Definition: NSAPI.h:179
clang::NSAPI::NumNSStringMethods
static const unsigned NumNSStringMethods
Definition: NSAPI.h:52
clang::NSAPI::NSNumberWithBool
Definition: NSAPI.h:191
clang::NSAPI::NSMutableSet_addObject
Definition: NSAPI.h:126
clang::NSAPI::isNSASCIIStringEncodingConstant
bool isNSASCIIStringEncodingConstant(const Expr *E) const
Returns true if the expression.
Definition: NSAPI.h:70
clang::NSAPI::NSOrderedSet_setObjectAtIndex
Definition: NSAPI.h:128
clang::NSAPI::getSetObjectAtIndexedSubscriptSelector
Selector getSetObjectAtIndexedSubscriptSelector() const
Returns selector for "setObject:atIndexedSubscript".
Definition: NSAPI.h:159