mirror of
https://github.com/verilator/verilator.git
synced 2026-09-04 00:30:34 +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:
+1
-1
@@ -146,7 +146,7 @@ class PremitVisitor final : public VNVisitor {
|
||||
checkNode(nodep);
|
||||
}
|
||||
|
||||
static bool rhsReadsLhs(AstNodeAssign* nodep) {
|
||||
static bool rhsReadsLhs(const AstNodeAssign* nodep) {
|
||||
const VNUser3InUse user3InUse;
|
||||
nodep->lhsp()->foreach([](const AstVarRef* refp) {
|
||||
if (refp->access().isWriteOrRW()) refp->varp()->user3(true);
|
||||
|
||||
Reference in New Issue
Block a user