llvm-project/clang-tools-extra/cpp11-migrate
Edwin Vane 4f05d7143f Have LoopConvert use 'auto &&' where necessary
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
2013-03-07 16:22:05 +00:00
..
LoopConvert Have LoopConvert use 'auto &&' where necessary 2013-03-07 16:22:05 +00:00
UseAuto Added summary option to cpp11-migrate tool 2013-03-05 00:12:33 +00:00
UseNullptr Fixed Use-Nullptr when replacing return(0) 2013-03-06 14:51:34 +00:00
CMakeLists.txt Introducing Use-Auto transform for cpp11-migrate 2013-02-28 16:29:24 +00:00
Cpp11Migrate.cpp Added summary option to cpp11-migrate tool 2013-03-05 00:12:33 +00:00
Makefile Introducing Use-Auto transform for cpp11-migrate 2013-02-28 16:29:24 +00:00
Transform.cpp Propagate changes through no-op transforms 2013-02-15 19:38:28 +00:00
Transform.h Added summary option to cpp11-migrate tool 2013-03-05 00:12:33 +00:00
Transforms.cpp Introducing Use-Auto transform for cpp11-migrate 2013-02-28 16:29:24 +00:00
Transforms.h Port loop-convert into cpp11-migrate 2013-01-04 18:25:18 +00:00