Lines Matching +full:objective +full:- +full:c
1 // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fsyntax-only -verify %s
3 //====------------------------------------------------------------====//
5 //====------------------------------------------------------------====//
17 - (id)performSelector:(SEL)aSelector;;
21 -(id)foo;
29 …[(*x).isa self]; // expected-warning {{direct access to Objective-C's isa is deprecated in favor o…
30 …[x->isa self]; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of …
38 [(*y).isa self]; // expected-error {{instance variable 'isa' is protected}} \
39 …expected-warning{{receiver type 'struct objc_class *' is not 'id' or interface pointer, consider c…
40 [y->isa self]; // expected-error {{instance variable 'isa' is protected}} \
41 …expected-warning{{receiver type 'struct objc_class *' is not 'id' or interface pointer, consider c…
46 // then it should get the same warnings that id->isa gets.
50 Class isa; // expected-note 4 {{instance variable is declared here}}
74 -(void)method {
81 …(void)v->isa; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of o…
82 …(void)w->isa; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of o…
83 …(void)x->isa; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of o…
84 …(void)y->isa; // expected-warning {{direct access to Objective-C's isa is deprecated in favor of o…
85 (void)z->isa;
86 (void)u->isa;
88 …w->isa = 0; // expected-warning {{assignment to Objective-C's isa is deprecated in favor of object…
92 // Test for introspection of Objective-C pointers via bitmasking.
95 …(void) (((NSUInteger) p) & 0x1); // expected-warning {{bitmasking for introspection of Objective-C…
96 …(void) (0x1 & ((NSUInteger) p)); // expected-warning {{bitmasking for introspection of Objective-C…
97 (void) (((NSUInteger) p) ^ 0x1); // no-warning
98 (void) (0x1 ^ ((NSUInteger) p)); // no-warning
99 …[p performSelector:@selector(foo)])); // expected-warning {{bitmasking for introspection of Object…
101 #pragma clang diagnostic ignored "-Wdeprecated-objc-pointer-introspection-performSelector"
102 (void) (0x1 & ((NSUInteger) [p performSelector:@selector(foo)])); // no-warning