]> granicus.if.org Git - clang/commit
[analyzer] LoopUnrolling: update the matched assignment operators
authorPeter Szecsi <szepet95@gmail.com>
Tue, 27 Mar 2018 12:16:56 +0000 (12:16 +0000)
committerPeter Szecsi <szepet95@gmail.com>
Tue, 27 Mar 2018 12:16:56 +0000 (12:16 +0000)
commit3caa3303cad1654228233a859513cec9e9642e74
tree3ad4caf17dd63139edabc527a2cc2bbb815857d0
parentd2f21a2bf5bfc5f89034fa3696fc661e5ceec6c8
[analyzer] LoopUnrolling: update the matched assignment operators

Extended the matched assignment operators when checking for bound changes in a body of the loop by using the freshly added isAssignmentOperator matcher.
This covers all the (current) possible assignments, tests added as well.

Differential Revision: https://reviews.llvm.org/D38921

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328619 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/LoopUnrolling.cpp
test/Analysis/loop-unrolling.cpp