Lines Matching refs:abs

5   int abs(int);
10 int abs(int);
11 float abs(float);
16 (void)abs(d);
17 // expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating point type}}
18 // expected-note@-2{{use function 'std::abs' instead}}
19 // expected-note@-3{{please include the header <cmath> or explicitly provide a declaration for 'std::abs'}}
20 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:12}:"std::abs"
24 // expected-note@-2{{use function 'std::abs' instead}}
25 // expected-note@-3{{please include the header <cmath> or explicitly provide a declaration for 'std::abs'}}
26 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:14}:"std::abs"
29 (void)abs(ll);
30 // expected-warning@-1{{absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value}}
31 // expected-note@-2{{use function 'std::abs' instead}}
32 // expected-note@-3{{please include the header <cstdlib> or explicitly provide a declaration for 'std::abs'}}
33 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:12}:"std::abs"
36 // expected-note@-2{{use function 'std::abs' instead}}
37 // expected-note@-3{{please include the header <cstdlib> or explicitly provide a declaration for 'std::abs'}}
38 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:9-[[@LINE-4]]:14}:"std::abs"
41 (void)abs(i);
47 // expected-note@-2{{use function 'std::abs' instead}}
48 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs"
49 (void)abs(f);
50 // expected-warning@-1{{using integer absolute value function 'abs' when argument is of floating point type}}
51 // expected-note@-2{{use function 'std::abs' instead}}
52 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:12}:"std::abs"