From 6ffbb7cabf4881c2488d85741cceb123068fd24c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 11 Jun 2019 18:31:06 -0400 Subject: [PATCH] Internals: Remove extra semicolons. No functional change. --- include/verilated_fst_c.cpp | 2 +- include/verilated_vcd_c.cpp | 2 +- include/verilated_vcd_c.h | 6 +++--- src/V3AstNodes.h | 10 +++++----- src/V3Number.h | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/verilated_fst_c.cpp b/include/verilated_fst_c.cpp index bbd7d737b..9a0ec2806 100644 --- a/include/verilated_fst_c.cpp +++ b/include/verilated_fst_c.cpp @@ -63,7 +63,7 @@ protected: VerilatedFstCallInfo(VerilatedFstCallback_t icb, VerilatedFstCallback_t fcb, VerilatedFstCallback_t changecb, void* ut, vluint32_t code) - : m_initcb(icb), m_fullcb(fcb), m_changecb(changecb), m_userthis(ut), m_code(code) {}; + : m_initcb(icb), m_fullcb(fcb), m_changecb(changecb), m_userthis(ut), m_code(code) {} ~VerilatedFstCallInfo() {} }; diff --git a/include/verilated_vcd_c.cpp b/include/verilated_vcd_c.cpp index e1604b50c..1d498b30e 100644 --- a/include/verilated_vcd_c.cpp +++ b/include/verilated_vcd_c.cpp @@ -105,7 +105,7 @@ protected: VerilatedVcdCallInfo(VerilatedVcdCallback_t icb, VerilatedVcdCallback_t fcb, VerilatedVcdCallback_t changecb, void* ut, vluint32_t code) - : m_initcb(icb), m_fullcb(fcb), m_changecb(changecb), m_userthis(ut), m_code(code) {}; + : m_initcb(icb), m_fullcb(fcb), m_changecb(changecb), m_userthis(ut), m_code(code) {} ~VerilatedVcdCallInfo() {} }; diff --git a/include/verilated_vcd_c.h b/include/verilated_vcd_c.h index 6099484a2..1da18f6d1 100644 --- a/include/verilated_vcd_c.h +++ b/include/verilated_vcd_c.h @@ -162,7 +162,7 @@ public: // ACCESSORS /// Set size in megabytes after which new file should be created - void rolloverMB(vluint64_t rolloverMB) { m_rolloverMB=rolloverMB; }; + void rolloverMB(vluint64_t rolloverMB) { m_rolloverMB=rolloverMB; } /// Is file open? bool isOpen() const { return m_isOpen; } /// Change character that splits scopes. Note whitespace are ALWAYS escapes. @@ -440,7 +440,7 @@ public: /// "cat" to be used to combine the header plus any number of data files. void openNext(bool incFilename=true) VL_MT_UNSAFE_ONE { m_sptrace.openNext(incFilename); } /// Set size in megabytes after which new file should be created - void rolloverMB(size_t rolloverMB) { m_sptrace.rolloverMB(rolloverMB); }; + void rolloverMB(size_t rolloverMB) { m_sptrace.rolloverMB(rolloverMB); } /// Close dump void close() VL_MT_UNSAFE_ONE { m_sptrace.close(); } /// Flush dump @@ -462,7 +462,7 @@ public: void set_time_resolution(const std::string& unit) { set_time_resolution(unit.c_str()); } /// Internal class access - inline VerilatedVcd* spTrace() { return &m_sptrace; }; + inline VerilatedVcd* spTrace() { return &m_sptrace; } }; #endif // guard diff --git a/src/V3AstNodes.h b/src/V3AstNodes.h index 4a0566849..95d83248d 100644 --- a/src/V3AstNodes.h +++ b/src/V3AstNodes.h @@ -693,7 +693,7 @@ public: AstStructDType(FileLine* fl, AstNumeric numericUnpack) : AstNodeClassDType(fl, numericUnpack) {} ASTNODE_NODE_FUNCS(StructDType) - virtual string verilogKwd() const { return "struct"; }; + virtual string verilogKwd() const { return "struct"; } }; class AstUnionDType : public AstNodeClassDType { @@ -702,7 +702,7 @@ public: AstUnionDType(FileLine* fl, AstNumeric numericUnpack) : AstNodeClassDType(fl, numericUnpack) {} ASTNODE_NODE_FUNCS(UnionDType) - virtual string verilogKwd() const { return "union"; }; + virtual string verilogKwd() const { return "union"; } }; class AstMemberDType : public AstNodeDType { @@ -3095,7 +3095,7 @@ public: explicit AstBreak(FileLine* fileline) : AstNodeStmt(fileline) {} ASTNODE_NODE_FUNCS(Break) - virtual string verilogKwd() const { return "break"; }; + virtual string verilogKwd() const { return "break"; } virtual V3Hash sameHash() const { return V3Hash(); } virtual bool isBrancher() const { return true; } // SPECIAL: We don't process code after breaks }; @@ -3105,7 +3105,7 @@ public: explicit AstContinue(FileLine* fileline) : AstNodeStmt(fileline) {} ASTNODE_NODE_FUNCS(Continue) - virtual string verilogKwd() const { return "continue"; }; + virtual string verilogKwd() const { return "continue"; } virtual V3Hash sameHash() const { return V3Hash(); } virtual bool isBrancher() const { return true; } // SPECIAL: We don't process code after breaks }; @@ -3129,7 +3129,7 @@ public: setNOp1p(lhsp); } ASTNODE_NODE_FUNCS(Return) - virtual string verilogKwd() const { return "return"; }; + virtual string verilogKwd() const { return "return"; } virtual V3Hash sameHash() const { return V3Hash(); } AstNode* lhsp() const { return op1p(); } virtual bool isBrancher() const { return true; } // SPECIAL: We don't process code after breaks diff --git a/src/V3Number.h b/src/V3Number.h index d1e63e9f9..98b53d5e5 100644 --- a/src/V3Number.h +++ b/src/V3Number.h @@ -51,7 +51,7 @@ class V3Number { void opCleanThis(bool warnOnTruncation = false); public: void nodep(AstNode* nodep) { setNames(nodep); } - FileLine* fileline() const { return m_fileline; }; + FileLine* fileline() const { return m_fileline; } V3Number& setZero(); V3Number& setQuad(vluint64_t value); V3Number& setLong(uint32_t value);