mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
Internals: cppcheck fixes. No functional change. (#6687)
This commit is contained in:
+2
-4
@@ -173,9 +173,7 @@ VStringList V3HierBlock::commandArgs(bool forMkJson) const {
|
||||
|
||||
const StrGParams gparamsStr = stringifyParams(m_params, true);
|
||||
for (const StrGParam& param : gparamsStr) {
|
||||
const string name = param.first;
|
||||
const string value = param.second;
|
||||
opts.push_back("-G" + name + "=" + value + "");
|
||||
opts.push_back("-G" + param.first + "=" + param.second + "");
|
||||
}
|
||||
if (!m_typeParams.empty()) {
|
||||
opts.push_back(" --hierarchical-params-file " + typeParametersFilename());
|
||||
@@ -382,7 +380,7 @@ class HierBlockUsageCollectVisitor final : public VNVisitorConst {
|
||||
void visit(AstNode* nodep) override { iterateChildrenConst(nodep); }
|
||||
|
||||
// CONSTRUCTOR
|
||||
HierBlockUsageCollectVisitor(AstNetlist* netlistp) {
|
||||
explicit HierBlockUsageCollectVisitor(AstNetlist* netlistp) {
|
||||
iterateChildrenConst(netlistp);
|
||||
if (dumpGraphLevel() >= 3) m_graphp->dumpDotFilePrefixed("hierblocks_initial");
|
||||
// Simplify dependencies
|
||||
|
||||
Reference in New Issue
Block a user