[cfe-commits] r44424 - /cfe/trunk/Sema/SemaChecking.cpp

Neil Booth neil at daikokuya.co.uk
Thu Nov 29 07:02:13 PST 2007


Ted Kremenek wrote:-

> Enhanced implementation of -Wfloat-equal to check for comparisons against
> floating-point literals that are represented exactly by the APFloat in
> FloatingLiteral. For such literals, we do not emit a warning since such checks are
> often performed in real code to see if a variable has changed from its original
> value. This heuristic clearly can lead to false negatives, but the hope is it will
> significantly reduce false positives to help make the compiler flag more useful.

Cool, I definitely believe this is an improvement!

Neil.



More information about the cfe-commits mailing list