llvm.org GIT mirror llvm / 07d1c21
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 Dmitri Gribenko 6 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3535
3636 class Shape {
3737 public:
38 Shape() {};
38 Shape() {}
3939 virtual double computeArea() = 0;
4040 };
4141
8585 +public:
8686 + ShapeKind getKind() const { return Kind; }
8787 +
88 Shape() {};
88 Shape() {}
8989 virtual double computeArea() = 0;
9090 };
9191
129129 public:
130130 ShapeKind getKind() const { return Kind; }
131131
132 - Shape() {};
133 + Shape(ShapeKind K) : Kind(K) {};
132 - Shape() {}
133 + Shape(ShapeKind K) : Kind(K) {}
134134 virtual double computeArea() = 0;
135135 };
136136
171171 public:
172172 ShapeKind getKind() const { return Kind; }
173173
174 Shape(ShapeKind K) : Kind(K) {};
174 Shape(ShapeKind K) : Kind(K) {}
175175 virtual double computeArea() = 0;
176176 +
177177 + static bool classof(const Shape *) { return true; }