summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/AddOverrideTransform.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/docs/AddOverrideTransform.rst')
-rw-r--r--clang-tools-extra/docs/AddOverrideTransform.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/AddOverrideTransform.rst b/clang-tools-extra/docs/AddOverrideTransform.rst
index ea537fefc0f..03f9494e23f 100644
--- a/clang-tools-extra/docs/AddOverrideTransform.rst
+++ b/clang-tools-extra/docs/AddOverrideTransform.rst
@@ -25,6 +25,16 @@ For example:
void h() const override;
};
+Using Expands-to-Override Macros
+--------------------------------
+
+Like LLVM's ``LLVM_OVERRIDE``, several projects have macros that conditionally
+expand to the ``override`` keyword when compiling with C++11 features enabled.
+To maintain compatibility with non-C++11 builds, the Add-Override Transform
+supports detection and use of these macros instead of using the ``override``
+keyword directly. Specify ``-override-macros`` on the command line to the
+Migrator to enable this behavior.
+
Known Limitations
-----------------
OpenPOWER on IntegriCloud