summaryrefslogtreecommitdiffstats
path: root/clang/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
commitd3c5a51e9de9ff92403baad732657a4d82d414ce (patch)
tree7158af76eb3e2a998fb48a4b82122ee6558a18b7 /clang/docs
parent72e122607faeb48109534fbc3ab3d47ab811f9e0 (diff)
downloadbcm5719-llvm-d3c5a51e9de9ff92403baad732657a4d82d414ce.tar.gz
bcm5719-llvm-d3c5a51e9de9ff92403baad732657a4d82d414ce.zip
Documentation: add an idea for a cpp14-migrate transform for N3421
llvm-svn: 180672
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ClangTools.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/docs/ClangTools.rst b/clang/docs/ClangTools.rst
index d7f03a53ae4..9312e6baf09 100644
--- a/clang/docs/ClangTools.rst
+++ b/clang/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<>());
+
OpenPOWER on IntegriCloud