llvm-project
2fe75856 - [clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (#132596)

Commit
271 days ago
[clang][analyzer] Improve the modeling of insert in MismatchedIteratorChecker (#132596) Fixes #132010 Associative containers in STL has an unique `insert` overload member function comparing to un-associative containers(https://en.cppreference.com/w/cpp/container/unordered_set/insert): ``` template< class InputIt > void insert( InputIt first, InputIt last ); ``` Add support for this `insert` overload in `MismatchedIteratorChecker`, verify if `first` and `last` belongs to the same container in this case.
Author
Parents
Loading