Lines Matching refs:expected
4 typedef struct __attribute__ ((objc_bridge(NSError))) __CFErrorRef * CFErrorRef; // expected-note 5…
6 typedef struct __attribute__ ((objc_bridge(MyError))) __CFMyErrorRef * CFMyErrorRef; // expected-no…
8 typedef struct __attribute__((objc_bridge(12))) __CFMyColor *CFMyColorRef; // expected-error {{par…
10 typedef struct __attribute__ ((objc_bridge)) __CFArray *CFArrayRef; // expected-error {{'objc_bridg…
12 typedef void * __attribute__ ((objc_bridge(NSURL))) CFURLRef; // expected-error {{parameter of 'o…
14 typedef void * CFStringRef __attribute__ ((objc_bridge(NSString))); // expected-error {{parameter o…
16 typedef struct __attribute__((objc_bridge(NSLocale, NSError))) __CFLocale *CFLocaleRef;// expected-…
18 typedef struct __CFData __attribute__((objc_bridge(NSData))) CFDataRef; // expected-error {{paramet…
22 typedef struct __CFSetRef * CFSetRef __attribute__((objc_bridge(NSSet))); // expected-error {{param…
24 typedef union __CFUColor __attribute__((objc_bridge(NSUColor))) * CFUColorRef; // expected-error {{…
26 typedef union __CFUColor __attribute__((objc_bridge(NSUColor))) * CFUColorRef; // expected-error {{…
28 typedef union __CFUColor __attribute__((objc_bridge(NSUColor))) *CFUColor1Ref; // expected-error {{…
35 …__attribute__((objc_bridge(NSError))) void * color; // expected-error {{'objc_bridge' attribute on…
42 typedef struct __attribute__((objc_bridge(NSTesting))) __CFError *CFTestingRef; // expected-note {{…
45 …return (NSString *)cf; // expected-error {{CF object of type 'CFTestingRef' (aka 'struct __CFError…
46 …// expected-error {{cast of C pointer type 'CFTestingRef' (aka 'struct __CFError *') to Objective-…
47 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
48 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFTestingRef' (aka 'struct…
53 typedef CFErrorRef1 CFErrorRef2; // expected-note 2 {{declared here}}
61 @interface NSError<P1, P2, P3> @end // expected-note 5 {{declared here}}
63 @interface MyError : NSError // expected-note 1 {{declared here}}
71 …(void)(NSString *)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridges to…
72 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErrorRef *') to Objectiv…
73 // expected-note {{__bridge to convert directly (no change in ownership)}} \
74 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct …
75 …(void)(NSError *)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErr…
76 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
77 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct …
78 …(void)(MyError*)cf; // expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErro…
79 // expected-note {{__bridge to convert directly (no change in ownership)}} \
80 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct …
81 …// expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridges to NSError, not 'MyError…
82 …(void)(NSUColor *)cf2; // expected-error {{cast of C pointer type 'CFUColor2Ref' (aka 'union __CFU…
83 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
84 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFUColor2Ref' (aka 'union …
85 …(void)(CFErrorRef)ns; // expected-error {{cast of Objective-C pointer type 'NSError *' to C pointe…
86 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
87 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
88 …(void)(CFErrorRef)str; // expected-warning {{'NSString' cannot bridge to 'CFErrorRef' (aka 'struc…
89 …// expected-error {{cast of Objective-C pointer type 'NSString *' to C pointer type 'CFErrorRef' (…
90 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
91 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
92 …(void)(Class)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridges to NSEr…
93 …// expected-error {{cast of C pointer type 'CFErrorRef2' (aka 'struct __CFErrorRef *') to Objectiv…
94 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
95 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef2' (aka 'struct …
96 …(void)(CFErrorRef)c; // expected-warning {{'__unsafe_unretained Class' cannot bridge to 'CFErrorRe…
97 …// expected-error {{cast of Objective-C pointer type 'Class' to C pointer type 'CFErrorRef' (aka '…
98 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
99 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
104 …(void)(id)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka 'struct __CFErrorRef *'…
105 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
106 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka 'struct _…
107 …(void)(id<P1, P2>)cf; // expected-error {{cast of C pointer type 'CFErrorRef' (aka 'struct __CFErr…
108 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
109 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka 'struct _…
110 …(void)(id<P1, P2, P4>)cf; // expected-warning {{'CFErrorRef' (aka 'struct __CFErrorRef *') bridges…
111 …// expected-error {{cast of C pointer type 'CFErrorRef' (aka 'struct __CFErrorRef *') to Objective…
112 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
113 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFErrorRef' (aka 'struct _…
117 …(void)(id)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct __CFMyErrorRe…
118 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
119 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyErrorRef' (aka 'struct…
120 …(void)(id<P1, P2>)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct __CFM…
121 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
122 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyErrorRef' (aka 'struct…
123 …(void)(id<P1, P2, P3>)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct _…
124 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
125 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyErrorRef' (aka 'struct…
126 …(void)(id<P2, P3>)cf; // expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct __CFM…
127 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
128 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyErrorRef' (aka 'struct…
129 …(void)(id<P1, P2, P4>)cf; // expected-warning {{'CFMyErrorRef' (aka 'struct __CFMyErrorRef *') bri…
130 …// expected-error {{cast of C pointer type 'CFMyErrorRef' (aka 'struct __CFMyErrorRef *') to Objec…
131 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
132 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyErrorRef' (aka 'struct…
136 …(void)(CFErrorRef)ID; // expected-error {{cast of Objective-C pointer type 'id' to C pointer type …
137 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
138 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
139 …(void)(CFErrorRef)P123; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,P3>' to C p…
140 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
141 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
142 …(void)(CFErrorRef)P1234; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,P3,P4>' to…
143 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
144 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
145 …(void)(CFErrorRef)P12; // expected-error {{cast of Objective-C pointer type 'id<P1,P2>' to C point…
146 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
147 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
148 …(void)(CFErrorRef)P23; // expected-error {{cast of Objective-C pointer type 'id<P2,P3>' to C point…
149 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
150 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFErrorRef' (aka…
155 …(void)(CFMyErrorRef)ID; // expected-error {{cast of Objective-C pointer type 'id' to C pointer typ…
156 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
157 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyErrorRef' (a…
158 …(void)(CFMyErrorRef)P123; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,P3>' to C…
159 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
160 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyErrorRef' (a…
161 …(void)(CFMyErrorRef)P1234; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,P3,P4>' …
162 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
163 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyErrorRef' (a…
164 …(void)(CFMyErrorRef)P12; // expected-error {{cast of Objective-C pointer type 'id<P1,P2>' to C poi…
165 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
166 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyErrorRef' (a…
167 …(void)(CFMyErrorRef)P23; // expected-error {{cast of Objective-C pointer type 'id<P2,P3>' to C poi…
168 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
169 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyErrorRef' (a…
172 …e(MyPersonalError))) __CFMyPersonalErrorRef * CFMyPersonalErrorRef; // expected-note 1 {{declared…
174 @interface MyPersonalError : NSError <P4> // expected-note 1 {{declared here}}
178 …(void)(CFMyPersonalErrorRef)ID; // expected-error {{cast of Objective-C pointer type 'id' to C poi…
179 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
180 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyPersonalErro…
181 …(void)(CFMyPersonalErrorRef)P123; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,P…
182 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
183 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyPersonalErro…
184 …(void)(CFMyPersonalErrorRef)P1234; // expected-error {{cast of Objective-C pointer type 'id<P1,P2,…
185 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
186 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyPersonalErro…
187 …(void)(CFMyPersonalErrorRef)P12; // expected-error {{cast of Objective-C pointer type 'id<P1,P2>' …
188 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
189 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyPersonalErro…
190 …(void)(CFMyPersonalErrorRef)P23; // expected-error {{cast of Objective-C pointer type 'id<P2,P3>' …
191 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
192 …// expected-note {{use __bridge_retained to make an ARC object available as a +1 'CFMyPersonalErro…
196 …(void)(id)cf; // expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (aka 'struct __CFM…
197 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
198 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
199 …(void)(id<P1>)cf; // expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (aka 'struct _…
200 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
201 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
202 …(void)(id<P1, P2>)cf; // expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (aka 'stru…
203 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
204 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
205 …(void)(id<P1, P2, P3>)cf; // expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (aka '…
206 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
207 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
208 …(void)(id<P1, P2, P3, P4>)cf; // expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (a…
209 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
210 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
211 …(void)(id<P1, P2, P3, P4, P5>)cf; // expected-warning {{'CFMyPersonalErrorRef' (aka 'struct __CFMy…
212 …// expected-error {{cast of C pointer type 'CFMyPersonalErrorRef' (aka 'struct __CFMyPersonalError…
213 // expected-note {{use __bridge to convert directly (no change in ownership)}} \
214 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFMyPersonalErrorRef' (aka…
218 …(void)(__bridge NSString *)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') b…
220 …(void)(__bridge MyError*)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bri…
223 …(void)(__bridge CFErrorRef)str; // expected-warning {{'NSString' cannot bridge to 'CFErrorRef' (a…
224 …(void)(__bridge Class)cf; // expected-warning {{'CFErrorRef2' (aka 'struct __CFErrorRef *') bridge…
225 …(void)(__bridge CFErrorRef)c; // expected-warning {{'__unsafe_unretained Class' cannot bridge to '…
234 …(void)(NSError *)obj; // expected-error {{cast of C pointer type 'CFFooRef' (aka 'struct __CFFoo *…
235 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
236 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFFooRef' (aka 'struct __C…
238 …(void) (id)obj; // expected-error {{cast of C pointer type 'CFFooRef' (aka 'struct __CFFoo *…
239 … // expected-note {{use __bridge to convert directly (no change in ownership)}} \
240 …// expected-note {{use __bridge_transfer to transfer ownership of a +1 'CFFooRef' (aka 'struct __C…