Adding the AddOverride transform for cpp11-migrate
This transform adds the override specifier to methods that overrides virtual
methods from a base class that don't already have this specifier.
Author: Philip Dunstan <phil@phildunstan.com>
llvm-svn: 179127
diff --git a/clang-tools-extra/docs/cpp11-migrate.rst b/clang-tools-extra/docs/cpp11-migrate.rst
index 6e787f2..70e8336 100644
--- a/clang-tools-extra/docs/cpp11-migrate.rst
+++ b/clang-tools-extra/docs/cpp11-migrate.rst
@@ -10,6 +10,7 @@
UseAutoTransform
UseNullptrTransform
LoopConvertTransform
+ AddOverrideTransform
:program:`cpp11-migrate` is a standalone tool used to automatically convert
C++98 and C++03 code to use features of the new C++11 standard where
@@ -51,6 +52,13 @@
Replace the type specifier of variable declarations with the ``auto`` type
specifier. See :doc:`UseAutoTransform`.
+.. option:: -add-override
+
+ Adds the override specifier to member functions where it is appropriate. That
+ is, the override specifier is added to member functions that override a
+ virtual function in a base class and that don't already have the specifier.
+ See :doc:`AddOverrideTransform`.
+
.. option:: -p=<build-path>
``<build-path>`` is a CMake build directory containing a file named