[PATCH] D15928: Add -Wfor-loop-analysis to -Wall.
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 6 10:54:50 PST 2016
thakis created this revision.
thakis added a reviewer: rtrieu.
thakis added a subscriber: cfe-commits.
Every time I try this warning, it finds a few bugs (I think about 4 total in Chromium so far), with 0 false positives. I couldn't measure any build performance degradation when turning it on; I tried building clang itself with and without the warning, and a small-ish target in chromium (1.6k TUs).
It should be in -Wall, and possibly even make its way into a default warning at some point.
http://reviews.llvm.org/D15928
Files:
include/clang/Basic/DiagnosticGroups.td
Index: include/clang/Basic/DiagnosticGroups.td
===================================================================
--- include/clang/Basic/DiagnosticGroups.td
+++ include/clang/Basic/DiagnosticGroups.td
@@ -616,6 +616,7 @@
CharSubscript,
Comment,
DeleteNonVirtualDtor,
+ ForLoopAnalysis,
Format,
Implicit,
InfiniteRecursion,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15928.44132.patch
Type: text/x-patch
Size: 358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160106/1d0a145d/attachment-0001.bin>
More information about the cfe-commits
mailing list