r176423 - Add an idea for a cpp11-migrate tool: TR1 migration
Dmitri Gribenko
gribozavr at gmail.com
Sun Mar 3 09:54:36 PST 2013
Author: gribozavr
Date: Sun Mar 3 11:54:36 2013
New Revision: 176423
URL: http://llvm.org/viewvc/llvm-project?rev=176423&view=rev
Log:
Add an idea for a cpp11-migrate tool: TR1 migration
Idea by Marshall Clow.
Modified:
cfe/trunk/docs/ClangTools.rst
Modified: cfe/trunk/docs/ClangTools.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangTools.rst?rev=176423&r1=176422&r2=176423&view=diff
==============================================================================
--- cfe/trunk/docs/ClangTools.rst (original)
+++ cfe/trunk/docs/ClangTools.rst Sun Mar 3 11:54:36 2013
@@ -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
More information about the cfe-commits
mailing list