diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-05 20:52:13 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-10-05 20:52:13 +0000 |
commit | 8b76113f052374afc008c76a6f8d3c629b499239 (patch) | |
tree | d79e94a02f824088c91ee64e237d2e602791737a /llvm/docs/HowToSetUpLLVMStyleRTTI.rst | |
parent | 9dd4687fcc6a52c0429a032e98c1efa6f8147890 (diff) | |
download | bcm5719-llvm-8b76113f052374afc008c76a6f8d3c629b499239.tar.gz bcm5719-llvm-8b76113f052374afc008c76a6f8d3c629b499239.zip |
HowToSetUpLLVMStyleRTTI.rst: remove unneeded semicolons in code examples.
llvm-svn: 165335
Diffstat (limited to 'llvm/docs/HowToSetUpLLVMStyleRTTI.rst')
-rw-r--r-- | llvm/docs/HowToSetUpLLVMStyleRTTI.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/docs/HowToSetUpLLVMStyleRTTI.rst b/llvm/docs/HowToSetUpLLVMStyleRTTI.rst index b64f9e9716d..b5c1b78afeb 100644 --- a/llvm/docs/HowToSetUpLLVMStyleRTTI.rst +++ b/llvm/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; } |