[PATCH] cpp11-migrate: Add Replace-AutoPtr Transform

Guillaume Papin guillaume.papin at epitech.eu
Mon Jul 1 07:15:06 PDT 2013


Hi revane,

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.

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

Files:
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtr.cpp
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtr.h
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrActions.cpp
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrActions.h
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrMatchers.cpp
  cpp11-migrate/ReplaceAutoPtr/ReplaceAutoPtrMatchers.h
  cpp11-migrate/tool/CMakeLists.txt
  cpp11-migrate/tool/Cpp11Migrate.cpp
  docs/README.txt
  docs/ReplaceAutoPtrTransform.rst
  docs/cpp11-migrate.rst
  test/cpp11-migrate/ReplaceAutoPtr/Inputs/basic.h
  test/cpp11-migrate/ReplaceAutoPtr/basic.cpp
  test/cpp11-migrate/ReplaceAutoPtr/imported_namespace_fail.cpp
  test/cpp11-migrate/ReplaceAutoPtr/libcxx_fail.cpp
  test/cpp11-migrate/ReplaceAutoPtr/move.cpp
  test/cpp11-migrate/ReplaceAutoPtr/std_inline_namespace.cpp
  test/cpp11-migrate/ReplaceAutoPtr/template_fail.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1073.1.patch
Type: text/x-patch
Size: 42453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130701/928b502a/attachment.bin>


More information about the cfe-commits mailing list