[PATCH] Have LoopConvert use 'auto &&' where necessary
Edwin Vane
edwin.vane at intel.com
Wed Mar 6 11:57:22 PST 2013
Hi gribozavr, klimek,
For iterators where the dereference operator returns by value,
LoopConvert should use 'auto &&' in the range-based for loop expression.
Moved test case from iterator_failing.cpp to iterator.cpp and added
extra tests.
Fixes PR15437.
http://llvm-reviews.chandlerc.com/D500
Files:
cpp11-migrate/LoopConvert/LoopActions.cpp
cpp11-migrate/LoopConvert/LoopActions.h
cpp11-migrate/LoopConvert/LoopMatchers.cpp
cpp11-migrate/LoopConvert/LoopMatchers.h
test/cpp11-migrate/LoopConvert/Inputs/structures.h
test/cpp11-migrate/LoopConvert/iterator.cpp
test/cpp11-migrate/LoopConvert/iterator_failing.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D500.1.patch
Type: text/x-patch
Size: 10471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130306/f59e6fe8/attachment.bin>
More information about the cfe-commits
mailing list