diff --git a/include/verilated_cov.h b/include/verilated_cov.h index d7bc1b993..c55d32cd8 100644 --- a/include/verilated_cov.h +++ b/include/verilated_cov.h @@ -157,8 +157,8 @@ protected: friend class VerilatedCovImp; // CONSTRUCTORS // Internal: Only made as part of VerilatedCovImp - VerilatedCovContext() {} - virtual ~VerilatedCovContext() {} + VerilatedCovContext() = default; + virtual ~VerilatedCovContext() = default; // METHODS // Internal: access to implementation class diff --git a/src/V3Active.cpp b/src/V3Active.cpp index 9f1758bbb..1b9e9534c 100644 --- a/src/V3Active.cpp +++ b/src/V3Active.cpp @@ -317,7 +317,7 @@ public: iterate(nodep); m_graph.latchCheck(nodep, kwd == VAlwaysKwd::ALWAYS_LATCH); } - virtual ~ActiveLatchCheckVisitor() {} + virtual ~ActiveLatchCheckVisitor() = default; }; //###################################################################### diff --git a/test_regress/t/TestSimulator.h b/test_regress/t/TestSimulator.h index ba4735542..2e0098e73 100644 --- a/test_regress/t/TestSimulator.h +++ b/test_regress/t/TestSimulator.h @@ -40,7 +40,7 @@ public: __LINE__, m_info.product); } } - ~TestSimulator() {} + ~TestSimulator() = default; // METHORS private: static TestSimulator& singleton() { diff --git a/test_regress/t/t_extend_class_c.h b/test_regress/t/t_extend_class_c.h index 87e21d29c..c5e98001b 100644 --- a/test_regress/t/t_extend_class_c.h +++ b/test_regress/t/t_extend_class_c.h @@ -9,8 +9,8 @@ class t_extend_class_c { public: // CONSTRUCTORS - t_extend_class_c() {} - ~t_extend_class_c() {} + t_extend_class_c() = default; + ~t_extend_class_c() = default; // METHODS // This function will be called from a instance created in Verilog inline uint32_t my_math(uint32_t in) { return in + 1; }