diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-04-25 16:07:10 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-04-25 16:07:10 +0000 |
commit | d4aaee4a3b164a27e3695eb7e8fd0971d055bd77 (patch) | |
tree | 5988bdd11fccbde8977392c496bf552d850ed22a /docs | |
parent | fca24bc45192c254ca92ef1d7cef71a290392f31 (diff) |
Add an idea for cpp11-migrate and cpp14-migrate
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ClangTools.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/ClangTools.rst b/docs/ClangTools.rst index 39c3f5feb4..c3303c7248 100644 --- a/docs/ClangTools.rst +++ b/docs/ClangTools.rst @@ -124,6 +124,21 @@ Ideas for new Tools ``foo.begin()`` into ``begin(foo)`` and similarly for ``end()``, where ``foo`` is a standard container. We could also detect similar patterns for arrays. +* ``make_shared`` / ``make_unique`` conversion. This transformation can be + incorporated into the ``auto`` transformation. Will convert + + .. code-block:: c++ + + std::shared_ptr<Foo> sp(new Foo); + std::unique_ptr<Foo> up(new Foo); + + into: + + .. code-block:: c++ + + auto sp = std::make_shared<Foo>(); + auto up = std::make_unique<Foo>(); // In C++14 mode. + * ``tr1`` removal tool. Will migrate source code from using TR1 library features to C++11 library. For example: |