[PATCH] New warning to detect when a logical not is applied to the LHS of a comparison when the intent was for the logical not to apply to the whole comparison

Richard Smith richard at metafoo.co.uk
Tue Mar 26 18:17:55 PDT 2013



================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:4270
@@ +4269,3 @@
+def note_logical_not_silence_with_parens : Note<
+  "add parentheses around left hand side expression to silence">;
+
----------------
"... to silence this warning", please


http://llvm-reviews.chandlerc.com/D505



More information about the cfe-commits mailing list