cpp11-migrate: Add Replace-AutoPtr Transform
authorEdwin Vane <edwin.vane@intel.com>
Wed, 3 Jul 2013 13:21:24 +0000 (13:21 +0000)
committerEdwin Vane <edwin.vane@intel.com>
Wed, 3 Jul 2013 13:21:24 +0000 (13:21 +0000)
commit5ee6110817632f0e883305ad9f17ce850e96c83e
treeb68deea8c56b29c1edd883d8a153e6e19bb92ab0
parent4eca75df00fe2e52b4be5ee4952872ec460641a2
cpp11-migrate: Add Replace-AutoPtr Transform

Add a new transform to replace uses of 'std::auto_ptr' by 'std::unique_ptr'.
Copy-ctor and assign-operator are wrapped with a call to 'std::move()'.

Note that until header modification is ready it is not that useful, that's why
it's marked as (EXPERIMENTAL) in the command line description and a "Known
Limitations" section is present in the transform documentation.

Author: Guillaume Papin <guillaume.papin@epitech.eu>
llvm-svn: 185535
18 files changed:
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtr.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtr.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrActions.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrActions.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrMatchers.cpp [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrMatchers.h [new file with mode: 0644]
clang-tools-extra/cpp11-migrate/tool/CMakeLists.txt
clang-tools-extra/cpp11-migrate/tool/Cpp11Migrate.cpp
clang-tools-extra/cpp11-migrate/tool/Makefile
clang-tools-extra/docs/MigratorUsage.rst
clang-tools-extra/docs/README.txt
clang-tools-extra/docs/ReplaceAutoPtrTransform.rst [new file with mode: 0644]
clang-tools-extra/docs/cpp11-migrate.rst
clang-tools-extra/test/cpp11-migrate/ReplaceAutoPtr/Inputs/basic.h [new file with mode: 0644]
clang-tools-extra/test/cpp11-migrate/ReplaceAutoPtr/Inputs/memory_stub.h [new file with mode: 0644]
clang-tools-extra/test/cpp11-migrate/ReplaceAutoPtr/basic.cpp [new file with mode: 0644]
clang-tools-extra/test/cpp11-migrate/ReplaceAutoPtr/move.cpp [new file with mode: 0644]
clang-tools-extra/test/cpp11-migrate/ReplaceAutoPtr/template_fail.cpp [new file with mode: 0644]