Merge pull request #7 from lioncash/override

src: Amend missing override specifiers
This commit is contained in:
ReinUsesLisp 2019-03-14 03:40:04 -03:00 committed by GitHub
commit 2035d25bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -16,12 +16,12 @@ namespace Sirit {
class LiteralNumber : public Operand {
public:
LiteralNumber(std::type_index type);
~LiteralNumber();
~LiteralNumber() override;
virtual void Fetch(Stream& stream) const;
virtual u16 GetWordCount() const;
void Fetch(Stream& stream) const override;
u16 GetWordCount() const override;
virtual bool operator==(const Operand& other) const;
bool operator==(const Operand& other) const override;
template <typename T>
static LiteralNumber* Create(T value) {

View file

@ -15,12 +15,12 @@ namespace Sirit {
class LiteralString : public Operand {
public:
LiteralString(const std::string& string);
~LiteralString();
~LiteralString() override;
virtual void Fetch(Stream& stream) const;
virtual u16 GetWordCount() const;
void Fetch(Stream& stream) const override;
u16 GetWordCount() const override;
virtual bool operator==(const Operand& other) const;
bool operator==(const Operand& other) const override;
private:
const std::string string;

View file

@ -17,12 +17,12 @@ namespace Sirit {
class Op : public Operand {
public:
explicit Op(spv::Op opcode, std::optional<u32> id = {}, Id result_type = nullptr);
~Op();
~Op() override;
virtual void Fetch(Stream& stream) const;
virtual u16 GetWordCount() const;
void Fetch(Stream& stream) const override;
u16 GetWordCount() const override;
virtual bool operator==(const Operand& other) const;
bool operator==(const Operand& other) const override;
void Write(Stream& stream) const;