Lines Matching full:availability
2 // RUN: %clang_cc1 -D WARN_PARTIAL -Wpartial-availability -triple x86_64-apple-darwin9.0.0 -fsyntax-only -verify %s
5 - (void)proto_method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-note 2 {{'proto_method' has been explicitly marked deprecated here}}
10 - (void)partial_proto_method __attribute__((availability(macosx,introduced=10.8)));
14 - (void)method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-note {{'method' has been explicitly marked deprecated here}}
18 - (void)partialMethod __attribute__((availability(macosx,introduced=10.8)));
20 - (void)overridden __attribute__((availability(macosx,introduced=10.3))); // expected-note{{overridden method is here}}
21 - (void)overridden2 __attribute__((availability(macosx,introduced=10.3)));
22 - (void)overridden3 __attribute__((availability(macosx,deprecated=10.3)));
23 - (void)overridden4 __attribute__((availability(macosx,deprecated=10.3))); // expected-note{{overridden method is here}}
24 - (void)overridden5 __attribute__((availability(macosx,unavailable)));
25 - (void)overridden6 __attribute__((availability(macosx,introduced=10.3))); // expected-note{{overridden method is here}}
31 - (void)method; // NOTE: we expect 'method' to *not* inherit availability.
33 - (void)overridden __attribute__((availability(macosx,introduced=10.4))); // expected-warning{{overriding method introduced after overridden method on OS X (10.4 vs. 10.3)}}
34 - (void)overridden2 __attribute__((availability(macosx,introduced=10.2)));
35 - (void)overridden3 __attribute__((availability(macosx,deprecated=10.4)));
36 - (void)overridden4 __attribute__((availability(macosx,deprecated=10.2))); // expected-warning{{overriding method deprecated before overridden method on OS X (10.3 vs. 10.2)}}
37 - (void)overridden5 __attribute__((availability(macosx,introduced=10.3)));
38 - (void)overridden6 __attribute__((availability(macosx,unavailable))); // expected-warning{{overriding method cannot be unavailable on OS X when its overridden method is available}}
79 - (void) method __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-note {{'method' has been explicitly marked deprecated here}}
111 extern NSString *NSNibTopLevelObjects __attribute__((availability(macosx,introduced=10.0 ,deprecated=10.8,message="" )));
131 - (void)ppartialMethod __attribute__((availability(macosx,introduced=10.8)));
132 + (void)ppartialMethod __attribute__((availability(macosx,introduced=10.8)));
136 - (void)partialMethod __attribute__((availability(macosx,introduced=10.8)));
137 + (void)partialMethod __attribute__((availability(macosx,introduced=10.8)));
141 - (void)ipartialMethod1 __attribute__((availability(macosx,introduced=10.8)));
145 - (void)ipartialMethod2 __attribute__((availability(macosx,introduced=10.8)));
146 + (void)ipartialMethod1 __attribute__((availability(macosx,introduced=10.8)));
150 + (void)ipartialMethod2 __attribute__((availability(macosx,introduced=10.8)));
182 __attribute__((availability(macosx, introduced = 10.8))) @interface PartialI2
212 // Test that the availability of (optional) protocol methods is not
216 -(void)methodA __attribute__((availability(macosx,introduced=10.1,deprecated=10.2))); // expected-note 4{{'methodA' has been explicitly marked deprecated here}} \
233 [obj methodA]; // okay: availability not inherited
243 // Make sure we're not inheriting availability.
266 -(void)methodA __attribute__((availability(macosx,introduced=10.2))); // expected-warning{{method introduced after the protocol method it implements on OS X (10.2 vs. 10.1)}}
275 -(void)methodA __attribute__((availability(macosx,introduced=10.2))) // expected-warning{{method introduced after the protocol method it implements on OS X (10.2 vs. 10.1)}}