[llvm-commits] [llvm] r165335 - /llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst
Sean Silva
silvas at purdue.edu
Fri Oct 5 14:19:20 PDT 2012
Thanks for fixing this up.
-- Sean Silva
On Fri, Oct 5, 2012 at 4:52 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> Author: gribozavr
> Date: Fri Oct 5 15:52:13 2012
> New Revision: 165335
>
> URL: http://llvm.org/viewvc/llvm-project?rev=165335&view=rev
> Log:
> HowToSetUpLLVMStyleRTTI.rst: remove unneeded semicolons in code examples.
>
> Modified:
> llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst
>
> Modified: llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst?rev=165335&r1=165334&r2=165335&view=diff
> ==============================================================================
> --- llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst (original)
> +++ llvm/trunk/docs/HowToSetUpLLVMStyleRTTI.rst Fri Oct 5 15:52:13 2012
> @@ -36,7 +36,7 @@
>
> class Shape {
> public:
> - Shape() {};
> + Shape() {}
> virtual double computeArea() = 0;
> };
>
> @@ -86,7 +86,7 @@
> +public:
> + ShapeKind getKind() const { return Kind; }
> +
> - Shape() {};
> + Shape() {}
> virtual double computeArea() = 0;
> };
>
> @@ -130,8 +130,8 @@
> 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 @@
> 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; }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list