mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 07:33:49 +02:00
Internals: Fix remaining cppcheck errors (#6319)
Fixed the non const-related issue and added suppressions for the const ones. With that `make cppcheck` should be clean.
This commit is contained in:
+2
-1
@@ -437,6 +437,7 @@ class SplitUnpackedVarVisitor final : public VNVisitor, public SplitVarImpl {
|
||||
iterate(nodep);
|
||||
}
|
||||
}
|
||||
// cppcheck-suppress duplInheritedMember
|
||||
void pushDeletep(AstNode* nodep) { // overriding VNVisitor::pusDeletep()
|
||||
UASSERT_OBJ(m_modp, nodep, "Must not nullptr");
|
||||
m_forPackedSplit.m_refs[m_modp].remove(nodep);
|
||||
@@ -889,7 +890,7 @@ public:
|
||||
UASSERT(m_dedupDone, "cannot read before dedup()");
|
||||
return m_rhs;
|
||||
}
|
||||
explicit PackedVarRef(AstVar* varp)
|
||||
explicit PackedVarRef(const AstVar* varp)
|
||||
: m_basicp{varp->dtypep()->basicp()} {}
|
||||
void append(const PackedVarRefEntry& e, const VAccess& access) {
|
||||
UASSERT(!m_dedupDone, "cannot add after dedup()");
|
||||
|
||||
Reference in New Issue
Block a user