Home
last modified time | relevance | path

Searched refs:NSObject (Results 1 – 25 of 578) sorted by relevance

12345678910>>...24

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dparameterized_classes.m11 @protocol NSObject // expected-note{{'NSObject' declared here}} protocol
18 @interface NSObject <NSObject> // expected-note{{'NSObject' defined here}} interface
36 @interface PC2<T : id<NSObject>> : NSObject
61 @interface PC8<T> : NSObject <NSObject>
85 @interface PC10<T, U : NSObject *> : NSObject
119 @interface PC14<T, U : NSObject *> : NSObject
131 @interface PC1<T : id, U : NSObject *> (Cat2) <NSObject>
139 @interface PC1<T : id, U : NSObject *> () <NSObject> category
269 typedef PC15<NSObject *, NSObject *, id<NSCopying>> typeArgs8;
271 typedef PC15<NSObject *, NSObject *,
[all …]
H A Dproperty-in-class-extension.m16 @class NSObject;
20 NSObject *_bar;
21 NSObject *_baz;
22 NSObject *_bam;
24 - (NSObject *)baz;
28 - (NSObject *)bar; category
32 @property (readwrite, assign) NSObject *bar;
33 @property (readwrite, assign) NSObject *baz;
39 - (NSObject *)bam; category
40 - (NSObject *)warn;
[all …]
H A Dcomptypes-10.m10 @interface NSObject <NSCopying, NSPROTO, NSPROTO1> { interface
15 void gorf(NSObject <NSCopying> *); // expected-note {{passing argument to parameter here}}
17 NSObject <NSCopying> *foo(id <NSCopying> bar, id id_obj)
19NSObject <NSCopying> *Init = bar; // expected-warning {{initializing 'NSObject<NSCopying> *' with …
20NSObject *Init1 = bar; // expected-warning {{initializing 'NSObject *' with an expression of incom…
22 NSObject <NSCopying> *I = id_obj;
23 NSObject *I1 = id_obj;
24 …ected-warning {{passing 'id<NSCopying>' to parameter of incompatible type 'NSObject<NSCopying> *'}}
33NSObject <NSCopying> *Init = bar; // expected-warning {{initializing 'NSObject<NSCopying> *' with …
37 @interface NSObject (CAT) interface in CAT
[all …]
H A Dcomptypes-legal.m3 @protocol NSObject protocol
5 @interface NSObject <NSObject> { interface
8 @interface NSString : NSObject
10 void __setRetained(id *ivar, id value, NSObject **o) {
17 @implementation NSObject (ScopeAdditions) implementation in ScopeAdditions
25 NSObject *ExternFunc (NSObject *filePath, NSObject *key);
26 typedef id FuncSignature (NSObject *arg1, Derived *arg2);
28 @interface Derived: NSObject
36 …tion pointer types sending 'NSObject *(NSObject *, NSObject *)' to parameter of type 'FuncSignatur…
H A Dnsobject-attribute.m3 typedef struct CGColor * __attribute__ ((NSObject)) CGColorRef;
4 typedef struct CGColor * __attribute__((NSObject(12))) Illegal; // expected-error {{'NSObject' att…
9 typedef struct S1 __attribute__ ((NSObject)) CGColorRef1; // expected-error {{'NSObject' attribute…
10 typedef void * __attribute__ ((NSObject)) CGColorRef2; // no-warning
20 typedef struct CGColor * __attribute__((NSObject)) CGColorRefNoNSObject; // no-warning category
23 @property (strong) __attribute__((NSObject)) CFTypeRef myObj; // no-warning
53 …__attribute__((NSObject)) void * color; // expected-warning {{'NSObject' attribute may be put on a…
56 @property (nonatomic, retain) __attribute__((NSObject)) CGColorRefNoNSObject color; // // no-warning
59 …char* __attribute__((NSObject)) string2 = 0; // expected-warning {{'NSObject' attribute may be put…
64 @property(retain) __attribute__((NSObject)) int i; // expected-error {{'NSObject' attribute is for …
H A Dprops-on-prots.m6 @protocol NSObject protocol
14 @interface NSObject < NSObject > {} @end interface
18 @interface NSResponder:NSObject < NSCoding > {} @end
24 @protocol XCElementP < NSObject >
31 typedef NSObject < XCElementTabMarkerP > XCElementTabMarker;
37 typedef NSObject < XCElementTabberP > XCElementTabber;
39 @protocol XCElementTabMarkerP < NSObject >
48 typedef NSObject < XCElementJustifierP > XCElementJustifier;
49 @interface XCElementImp:NSObject < XCElementP > {}
H A Dkindof.m9 @protocol NSObject protocol
23 @interface NSObject <NSObject> interface
24 - (NSObject *)retain;
95 NSObject *NSObject_obj;
110 NSObject *NSObject_obj;
158 NSObject *NSObject_obj;
313 @interface A : NSObject
316 @interface B : NSObject
326 @interface C : NSObject
329 @interface D : NSObject
[all …]
H A Dconditional-expr-8.m28 @protocol NSObject protocol
32 @interface NSObject <NSObject> interface
35 @protocol Goable <NSObject>
43 @interface Car : NSObject
44 - (NSObject <Goable> *)bestGoable:(NSObject <Goable> *)drivable;
54 - (NSObject <Goable> *)bestGoable:(NSObject <Goable> *)drivable value:(int)value{
H A Dblock-type-safety.m27 @protocol NSObject; protocol in id
28 @class NSObject;
30 void r2 (id<NSObject> (^f) (void)) {
67 f1(^(id<NSObject> a) { }); // OK
218 id<NSObject, NSCopying, NSObject, NSCopying> anQualId3 = aBlock; // Ok
226 NSObject *NSO = aBlock; // Ok
227 NSObject<NSObject> *NSO1 = aBlock; // Ok
228 NSObject<NSObject, NSCopying> *NSO2 = aBlock; // Ok
229 NSObject<NSObject, NSCopying, NSObject, NSCopying> *NSO3 = aBlock; // Ok
231NSObject<NSObject, P1, NSCopying> *NSO5 = aBlock; // expected-error {{initializing 'NSObject<NSObj…
[all …]
H A Dtypedef-class.m8 @protocol NSObject - (BOOL) isEqual:(id) object; - (id)init; @end protocol
12 @interface NSObject < NSObject > {} interface
18 @interface NSTask:NSObject
25 @interface NSCell:NSObject < NSCopying, NSCoding > {}
34 @protocol XCElementP < NSObject >
39 @protocol XCElementDisplayDelegateP < NSObject >
46 typedef NSObject < XCElementSpacerP > XCElementSpacer;
51 typedef NSObject < XCElementTogglerP > XCElementToggler; // expected-note {{previous definition is …
53 @interface XCElementRootFace:NSObject {} @end
63 @interface XCElementDisplay:NSObject < XCElementDisplayDelegateP > {} @end
H A Dobjc-independent-class-attribute.m4 @interface NSObject @end interface
6 typedef NSObject * __attribute__((objc_independent_class))dispatch_queue_t;
11NSObject *__attribute__((objc_independent_class)) ns; // expected-warning {{'objc_independent_clas…
16 @interface DispatchQPointerCastIssue : NSObject {
17NSObject *__attribute__((objc_independent_class)) Ivar; // expected-warning {{'objc_independent_cl…
20 @property (copy) NSObject *__attribute__((objc_independent_class)) Prop; // expected-warning {{'obj…
22 typedef NSObject * __attribute__((objc_independent_class))dispatch_queue_t_1;
32 NSObject *get_nsobject(void) {
33 typedef NSObject * __attribute__((objc_independent_class))dispatch_queue_t;
H A Dprotocol-typecheck.m3 @interface NSObject @end interface
11 - (void)setFlexElement:(NSObject <PWhatever, XCElementP> *)flexer;
12 - (void)setFlexElement2:(NSObject <PWhatever, XCElementSpacerP> *)flexer; // expected-note{{passing…
17 NSObject <PWhatever, XCElementSpacerP> * flexer;
18 NSObject <PWhatever, XCElementP> * flexer2;
22 …// protocol-typecheck.m:21: warning: class 'NSObject <PWhatever, XCElementP>' does not implement t…
23 …arning{{incompatible pointer types sending 'NSObject<PWhatever,XCElementP> *' to parameter of type…
/llvm-project-15.0.7/clang/test/Analysis/
H A DDeallocMissingRelease.m23 NSObject *_ivar;
47 NSObject *_ivar;
49 - (NSObject *)ivar;
65 - (NSObject *)ivar
109 NSObject *_ivar;
164 NSObject *_ivar;
182 NSObject *_ivar;
209 NSObject *_ivar;
644 NSObject *field1;
645 NSObject *field2;
[all …]
H A DMissingDealloc.m12 @protocol NSObject protocol
17 @interface NSObject <NSObject> {} interface
29 NSObject *_ivar;
58 @property (copy) NSObject *ivar;
68 @property (retain) NSObject *ivar;
78 @property (retain) NSObject *ivar1;
79 @property (retain) NSObject *ivar2;
89 NSObject *_ivar2;
114 @interface TestSELs : NSObject {
137 @interface HasOutlet : NSObject {
[all …]
H A Drefcnt_naming.m8 @protocol NSObject - (BOOL)isEqual:(id)object; @end protocol
9 @interface NSObject <NSObject> {} @end interface
12 @interface NamingTest : NSObject {}
13 -(NSObject*)copyPhoto;
14 -(NSObject*)mutableCopyPhoto;
15 -(NSObject*)mutable;
16 -(NSObject*)mutableCopying;
17 -(NSObject*)photocopy; // read as "photocopy"
18 -(NSObject*)photoCopy; // read as "photo Copy"
19 -(NSObject*)__blebPRCopy; // read as "bleb PRCopy"
[all …]
H A DDeallocUseAfterFreeErrors.m8 @protocol NSObject protocol
13 @interface NSObject <NSObject> { } interface
25 NSObject *_ivar;
45 NSObject *_delegate;
102 NSObject *_ivar;
115 @property (retain) NSObject *ivar;
134 @property (assign) NSObject *delegate;
196 NSObject *_ivar;
220 NSObject *_ivar;
240 NSObject *_ivar;
[all …]
/llvm-project-15.0.7/clang/test/PCH/
H A Dobjc_parameterized_classes.m8 @protocol NSObject protocol
12 @interface NSObject interface
15 @interface PC1<__covariant T, U : NSObject *> : NSObject
19 @interface PC1<__covariant T, U : NSObject *> (Cat1)
22 typedef PC1<id, NSObject *> PC1Specialization1;
24 typedef PC1Specialization1 <NSObject> PC1Specialization2;
27 @interface PC1<T : NSObject *, // expected-error{{type bound 'NSObject *' for type parameter 'T' co…
35 …on2<id, NSObject *> PC1Specialization4; // expected-error{{already-specialized class type 'PC1Spec…
37 @interface NSString : NSObject
40 void testCovariance(PC1<NSObject *, NSObject *> *pc1a,
[all …]
H A Dobjc_kindof.m7 @protocol NSObject protocol
14 @interface NSObject <NSObject> interface
17 @interface NSString : NSObject <NSCopying>
23 @interface NSNumber : NSObject <NSCopying>
26 extern __kindof NSObject <NSCopying> *kindof_NSObject_NSCopying;
30 ip = kindof_NSObject_NSCopying; // expected-warning{{from '__kindof NSObject<NSCopying> *'}}
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-parameterized-classes.m1 @protocol NSObject protocol
4 @interface NSObject interface
7 @interface A<T : id, U : NSObject *> : NSObject
10 @interface A<T : id, U : NSObject *> (Cat1)
13 typedef A<id<NSObject>, NSObject *> ASpecialization1;
15 @interface B<T : id, U : NSObject *> : A<T, U>
22 // CHECK-INTERFACE-DECL: Identifier: "NSObject" [7:26 - 7:34] ObjCClassRef=NSObject:4:12
28 // CHECK-CATEGORY-DECL: Identifier: "NSObject" [10:26 - 10:34] ObjCClassRef=NSObject:4:12
32 // CHECK-SPECIALIZATION: Identifier: "NSObject" [13:14 - 13:22] ObjCProtocolRef=NSObject:1:11
33 // CHECK-SPECIALIZATION: Identifier: "NSObject" [13:25 - 13:33] ObjCClassRef=NSObject:4:12
H A Dcomplete-parameterized-classes.m1 @protocol NSObject protocol
4 @interface NSObject interface
7 @interface Test<T : id, U : NSObject *> : NSObject
19 @interface MyClsA : NSObject
21 @interface MyClsB : NSObject
42 NSObject<> n;
57 …bjCInstanceMethodDecl:{ResultType void}{TypedText apply2:}{Placeholder ^(id, NSObject *)block} (35)
58 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType void}{TypedText apply:}{Placeholder ^(id, NSObject
59 // CHECK-CC3: ObjCInstanceMethodDecl:{ResultType __kindof NSObject *}{TypedText getit:}{Placeholder…
65 // CHECK-CC5: ObjCIvarDecl:{ResultType __kindof NSObject *}{TypedText myVar} (35)
[all …]
H A Dcomment-objc-parameterized-classes.m10 @protocol NSObject protocol
13 @interface NSObject interface
16 // CHECK: <Declaration>@interface A&lt;__covariant T : id, U : NSObject *&gt; : NSObject
18 @interface A<__covariant T : id, U : NSObject *> : NSObject
21 // CHECK: <Declaration>@interface AA : A &lt;id, NSObject *&gt;
23 @interface AA : A<id, NSObject *>
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dfp-ret-bitcast.ll4 %struct.NSObject = type { %struct.objc_class* }
5 %struct.NSArray = type { %struct.NSObject }
15 %color.466 = alloca %struct.NSObject*
18 store %struct.NSObject* %tmp103104, %struct.NSObject** %color.466, align 4
20 %tmp106 = load %struct.NSObject*, %struct.NSObject** %color.466, align 4
21 …itcast (void (%struct.NSObject*, ...)* @objc_msgSend_fpret to float (%struct.NSObject*, %struct.ob…
28 declare void @objc_msgSend_fpret(%struct.NSObject*, ...)
/llvm-project-15.0.7/clang/test/Analysis/Checkers/
H A DRunLoopAutoreleaseLeakChecker.m32NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
40 NSObject *object;
42 object = [[NSObject alloc] init]; // no-warning
51NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
59NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
60 NSObject *object2 = [[NSObject alloc] init]; // no-warning, warning on the first one is enough.
68 NSObject *object = [[NSObject alloc] init]; // no-warning
76 NSObject *object = [[NSObject alloc] init]; // no-warning
84NSObject *object = [[NSObject alloc] init]; // expected-warning{{Temporary objects allocated in th…
104 NSObject *object = [[NSObject alloc] init]; // no-warning
[all …]
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dprotocol-lookup.mm2 @protocol NSObject protocol
7 @interface NSObject interface
12 @protocol Foo <NSObject>
18 @interface Baz : NSObject {
53 [id<NSObject>(a) retain];
54 id<NSObject> x(id<NSObject>(0));
55 …id<NSObject> x2(id<NSObject>(y)); // expected-warning{{disambiguated as a function declaration}} e…
H A Dconversion-to-objc-pointer-2.mm5 @protocol NSObject @end protocol
6 @interface NSObject interface
34 @protocol TFooProtocol <NSObject>
43 @interface TFoo : NSObject
62 @interface TBar : NSObject
82 NSObject* object1 = [[[NSObject alloc] init] autorelease];
83 TNSAutoRef<NSObject*> object2([[NSObject alloc] init]);

12345678910>>...24