[PATCH] Use 'auto const&' for iterators whose deref operator returns a const var
Tareq A. Siraj
tareq.a.siraj at intel.com
Mon Apr 8 13:37:06 PDT 2013
Hi revane,
Check if the dereference operator for the iterator returns a const
element and use 'auto const &' in such cases.
Fixes: 15601
http://llvm-reviews.chandlerc.com/D641
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/iterator.cpp
test/cpp11-migrate/LoopConvert/naming-conflict.cpp
test/cpp11-migrate/LoopConvert/single-iterator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D641.1.patch
Type: text/x-patch
Size: 11019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130408/e919e7ed/attachment.bin>
More information about the cfe-commits
mailing list