aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-04-27 13:41:02 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-04-27 13:41:02 +0000
commit395b0af62f902fc1bb26cd7084fb52f5054150d4 (patch)
treee1decb75fb211c0ea381c9e5ca39f4268c4ed7d1 /docs
parent99d2eb487f8d9fbb4e74d0b7154eff5b2232e10f (diff)
Documentation: add an idea for a cpp14-migrate transform for N3421
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ClangTools.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ClangTools.rst b/docs/ClangTools.rst
index d7f03a53ae..9312e6baf0 100644
--- a/docs/ClangTools.rst
+++ b/docs/ClangTools.rst
@@ -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<>());
+