summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/cpp11-migrate/LoopConvert/iterator_failing.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Have LoopConvert use 'auto &&' where necessaryEdwin Vane2013-03-071-14/+0
| | | | | | | | | | | | | | | | For iterators where the dereference operator returns by value, LoopConvert should use 'auto &&' in the range-based for loop expression. If the dereference operator returns an rvalue reference, this is deemed too strange and the for loop is not converted. Moved test case from iterator_failing.cpp to iterator.cpp and added extra tests. Fixes PR15437. Reviewer: gribozavr llvm-svn: 176631
* Adding failing LoopConvert testcaseEdwin Vane2013-03-041-0/+14
LoopConvert isn't properly handling iterators whose dereference operator returns by value. This test case demonstrates the failure. See PR15437. llvm-svn: 176437
OpenPOWER on IntegriCloud