From: Nico Weber Date: Wed, 6 Jan 2016 20:55:00 +0000 (+0000) Subject: Add -Wfor-loop-analysis to -Wall. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ca5a7b5297ad1393af858a01af0f46e0f3eb2e0;p=clang Add -Wfor-loop-analysis to -Wall. 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 --- diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 8e5f57d6d8..2e4e57b63b 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -616,6 +616,7 @@ def Most : DiagGroup<"most", [ CharSubscript, Comment, DeleteNonVirtualDtor, + ForLoopAnalysis, Format, Implicit, InfiniteRecursion,