From 80bfa95d5bcd28a288fcfa8d87e476f3a5e778b4 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sun, 3 Mar 2013 17:54:36 +0000 Subject: [PATCH] Add an idea for a cpp11-migrate tool: TR1 migration Idea by Marshall Clow. llvm-svn: 176423 --- clang/docs/ClangTools.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/clang/docs/ClangTools.rst b/clang/docs/ClangTools.rst index e22fa0b..b7f7c7b0 100644 --- a/clang/docs/ClangTools.rst +++ b/clang/docs/ClangTools.rst @@ -120,6 +120,31 @@ 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. +* ``tr1`` removal tool. Will migrate source code from using TR1 library + features to C++11 library. For example: + + .. code-block:: c++ + + #include + int main() + { + std::tr1::unordered_map ma; + std::cout << ma.size () << std::endl; + return 0; + } + + should be rewritten to: + + .. code-block:: c++ + + #include + int main() + { + std::unordered_map ma; + std::cout << ma.size () << std::endl; + return 0; + } + * A tool to remove ``auto``. Will convert ``auto`` to an explicit type or add comments with deduced types. The motivation is that there are developers that don't want to use ``auto`` because they are afraid that they might lose -- 2.7.4