Rikard Falkeborn
ff9c04dc28
Improve isSameExpression for literals ( #2514 )
...
Improve isSameExpression() for literals with same value but different
representation, for example the following different ways of
representing 9 as double: 9.0, 0.9e1 and 0x1.2p3.
With this change, cppcheck can (for example) correctly detect that the
else if statements are always false in the following example:
void f(double x) {
if (x < 9.0) {}
else if (x < 0x1.2p3) {}
else if (x < 0.9e1) {}
}
2020-02-01 07:22:41 +01:00
..
2020-01-20 18:53:40 +01:00
2020-01-12 08:11:58 +01:00
2020-01-10 08:57:37 +01:00
2020-01-15 21:11:04 +01:00
2020-01-09 08:47:36 +01:00
2020-02-01 07:22:41 +01:00
2019-12-01 15:10:02 +01:00
2019-12-20 19:38:30 +01:00
2020-01-04 11:39:52 +01:00
2020-01-27 13:00:52 +01:00
2020-01-09 06:53:08 +01:00
2019-07-31 22:35:51 +02:00
2020-01-05 16:25:33 +01:00
2019-10-09 08:17:47 +02:00
2020-01-18 07:25:57 +01:00
2019-12-11 09:07:18 +01:00
2020-01-21 18:55:07 +01:00
2019-11-22 18:11:38 +03:00
2020-01-01 15:46:09 +01:00
2020-01-24 07:06:09 +01:00
2019-11-28 17:49:33 +01:00
2019-10-04 12:30:11 +02:00
2020-01-27 06:55:01 +01:00
2020-01-09 08:47:36 +01:00
2019-11-13 12:46:54 +01:00
2020-01-21 19:29:33 +03:00
2019-12-04 12:13:44 +01:00
2020-01-05 17:00:34 +01:00
2020-01-10 11:31:12 +01:00
2019-12-03 18:33:05 +01:00
2019-09-19 20:29:33 +02:00
2020-01-24 07:06:09 +01:00
2020-01-24 07:06:09 +01:00
2019-11-19 10:19:13 +03:00
2019-12-12 20:50:20 +01:00
2020-01-30 18:21:22 +03:00
2019-11-01 09:11:29 +01:00
2019-12-05 20:51:36 +01:00
2019-11-01 18:41:10 +03:00
2020-01-05 16:24:25 +01:00
2019-10-20 07:11:57 +02:00
2019-09-19 20:29:33 +02:00
2020-01-18 07:25:57 +01:00
2020-01-24 07:06:09 +01:00
2020-01-29 17:29:40 +01:00
2019-11-08 08:03:45 +01:00
2020-01-25 10:18:37 +01:00
2019-09-25 20:16:04 +02:00
2019-12-19 20:18:32 +01:00
2019-09-16 06:34:45 +02:00
2019-07-22 10:26:55 +02:00
2019-12-20 18:31:55 +01:00
2020-01-24 07:06:09 +01:00
2019-09-20 21:57:16 +02:00
2020-01-17 03:17:26 +01:00
2020-01-29 17:40:22 +01:00