[PATCH] Introducing Use-Auto transform for cpp11-migrate

Edwin Vane edwin.vane at intel.com
Wed Feb 27 07:56:23 PST 2013


Hi gribozavr, silvas, klimek,

The new Use-Auto transform replaces the type specifier for variable
declarations with the special C++11 'auto' type specifier. For now, the
replacement is done only for variables that are iterators of any of the
std containers and only if the type used is one of those explicitly
allowed by the standard (i.e. not an implementation-specific type).

http://llvm-reviews.chandlerc.com/D472

Files:
  cpp11-migrate/CMakeLists.txt
  cpp11-migrate/Makefile
  cpp11-migrate/Transforms.cpp
  cpp11-migrate/UseAuto/UseAuto.cpp
  cpp11-migrate/UseAuto/UseAuto.h
  cpp11-migrate/UseAuto/UseAutoActions.cpp
  cpp11-migrate/UseAuto/UseAutoActions.h
  cpp11-migrate/UseAuto/UseAutoMatchers.cpp
  cpp11-migrate/UseAuto/UseAutoMatchers.h
  test/cpp11-migrate/UseAuto/Inputs/gen_my_std.h.py
  test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py
  test/cpp11-migrate/UseAuto/iterator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D472.1.patch
Type: text/x-patch
Size: 30727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130227/eaaf993d/attachment.bin>


More information about the cfe-commits mailing list