Lines Matching full:abs

5 int abs(int);
21 int abs(int);
22 long int abs(long int);
23 long long int abs(long long int);
26 float abs(float);
27 double abs(double);
28 long double abs(long double);
31 double abs(T);
36 (void)std::abs(x); in test_int()
38 (void)abs(x); in test_int()
44 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
45 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_int()
48 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
49 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_int()
52 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
53 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_int()
57 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
58 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_int()
61 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
62 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_int()
65 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
66 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_int()
74 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
75 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_int()
78 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
79 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_int()
82 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
83 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_int()
87 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
88 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_int()
91 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
92 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_int()
95 // expected-note@-2 {{use function 'std::abs' instead}} in test_int()
96 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_int()
100 (void)std::abs(x); in test_long()
102 (void)abs(x); // no warning - int and long are same length for this target in test_long()
108 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
109 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long()
112 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
113 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long()
116 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
117 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long()
121 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
122 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long()
125 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
126 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long()
129 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
130 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long()
139 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
140 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long()
143 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
144 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long()
147 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
148 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long()
152 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
153 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long()
156 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
157 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long()
160 // expected-note@-2 {{use function 'std::abs' instead}} in test_long()
161 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long()
165 (void)std::abs(x); in test_long_long()
167 (void)abs(x); in test_long_long()
168 …// expected-warning@-1{{absolute value function 'abs' given an argument of type 'long long' but ha… in test_long_long()
169 // expected-note@-2{{use function 'std::abs' instead}} in test_long_long()
170 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:12}:"std::abs" in test_long_long()
173 // expected-note@-2{{use function 'std::abs' instead}} in test_long_long()
174 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_long()
179 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
180 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_long()
183 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
184 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_long()
187 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
188 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_long()
192 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
193 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_long()
196 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
197 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_long()
200 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
201 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_long()
205 // expected-note@-2{{use function 'std::abs' instead}} in test_long_long()
206 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:22}:"std::abs" in test_long_long()
209 // expected-note@-2{{use function 'std::abs' instead}} in test_long_long()
210 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_long()
215 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
216 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_long()
219 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
220 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_long()
223 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
224 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_long()
228 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
229 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_long()
232 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
233 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_long()
236 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_long()
237 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_long()
241 (void)std::abs(x); in test_float()
243 (void)abs(x); in test_float()
244 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of floating … in test_float()
245 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
246 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:12}:"std::abs" in test_float()
249 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
250 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_float()
253 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
254 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_float()
262 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
263 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_float()
266 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
267 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_float()
270 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
271 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_float()
275 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
276 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:22}:"std::abs" in test_float()
279 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
280 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_float()
283 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
284 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_float()
292 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
293 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_float()
296 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
297 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_float()
300 // expected-note@-2 {{use function 'std::abs' instead}} in test_float()
301 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_float()
305 (void)std::abs(x); in test_double()
307 (void)abs(x); in test_double()
308 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of floating … in test_double()
309 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
310 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:12}:"std::abs" in test_double()
313 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
314 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_double()
317 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
318 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_double()
322 // expected-note@-2{{use function 'std::abs' instead}} in test_double()
323 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_double()
329 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
330 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_double()
333 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
334 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_double()
337 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
338 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_double()
342 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
343 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:22}:"std::abs" in test_double()
346 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
347 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_double()
350 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
351 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_double()
355 // expected-note@-2{{use function 'std::abs' instead}} in test_double()
356 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_double()
362 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
363 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_double()
366 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
367 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_double()
370 // expected-note@-2 {{use function 'std::abs' instead}} in test_double()
371 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_double()
375 (void)std::abs(x); in test_long_double()
377 (void)abs(x); in test_long_double()
378 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of floating … in test_long_double()
379 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
380 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:12}:"std::abs" in test_long_double()
383 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
384 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_double()
387 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
388 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_double()
392 // expected-note@-2{{use function 'std::abs' instead}} in test_long_double()
393 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_double()
396 // expected-note@-2{{use function 'std::abs' instead}} in test_long_double()
397 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_double()
402 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
403 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_double()
406 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
407 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" in test_long_double()
410 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
411 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" in test_long_double()
415 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
416 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:22}:"std::abs" in test_long_double()
419 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
420 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_double()
423 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
424 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_double()
428 // expected-note@-2{{use function 'std::abs' instead}} in test_long_double()
429 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_double()
432 // expected-note@-2{{use function 'std::abs' instead}} in test_long_double()
433 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_double()
438 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
439 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_double()
442 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
443 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:23}:"std::abs" in test_long_double()
446 // expected-note@-2 {{use function 'std::abs' instead}} in test_long_double()
447 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:24}:"std::abs" in test_long_double()
451 (void)abs(x); in test_complex_float()
452 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of complex t… in test_complex_float()
513 (void)abs(x); in test_complex_double()
514 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of complex t… in test_complex_double()
581 (void)abs(x); in test_complex_long_double()
582 …// expected-warning@-1 {{using integer absolute value function 'abs' when argument is of complex t… in test_complex_long_double()
655 (void)std::abs(x); in test_unsigned_int()
657 // expected-note@-2 {{remove the call to 'std::abs' since unsigned values cannot be negative}} in test_unsigned_int()
660 (void)abs(x); in test_unsigned_int()
662 // expected-note@-2 {{remove the call to 'abs' since unsigned values cannot be negative}} in test_unsigned_int()
740 (void)std::abs(x); in test_unsigned_long()
742 // expected-note@-2 {{remove the call to 'std::abs' since unsigned values cannot be negative}} in test_unsigned_long()
745 (void)abs(x); in test_unsigned_long()
747 // expected-note@-2 {{remove the call to 'abs' since unsigned values cannot be negative}} in test_unsigned_long()