• Home
  • Raw
  • Download

Lines Matching full:deprecated

5 …int X __attribute__((deprecated)); // expected-note 2 {{'X' has been explicitly marked deprecated
7 + (void)F __attribute__((deprecated)); // expected-note 2 {{'F' has been explicitly marked deprecat… argument
8 - (void)f __attribute__((deprecated)); // expected-note 5 {{'f' has been explicitly marked deprecat… argument
12 + (void)F __attribute__((deprecated)) argument
14 [self F]; // no warning, since the caller is also deprecated.
19 X++; // expected-warning{{'X' is deprecated}}
20 self->X++; // expected-warning{{'X' is deprecated}}
21 [self f]; // expected-warning{{'f' is deprecated}}
26 [self f]; // no warning, the caller is deprecated in its interface.
36 [super F]; // expected-warning{{'F' is deprecated}}
41 [super f]; // // expected-warning{{'f' is deprecated}}
46 - (void)p __attribute__((deprecated)); // expected-note {{'p' has been explicitly marked deprecated argument
51 [A F]; // expected-warning{{'F' is deprecated}}
52 [a f]; // expected-warning{{'f' is deprecated}}
57 [a f]; // expected-warning {{'f' is deprecated}}
62 [a f]; // expected-warning{{'f' is deprecated}}
63 [a p]; // expected-warning{{'p' is deprecated}}
75 …Setter:) int FooBar __attribute__ ((deprecated)); // expected-note 2 {{'FooBar' has been explicitl…
81 f.FooBar = 1; // expected-warning {{'FooBar' is deprecated}}
82 return f.FooBar; // expected-warning {{'FooBar' is deprecated}}
86 __attribute ((deprecated))
87 @interface DEPRECATED { // expected-note 2 {{'DEPRECATED' has been explicitly marked deprecated her… interface
89 DEPRECATED *ivar2; // no warning.
92 - (DEPRECATED *) meth; // no warning.
96 @interface DEPRECATED (Category) // no warning. interface in Category
97 - (DEPRECATED *) meth2; // no warning.
100 @interface DEPRECATED (Category2) // no warning. interface in Category2
103 @implementation DEPRECATED (Category2) // expected-warning {{'DEPRECATED' is deprecated}} implementation in Category2
106 @interface NS : DEPRECATED // expected-warning {{'DEPRECATED' is deprecated}}
111 …__((deprecated)); // expected-note 2 {{property 'test2' is declared deprecated here}} expected-not…
112 // expected-note {{'setTest2:' has been explicitly marked deprecated here}}
117 x = foo.test2; // expected-warning {{'test2' is deprecated}}
118 x = [foo test2]; // expected-warning {{'test2' is deprecated}}
119 foo.test2 = x; // expected-warning {{'test2' is deprecated}}
120 [foo setTest2: x]; // expected-warning {{'setTest2:' is deprecated}}
123 __attribute__((deprecated))
130 } footype __attribute((deprecated)); // expected-note 2 {{'footype' has been explicitly marked depr… typedef
133 footype a; // expected-warning {{'footype' is deprecated}}
134 footype b __attribute((deprecated));
136 @property footype c; // expected-warning {{'footype' is deprecated}}
137 @property footype d __attribute((deprecated));
145 …pedef NewI DeprI __attribute__((deprecated("blah"))); // expected-note 4 {{'DeprI' has been explic… typedef
147 @interface SI : DeprI // expected-warning {{'DeprI' is deprecated: blah}}
148 -(DeprI*)meth; // expected-warning {{'DeprI' is deprecated: blah}}
152 -(DeprI*)meth { // expected-warning {{'DeprI' is deprecated: blah}}
153 [DeprI cmeth]; // expected-warning {{'DeprI' is deprecated: blah}}
159 // - Using deprecated class name inside class should not warn about deprecation.
160 // - Implementations of deprecated classes should not result in deprecation warnings.
161 __attribute__((deprecated))
165 __attribute__((deprecated))
168 // flagged as the use of a deprecated declaration.
171 // Since this class is deprecated, returning a reference
172 // to another deprecated class is fine as they may
173 // have been deprecated together. From a user's
174 // perspective they are all deprecated.
182 // be flagged as a use of a deprecated
188 // Since this class is deprecated, referencing
189 // another deprecated class is also OK.
198 …ong) id object __attribute__((deprecated("deprecated"))); // expected-note {{'object' has been exp…
199 expected-note {{property 'object' is declared deprecated here}} \
200 expected-note {{'setObject:' has been explicitly marked deprecated here}} \
222 base.object = object; // expected-warning {{'object' is deprecated: deprecated}}
225 [base setObject:object]; // expected-warning {{'setObject:' is deprecated: deprecated}}
233 …ty(macosx,introduced=10.0 ,deprecated=10.4,message="" ))); // expected-note {{'cString' has been e…
238 …return [PID cString]; // expected-warning {{'cString' is deprecated: first deprecated in macOS 10.…
289 typedef struct {} S2 __attribute__((deprecated)); // expected-note2{{marked deprecated here}} typedef
292 - (void)method2:(S2) x; // expected-warning{{is deprecated}}
296 - (void)method2:(S2) x; // expected-warning{{is deprecated}}