[PATCH] D32859: [Analyzer] Iterator Checker - Part 5: Move Assignment of Containers

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 4 05:29:37 PDT 2017


baloghadamsoftware created this revision.

If a container is moved by its move assignment operator, according to the standard all their iterators except the past-end iterators remain valid but refer to the new container. This patch introduces support for this case in the iterator checkers.


https://reviews.llvm.org/D32859

Files:
  lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  test/Analysis/mismatched-iterator.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32859.97812.patch
Type: text/x-patch
Size: 10173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170504/92a43cc6/attachment.bin>


More information about the cfe-commits mailing list