diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-03-03 17:54:36 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-03-03 17:54:36 +0000 |
commit | d0d6f64aeef3acc41b1df622fd225bbabc9e9a01 (patch) | |
tree | de56574c7da40cdb9a3edbd4901d55a3ae419381 | |
parent | b00150a17ac3613ea3a23922910840fe17abadbc (diff) |
Add an idea for a cpp11-migrate tool: TR1 migration
Idea by Marshall Clow.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176423 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/ClangTools.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/ClangTools.rst b/docs/ClangTools.rst index e22fa0b8c7..b7f7c7b046 100644 --- a/docs/ClangTools.rst +++ b/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 <tr1/unordered_map> + int main() + { + std::tr1::unordered_map <int, int> ma; + std::cout << ma.size () << std::endl; + return 0; + } + + should be rewritten to: + + .. code-block:: c++ + + #include <unordered_map> + int main() + { + std::unordered_map <int, int> 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 |