rsmith added a comment. I feel indifferent about this warning, but clearly you care about it enough to work on it, and it's a pretty low-cost feature from a maintenance perspective, so I suppose it's fine.
================ Comment at: include/clang/Basic/DiagnosticParseKinds.td:56-58 +def warn_null_statement : Warning< + "';' with no preceding expression is a null statement">, + InGroup<ExtraSemiStmt>, DefaultIgnore; ---------------- The warning should explain why we're warning: what the problem is, and why it warrants action from the user. I would expect people seeing this warning to think "yes, but so what?". Something like "statement has no effect" might be better, maybe? (A customized warning for `;;` might be nice too.) Repository: rC Clang https://reviews.llvm.org/D52695 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits