[PATCH][StaticAnalyzer] new check comparing equal expression

Hans Wennborg hans at chromium.org
Mon Sep 23 11:18:31 PDT 2013


On Mon, Sep 23, 2013 at 11:14 AM, Hans Wennborg <hans at chromium.org> wrote:
> Feel free to look at my patch for inspiration. For example, I learned
> that "x == x" is a common pattern for checking if a float is NaN, so
> that shouldn't trigger a warning.

Actually looking at your patch, I see you're well aware of this
already, and have some excellent test cases for it too :)

 - Hans



More information about the cfe-commits mailing list