[PATCH] D28771: [Analyzer] Various fixes for the IteratorPastEnd checker

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 05:51:23 PST 2017


baloghadamsoftware created this revision.
baloghadamsoftware added reviewers: zaks.anna, NoQ.
baloghadamsoftware added subscribers: xazax.hun, o.gyorgy, cfe-commits.

This patch fixes some issues for the IteratorPastEnd checkers. There are basically two main issues this patch targets: one is the handling of assignments between iterators, the other one is correct handling of the +, +=, - and -= operators of random-access iterators. The handling of these operators also checks the sign of the argument, e.g. a negative number for + or += is handled as decrementation.


https://reviews.llvm.org/D28771

Files:
  lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp
  test/Analysis/Inputs/system-header-simulator-cxx.h
  test/Analysis/diagnostics/explicit-suppression.cpp
  test/Analysis/iterator-past-end.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28771.84552.patch
Type: text/x-patch
Size: 20489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170116/617a2019/attachment-0001.bin>


More information about the cfe-commits mailing list