[cfe-commits] [PATCH] Add fixit notes for -Wconstant-logical-operand

Matt Beaumont-Gay matthewbg at google.com
Fri Aug 12 16:27:34 PDT 2011


I implemented these for purely selfish reasons, viz., I want to apply
them en masse to some hilariously broken code. What I feel might be
missing is a way to just silence the warning, though I'm not sure how
useful that would be.

Also, my impression is that the prevailing style in diagnostic text is
to surround operators in single quotes, so I've changed the warning to
match; any objections?

-Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constant-logical-operand-fixits.patch
Type: text/x-patch
Size: 15306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110812/f89eed7b/attachment.bin>


More information about the cfe-commits mailing list