[PATCH] D74760: [Analyzer] Fix for iterator modeling and checkers: handle negative numbers correctly
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 04:47:11 PST 2020
baloghadamsoftware created this revision.
baloghadamsoftware added reviewers: NoQ, Szelethus.
baloghadamsoftware added a project: clang.
Herald added subscribers: steakhal, Charusso, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, whisperity.
Currently, using negative numbers in iterator operations (additions and subractions) results in advancements with huge positive numbers due to an error. This patch fixes it.
Repository:
rC Clang
https://reviews.llvm.org/D74760
Files:
clang/lib/StaticAnalyzer/Checkers/Iterator.cpp
clang/test/Analysis/iterator-modelling.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74760.245125.patch
Type: text/x-patch
Size: 4189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200218/4bca7781/attachment.bin>
More information about the cfe-commits
mailing list