Introducing Use-Auto transform for cpp11-migrate
authorEdwin Vane <edwin.vane@intel.com>
Thu, 28 Feb 2013 16:29:24 +0000 (16:29 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Thu, 28 Feb 2013 16:29:24 +0000 (16:29 +0000)
commit266b625ca90de49dac72022232deac1a59f09ccd
treec1d3ec4cf38c7f06d5205ee702e0f5c4d85e09a6
parent3305b177e6b62e54efb3fa92b5cafbc0c58df981
Introducing Use-Auto transform for cpp11-migrate

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).

Reviewers: gribozavr, silvas, klimek
llvm-svn: 176266
12 files changed:
clang-tools-extra/cpp11-migrate/CMakeLists.txt
clang-tools-extra/cpp11-migrate/Makefile
clang-tools-extra/cpp11-migrate/Transforms.cpp
clang-tools-extra/cpp11-migrate/UseAuto/UseAuto.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/UseAuto/UseAuto.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/UseAuto/UseAutoActions.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/UseAuto/UseAutoActions.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/UseAuto/UseAutoMatchers.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/UseAuto/UseAutoMatchers.h [new file with mode: 0644]
clang-tools-extra/test/cpp11-migrate/UseAuto/Inputs/gen_my_std.h.py
clang-tools-extra/test/cpp11-migrate/UseAuto/gen_basic_std_iterator_tests.cpp.py
clang-tools-extra/test/cpp11-migrate/UseAuto/iterator.cpp [new file with mode: 0644]