summaryrefslogtreecommitdiff
path: root/docs/HowToSetUpLLVMStyleRTTI.rst
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-10-05 20:52:13 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-10-05 20:52:13 +0000
commit07d1c21bc62069cd9cdcee39dfed05c5c05df02a (patch)
treeb954c7f281025dac38f3ea1a66df9acddc5beb2a /docs/HowToSetUpLLVMStyleRTTI.rst
parent038c43be0be3d5582cecee0cf283a486d6dfe180 (diff)
HowToSetUpLLVMStyleRTTI.rst: remove unneeded semicolons in code examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/HowToSetUpLLVMStyleRTTI.rst')
-rw-r--r--docs/HowToSetUpLLVMStyleRTTI.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/HowToSetUpLLVMStyleRTTI.rst b/docs/HowToSetUpLLVMStyleRTTI.rst
index b64f9e9716d..b5c1b78afeb 100644
--- a/docs/HowToSetUpLLVMStyleRTTI.rst
+++ b/docs/HowToSetUpLLVMStyleRTTI.rst
@@ -36,7 +36,7 @@ RTTI for this class hierarchy:
class Shape {
public:
- Shape() {};
+ Shape() {}
virtual double computeArea() = 0;
};
@@ -86,7 +86,7 @@ steps:
+public:
+ ShapeKind getKind() const { return Kind; }
+
- Shape() {};
+ Shape() {}
virtual double computeArea() = 0;
};
@@ -130,8 +130,8 @@ steps:
public:
ShapeKind getKind() const { return Kind; }
- - Shape() {};
- + Shape(ShapeKind K) : Kind(K) {};
+ - Shape() {}
+ + Shape(ShapeKind K) : Kind(K) {}
virtual double computeArea() = 0;
};
@@ -172,7 +172,7 @@ steps:
public:
ShapeKind getKind() const { return Kind; }
- Shape(ShapeKind K) : Kind(K) {};
+ Shape(ShapeKind K) : Kind(K) {}
virtual double computeArea() = 0;
+
+ static bool classof(const Shape *) { return true; }