CPP: Use dataflow to find wrapped rounding functions.

This commit is contained in:
Geoffrey White
2019-01-10 14:33:46 +00:00
parent 207c4d365a
commit f2e68da322
3 changed files with 6 additions and 10 deletions

View File

@@ -7,4 +7,3 @@
| test.cpp:101:10:101:12 | call to pow | Return value of type double is implicitly converted to int here. |
| test.cpp:103:10:103:12 | call to pow | Return value of type double is implicitly converted to int here. |
| test.cpp:105:10:105:12 | call to pow | Return value of type double is implicitly converted to int here. |
| test.cpp:130:10:130:17 | call to myRound3 | Return value of type double is implicitly converted to int here. |

View File

@@ -127,5 +127,5 @@ void test3()
{
int i = myRound1(1.5); // GOOD
int j = myRound2(2.5); // GOOD
int k = myRound3(3.5); // GOOD [FALSE POSITIVE]
int k = myRound3(3.5); // GOOD
}