Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src
diff options
context:
space:
mode:
Commit8aaa9cbf48e4fb526d1832c12a644a64be7202df (patch)
Author
 dtrendafilov <trendafilov.dn@gmail.com>
2020-11-28 22:42:39 +0200
Committer
 GitHub <noreply@github.com>
2020-11-28 22:42:39 +0200
Filesa3acc545a4a6258d2d3e97f69b55a844272fac08 /spasm/src
IPL-8aaa9cbf48e4fb526d1832c12a644a64be7202df.tar
IPL-8aaa9cbf48e4fb526d1832c12a644a64be7202df.tar.gz
IPL-8aaa9cbf48e4fb526d1832c12a644a64be7202df.zip
Parentad0778674d9679eaf8a6d5ee84b646a6055b9a90 (diff)
Parent7eb2b8e1ec0f5aaf1854cafcb1de7f9cf7d86e3c (diff)
Merge pull request #88 from SofiaCPP/feature/clang-tidy
Feature support running clang-tidy
2 files changed, 11 insertions, 11 deletions
-rw-r--r--spasm/src/asm/bytecode.hpp20
-rw-r--r--spasm/src/asm/tokenizer.hpp2
diff --git a/spasm/src/asm/bytecode.hpp b/spasm/src/asm/bytecode.hpp
index 7d0d838..bc7f93b 100644
--- a/spasm/src/asm/bytecode.hpp
+++ b/spasm/src/asm/bytecode.hpp
@@ -31,9 +31,9 @@ class Bytecode_File : public Bytecode_Stream
public:
Bytecode_File(const std::string&);
- virtual void push_opcode(Opcode_t);
- virtual void push_integer(int64_t, int size) override;
- virtual void push_double(double) override;
+ void push_opcode(Opcode_t) override;
+ void push_integer(int64_t, int size) override;
+ void push_double(double) override;
private:
Bytecode_File(const Bytecode_File&);
@@ -47,13 +47,13 @@ class Bytecode_File : public Bytecode_Stream
class Bytecode_Memory : public Bytecode_Stream
{
public:
- virtual void push_opcode(Opcode_t);
- virtual void push_integer(int64_t, int) override;
- virtual void push_double(double) override;
- virtual void push_location(size_t);
- virtual void set_location(size_t, size_t);
- virtual void push_string(const char* s, size_t length, int size) override;
- virtual size_t size() const;
+ void push_opcode(Opcode_t) override;
+ void push_integer(int64_t, int) override;
+ void push_double(double) override;
+ void push_location(size_t) override;
+ void set_location(size_t, size_t) override;
+ void push_string(const char* s, size_t length, int size) override;
+ size_t size() const override;
typedef std::vector<Bytecode_Stream::byte> Bytecode;
const Bytecode& bytecode() const;
diff --git a/spasm/src/asm/tokenizer.hpp b/spasm/src/asm/tokenizer.hpp
index 1155db7..7bfc814 100644
--- a/spasm/src/asm/tokenizer.hpp
+++ b/spasm/src/asm/tokenizer.hpp
@@ -19,7 +19,7 @@ class Tokenizer : public TokenStream
public:
Tokenizer(std::istream&);
- virtual void push_token(const Token&);
+ void push_token(const Token&) override;
Token next_token();
private: