2 Commits

Author SHA1 Message Date
Stephan Bergmann
39accf65cd loplugin:fpcomparison: Fix check for floating-point zero
...so that isZeroConstant doesn't trigger an assert inside Clang's
isCXX11ConstantExpr when expr is sizeof(x) with x being dependent on a template
argument.

Change-Id: I6bab46e64cc085d597db25994d8bfdc66417fe83
2016-02-04 11:04:04 +01:00
Noel Grandin
4e9b528dcc new loplugin fpcomparison
Find code that compares floating point values with == or !=
It should rather use rtl::math::approxEqual

Change-Id: I9026e08823340fa1d6a042c430515344c93215bd
Reviewed-on: https://gerrit.libreoffice.org/21997
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-04 06:41:35 +00:00