[cfe-commits] [Patch] Checker for assignment of non-Boolean value to Boolean variable

Eli Friedman eli.friedman at gmail.com
Thu Dec 8 18:03:38 PST 2011


On Wed, Dec 7, 2011 at 5:53 PM, Ryan Govostes <rzg at apple.com> wrote:
> Hello,
>
> Please find attached a new checker for the static analyzer that warns on the assignment of a non-Boolean value to a variable with a Boolean data type. It supports Boolean data types defined by C++, C99, and Objective-C as well as those in stdbool.h and MacTypes.h.

Some related work:

http://blog.mozilla.com/mwu/2011/07/28/the-twelve-booleans-of-mozilla/

-Eli




More information about the cfe-commits mailing list