]> granicus.if.org Git - clang/commitdiff
Add -Wfor-loop-analysis to -Wall.
authorNico Weber <nicolasweber@gmx.de>
Wed, 6 Jan 2016 20:55:00 +0000 (20:55 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 6 Jan 2016 20:55:00 +0000 (20:55 +0000)
This warning seems to have 0 false positives and some true positives in
practice, without a measurable compile time cost.  It should be in -Wall, and
possibly even become a default warning at some point.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256975 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td

index 8e5f57d6d89062f6da1311d9ca0360f008e5c38d..2e4e57b63b8e75b1775638522d94f857fe39f2bb 100644 (file)
@@ -616,6 +616,7 @@ def Most : DiagGroup<"most", [
     CharSubscript,
     Comment,
     DeleteNonVirtualDtor,
+    ForLoopAnalysis,
     Format,
     Implicit,
     InfiniteRecursion,