From 4266d314434f456ca5825b805632e7392032e09f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 21 Jan 2020 18:02:23 -0500 Subject: [PATCH] Internals: Add VL_OVERRIDE to includes. No functional change intended. --- include/verilated_cov.cpp | 6 +++--- include/verilated_save.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/verilated_cov.cpp b/include/verilated_cov.cpp index 35d2ea2cc..cfa129a0c 100644 --- a/include/verilated_cov.cpp +++ b/include/verilated_cov.cpp @@ -73,12 +73,12 @@ private: public: // METHODS // cppcheck-suppress truncLongCastReturn - virtual vluint64_t count() const { return *m_countp; } - virtual void zero() const { *m_countp = 0; } + virtual vluint64_t count() const VL_OVERRIDE { return *m_countp; } + virtual void zero() const VL_OVERRIDE { *m_countp = 0; } // CONSTRUCTORS // cppcheck-suppress noExplicitConstructor VerilatedCoverItemSpec(T* countp) : m_countp(countp) { *m_countp = 0; } - virtual ~VerilatedCoverItemSpec() {} + virtual ~VerilatedCoverItemSpec() VL_OVERRIDE {} }; //============================================================================= diff --git a/include/verilated_save.h b/include/verilated_save.h index 0d23f4ebc..e755b77b0 100644 --- a/include/verilated_save.h +++ b/include/verilated_save.h @@ -164,12 +164,12 @@ private: public: // CONSTRUCTORS VerilatedSave() { m_fd = -1; } - virtual ~VerilatedSave() { close(); } + virtual ~VerilatedSave() VL_OVERRIDE { close(); } // METHODS void open(const char* filenamep) VL_MT_UNSAFE_ONE; ///< Open the file; call isOpen() to see if errors void open(const std::string& filename) VL_MT_UNSAFE_ONE { open(filename.c_str()); } - virtual void close() VL_MT_UNSAFE_ONE; - virtual void flush() VL_MT_UNSAFE_ONE; + virtual void close() VL_OVERRIDE VL_MT_UNSAFE_ONE; + virtual void flush() VL_OVERRIDE VL_MT_UNSAFE_ONE; }; //============================================================================= @@ -183,14 +183,14 @@ private: public: // CONSTRUCTORS VerilatedRestore() { m_fd = -1; } - virtual ~VerilatedRestore() { close(); } + virtual ~VerilatedRestore() VL_OVERRIDE { close(); } // METHODS void open(const char* filenamep) VL_MT_UNSAFE_ONE; ///< Open the file; call isOpen() to see if errors void open(const std::string& filename) VL_MT_UNSAFE_ONE { open(filename.c_str()); } - virtual void close() VL_MT_UNSAFE_ONE; - virtual void flush() VL_MT_UNSAFE_ONE {} - virtual void fill() VL_MT_UNSAFE_ONE; + virtual void close() VL_OVERRIDE VL_MT_UNSAFE_ONE; + virtual void flush() VL_OVERRIDE VL_MT_UNSAFE_ONE {} + virtual void fill() VL_OVERRIDE VL_MT_UNSAFE_ONE; }; //=============================================================================