summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/AddOverrideTransform.rst
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-05-14 17:34:12 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-05-14 17:34:12 +0000
commitba6a0960ea9af44f398827a6f6b8795b5e90154c (patch)
tree2036fc015e19ba5a44db3c680a437fab439c2dfc /clang-tools-extra/docs/AddOverrideTransform.rst
parent2dca82ad1c89083328d87487ee5db8b361bae6c0 (diff)
downloadbcm5719-llvm-ba6a0960ea9af44f398827a6f6b8795b5e90154c.tar.gz
bcm5719-llvm-ba6a0960ea9af44f398827a6f6b8795b5e90154c.zip
cpp11-migrate: Add override specifier before comments on inline methods
This commit fixes a "FIXME" in the add-override transform. ' override' was misplaced when a comment was between the function body and the end of the 'prototype'. It also remove duplicated check for the main file from the last commit (and fixes the typo in the comment above). Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 181806
Diffstat (limited to 'clang-tools-extra/docs/AddOverrideTransform.rst')
-rw-r--r--clang-tools-extra/docs/AddOverrideTransform.rst15
1 files changed, 6 insertions, 9 deletions
diff --git a/clang-tools-extra/docs/AddOverrideTransform.rst b/clang-tools-extra/docs/AddOverrideTransform.rst
index 8057f2fda1c..ea537fefc0f 100644
--- a/clang-tools-extra/docs/AddOverrideTransform.rst
+++ b/clang-tools-extra/docs/AddOverrideTransform.rst
@@ -28,20 +28,17 @@ For example:
Known Limitations
-----------------
-* This transform will fail if a method declaration has an inlined method
- body and there is a comment between the method declaration and the body.
- In this case, the override keyword will incorrectly be inserted at the
- end of the comment.
+* This transform will not insert the override keyword if a method is
+ pure. At the moment it's not possible to track down the pure
+ specifier location.
.. code-block:: c++
class B : public A {
public:
- virtual void h() const // comment
- { }
+ virtual void h() const = 0;
- // The declaration of h is transformed to
- virtual void h() const // comment override
- { }
+ // The declaration of h is NOT transformed to
+ virtual void h() const override = 0;
};
OpenPOWER on IntegriCloud