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-12 08:11:58 +01:00
2020-01-09 08:47:36 +01:00
2020-01-09 08:47:36 +01:00
2020-01-10 11:31:12 +01:00
2019-11-19 10:19:13 +03:00
2019-11-01 18:41:10 +03:00
2020-01-18 07:25:57 +01:00