]> granicus.if.org Git - clang/commit
Add a new warning to -Wloop-analysis to detect suspicious increments or
authorRichard Trieu <rtrieu@google.com>
Tue, 6 Aug 2013 21:31:54 +0000 (21:31 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 6 Aug 2013 21:31:54 +0000 (21:31 +0000)
commitacdbbc7811c6045a718669a8a0740488edbbbd66
treecf9751b57aeb5f986c765db7ce0e5d37b8a15ffe
parentfa45cb3bf95a10d6c3b1ab55d60dae28e8a57cf4
Add a new warning to -Wloop-analysis to detect suspicious increments or
decrements inside for loops.  Idea for this warning proposed in PR15636:

http://llvm.org/bugs/show_bug.cgi?id=15636

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187817 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmt.cpp
test/SemaCXX/warn-loop-analysis.cpp