[PATCH] D74541: [Analyzer] Use note tags to track iterator increments and decrements

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 03:46:52 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.

Note tags marking the points where an iterator is incremented or decremented helps finding the root cause of iterator errors, especially out-of-range dereferences and out-of-range increments and decrements. This patch adds such tags.


Repository:
  rC Clang

https://reviews.llvm.org/D74541

Files:
  clang/lib/StaticAnalyzer/Checkers/DebugIteratorModeling.cpp
  clang/lib/StaticAnalyzer/Checkers/IteratorModeling.cpp
  clang/test/Analysis/iterator-modelling.cpp
  clang/test/Analysis/iterator-range.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74541.244381.patch
Type: text/x-patch
Size: 129081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200213/efcac440/attachment-0001.bin>


More information about the cfe-commits mailing list