mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2024-12-22 12:12:05 +00:00
Merge pull request #7 from lioncash/override
src: Amend missing override specifiers
This commit is contained in:
commit
2035d25bef
3 changed files with 12 additions and 12 deletions
|
@ -16,12 +16,12 @@ namespace Sirit {
|
||||||
class LiteralNumber : public Operand {
|
class LiteralNumber : public Operand {
|
||||||
public:
|
public:
|
||||||
LiteralNumber(std::type_index type);
|
LiteralNumber(std::type_index type);
|
||||||
~LiteralNumber();
|
~LiteralNumber() override;
|
||||||
|
|
||||||
virtual void Fetch(Stream& stream) const;
|
void Fetch(Stream& stream) const override;
|
||||||
virtual u16 GetWordCount() const;
|
u16 GetWordCount() const override;
|
||||||
|
|
||||||
virtual bool operator==(const Operand& other) const;
|
bool operator==(const Operand& other) const override;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static LiteralNumber* Create(T value) {
|
static LiteralNumber* Create(T value) {
|
||||||
|
|
|
@ -15,12 +15,12 @@ namespace Sirit {
|
||||||
class LiteralString : public Operand {
|
class LiteralString : public Operand {
|
||||||
public:
|
public:
|
||||||
LiteralString(const std::string& string);
|
LiteralString(const std::string& string);
|
||||||
~LiteralString();
|
~LiteralString() override;
|
||||||
|
|
||||||
virtual void Fetch(Stream& stream) const;
|
void Fetch(Stream& stream) const override;
|
||||||
virtual u16 GetWordCount() const;
|
u16 GetWordCount() const override;
|
||||||
|
|
||||||
virtual bool operator==(const Operand& other) const;
|
bool operator==(const Operand& other) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string string;
|
const std::string string;
|
||||||
|
|
8
src/op.h
8
src/op.h
|
@ -17,12 +17,12 @@ namespace Sirit {
|
||||||
class Op : public Operand {
|
class Op : public Operand {
|
||||||
public:
|
public:
|
||||||
explicit Op(spv::Op opcode, std::optional<u32> id = {}, Id result_type = nullptr);
|
explicit Op(spv::Op opcode, std::optional<u32> id = {}, Id result_type = nullptr);
|
||||||
~Op();
|
~Op() override;
|
||||||
|
|
||||||
virtual void Fetch(Stream& stream) const;
|
void Fetch(Stream& stream) const override;
|
||||||
virtual u16 GetWordCount() const;
|
u16 GetWordCount() const override;
|
||||||
|
|
||||||
virtual bool operator==(const Operand& other) const;
|
bool operator==(const Operand& other) const override;
|
||||||
|
|
||||||
void Write(Stream& stream) const;
|
void Write(Stream& stream) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue