summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/MappedIteratorTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [ADT] Rewrite mapped_iterator in terms of iterator_adaptor_base.Lang Hames2017-11-101-0/+51
| | | | | | | | | | | | | | | | | | Summary: This eliminates the boilerplate implementation of the iterator interface in mapped_iterator. This patch also adds unit tests that verify that the mapped function is applied by operator* and operator->, and that references returned by the map function are returned via operator*. Reviewers: dblaikie, chandlerc Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D39855 llvm-svn: 317902
* Revert "allow lambdas in mapped_iterator"Mike Aizatsky2016-03-171-51/+0
| | | | | | | | | | | | | | | MSVC as usual: C:\Buildbot\Slave\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\include\llvm/ADT/STLExtras.h(120): error C2100: illegal indirection C:\Buildbot\Slave\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\include\llvm/IR/Instructions.h(3966): note: see reference to class template instantiation 'llvm::mapped_iterator<llvm::User::op_iterator,llvm::CatchSwitchInst::DerefFnTy>' being compiled This reverts commit e091dd63f1f34e043748e28ad160d3bc17731168. llvm-svn: 263760
* allow lambdas in mapped_iteratorMike Aizatsky2016-03-171-0/+51
Differential Revision: http://reviews.llvm.org/D17311 llvm-svn: 263759
OpenPOWER on IntegriCloud