]> granicus.if.org Git - clang/commitdiff
Documentation: add an idea for a cpp14-migrate transform for N3421
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 27 Apr 2013 13:41:02 +0000 (13:41 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 27 Apr 2013 13:41:02 +0000 (13:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180672 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ClangTools.rst

index d7f03a53ae4dbdd5b65560f10c8714c2ae9c170e..9312e6baf09ab5b23f44fe766f6d044b95045c8d 100644 (file)
@@ -175,3 +175,17 @@ can be incorporated into the ``auto`` transformation.  Will convert
   that don't want to use ``auto`` because they are afraid that they might lose
   control over their code.
 
+* C++14: less verbose operator function objects (`N3421
+  <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3421.htm>`_).
+  For example:
+
+  .. code-block:: c++
+
+    sort(v.begin(), v.end(), greater<ValueType>());
+
+  should be rewritten to:
+
+  .. code-block:: c++
+
+    sort(v.begin(), v.end(), greater<>());
+