[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis closed this revision. thakis added a comment. 285310 https://reviews.llvm.org/D26035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis added a comment. Thanks! Landing… Comment at: test/SemaCXX/warn-logical-not-compare.cpp:224 + // These already err, don't also warn. + !x &= 1; // expected-error{{expression is not assignable}} + !x |= 1; // expected-error{{expression is not assignable}} -

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Hans Wennborg via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. lgtm, very nice! (with one clarifying question) Comment at: test/SemaCXX/warn-logical-not-compare.cpp:224 + // These already err, don't also warn. + !x &= 1; // expected-error{

[PATCH] D26035: Expand -Wlogical-not-parentheses to also fire on `!x & A`.

2016-10-27 Thread Nico Weber via cfe-commits
thakis created this revision. thakis added a reviewer: hans. thakis added a subscriber: cfe-commits. This is a misspelling of the intended `!(x & A)` negated bit test that happens in practice every now and then. I ran this on Chromium and all its dependencies, and it fired 0 times -- no false o