[PATCH] Have LoopConvert use 'auto &&' where necessary
Edwin Vane
edwin.vane at intel.com
Thu Mar 7 08:18:29 PST 2013
- Prevent transformation of loops where iterator dereferences to an rvalue
reference.
- Added comment explaining why rvalue references are used if the
iterator's operator*() returns by value.
Hi gribozavr, klimek,
http://llvm-reviews.chandlerc.com/D500
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D500?vs=1199&id=1206#toc
BRANCH
loop_const
ARCANIST PROJECT
clang-tools-extra
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.2.patch
Type: text/x-patch
Size: 11591 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130307/dbcd9e8b/attachment.bin>
More information about the cfe-commits
mailing list