Extension of the mismatched iterator checker for constructors taking range of first..last (first and last must be iterators of the same container) and also for comparisons of iterators of different containers (one does not compare iterators of different containers, since the set of iterators is partially ordered, there are no relations between iterators of different containers, except that they are always non-equal).
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
This looks clear to me.
lib/StaticAnalyzer/Checkers/IteratorChecker.cpp | ||
---|---|---|
640–641 | C.getSVal(CCE->getArg(0)) etc. Or, even better, use PreCall and CallEvent(?) |
C.getSVal(CCE->getArg(0)) etc. Or, even better, use PreCall and CallEvent(?)