Lines Matching full:used

10   int * b = new int[10]; //expected-warning{{'b' is an unsafe pointer used for buffer access}} \  in parmsNoFix()
15 b[5] = 5; // expected-note{{used in buffer access here}} in parmsNoFix()
20 void parmsSingleton(int *p) { //expected-warning{{'p' is an unsafe pointer used for buffer access}}… in parmsSingleton()
27 int * b; //expected-warning{{'b' is an unsafe pointer used for buffer access}} \ in parmsSingleton()
31 b[5] = 5; // expected-note{{used in buffer access here}} in parmsSingleton()
32 p[5] = 5; // expected-note{{used in buffer access here}} in parmsSingleton()
52 …cted-warning{{'p' is an unsafe pointer used for buffer access}} expected-warning{{'q' is an unsa… in multiParmAllFix()
53 expected-warning{{'a' is an unsafe pointer used for buffer access}} \ in multiParmAllFix()
59 tmp = p[5]; // expected-note{{used in buffer access here}} in multiParmAllFix()
60 tmp = a[5]; // expected-note{{used in buffer access here}} in multiParmAllFix()
61 if (++q) {} // expected-note{{used in pointer arithmetic here}} in multiParmAllFix()
73 int * x; // expected-warning{{'x' is an unsafe pointer used for buffer access}} in multiParmLocalAllFix()
75 int * z; // expected-warning{{'z' is an unsafe pointer used for buffer access}} in multiParmLocalAllFix()
81 x[5] = 5; // expected-note{{used in buffer access here}} in multiParmLocalAllFix()
84 z[5] = 5; // expected-note{{used in buffer access here}} in multiParmLocalAllFix()
94 void multiParmLocalAllFix2(int *p, int * r) { // expected-warning{{'p' is an unsafe pointer used f… in multiParmLocalAllFix2()
95 … expected-warning{{'r' is an unsafe pointer used for buffer access}} in multiParmLocalAllFix2()
104 p[5] = 5; // expected-note{{used in buffer access here}} in multiParmLocalAllFix2()
106 r[5] = 5; // expected-note{{used in buffer access here}} in multiParmLocalAllFix2()
113 void noneParmFix(int * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used fo… in noneParmFix()
114 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmFix()
115 expected-warning{{'r' is an unsafe pointer used for buffer access}} in noneParmFix()
116 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmFix()
117 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmFix()
118 r++; // expected-note{{used in pointer arithmetic here}} in noneParmFix()
119 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmFix()
124 …nt * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}… in noneParmFix_control()
126 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmFix_control()
128 expected-warning{{'r' is an unsafe pointer used for buffer access}} \ in noneParmFix_control()
130 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmFix_control()
131 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmFix_control()
132 if (++r) {} // expected-note{{used in pointer arithmetic here}} in noneParmFix_control()
133 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmFix_control()
139 …nt * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}… in noneParmOrLocalFix()
140 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix()
141 expected-warning{{'r' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix()
142 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix()
143 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix()
144 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix()
146 int * l; l = r; // expected-warning{{'l' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix()
148 l++; // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix()
154 expected-warning{{'p' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix_control()
156 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix_control()
158 expected-warning{{'r' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix_control()
160 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix_control()
161 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix_control()
162 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix_control()
163 int * l; // expected-warning{{'l' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix_control()
166 if (++l){}; // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix_control()
172 …nt * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}… in noneParmOrLocalFix2()
173 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix2()
174 expected-warning{{'r' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix2()
175 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2()
176 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2()
177 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2()
181 int * l; l = b; // expected-warning{{'l' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix2()
184 l++; // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix2()
190 expected-warning{{'p' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix2_control()
192 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix2_control()
194 expected-warning{{'r' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix2_control()
196 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2_control()
197 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2_control()
198 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix2_control()
202 int * l; // expected-warning{{'l' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix2_control()
206 if(++l){} // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix2_control()
211 …nt * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}… in noneParmOrLocalFix3()
212 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3()
213 expected-warning{{'r' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix3()
214 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3()
215 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3()
216 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3()
220 int * l; l = b; // expected-warning{{'l' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix3()
222 l++; // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix3()
224 int * x; x = p; // expected-warning{{'x' is an unsafe pointer used for buffer access}} in noneParmOrLocalFix3()
225 tmp = x[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3()
230 expected-warning{{'p' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3_control()
232 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3_control()
234 expected-warning{{'r' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3_control()
236 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3_control()
237 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3_control()
238 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3_control()
242 int * l; // expected-warning{{'l' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3_control()
246 if (++l){}; // expected-note{{used in pointer arithmetic here}} in noneParmOrLocalFix3_control()
248 int * x; // expected-warning{{'x' is an unsafe pointer used for buffer access}} \ in noneParmOrLocalFix3_control()
251 tmp = x[5]; // expected-note{{used in buffer access here}} in noneParmOrLocalFix3_control()
257 …nt * p, int * q, int * r) { // expected-warning{{'p' is an unsafe pointer used for buffer access}}… in noneParmSomeLocalFix()
258 expected-warning{{'q' is an unsafe pointer used for buffer access}} \ in noneParmSomeLocalFix()
259 expected-warning{{'r' is an unsafe pointer used for buffer access}} in noneParmSomeLocalFix()
260 int tmp = p[5]; // expected-note{{used in buffer access here}} in noneParmSomeLocalFix()
261 tmp = q[5]; // expected-note{{used in buffer access here}} in noneParmSomeLocalFix()
262 tmp = r[5]; // expected-note{{used in buffer access here}} in noneParmSomeLocalFix()
266 int * l; l = b; // expected-warning{{'l' is an unsafe pointer used for buffer access}} in noneParmSomeLocalFix()
268 l++; // expected-note{{used in pointer arithmetic here}} in noneParmSomeLocalFix()
276 int * y; // expected-warning{{'y' is an unsafe pointer used for buffer access}} \ in noneParmSomeLocalFix()
279 tmp = y[5]; // expected-note{{used in buffer access here}} in noneParmSomeLocalFix()
290 int * a; // expected-warning{{'a' is an unsafe pointer used for buffer access}} \ in parmsFromLambdaAndBlock()
293 int * b; // expected-warning{{'b' is an unsafe pointer used for buffer access}} \ in parmsFromLambdaAndBlock()
295 …auto Lamb = [](int * x) -> void { // expected-warning{{'x' is an unsafe pointer used for buffer ac… in parmsFromLambdaAndBlock()
296 x[5] = 5; // expected-note{{used in buffer access here}} in parmsFromLambdaAndBlock()
299 …void (^Blk)(int*) = ^(int * y) { // expected-warning{{'y' is an unsafe pointer used for buffer ac… in parmsFromLambdaAndBlock()
300 y[5] = 5; // expected-note{{used in buffer access here}} in parmsFromLambdaAndBlock()
305 a[5] = 5; // expected-note{{used in buffer access here}} in parmsFromLambdaAndBlock()
306 b[5] = 5; // expected-note{{used in buffer access here}} in parmsFromLambdaAndBlock()