Internals: cppcheck fixes. No functional change. (#6687)

This commit is contained in:
Wilson Snyder
2025-11-12 18:54:22 -05:00
committed by GitHub
parent 67094f6a88
commit 5c0ad5bd1f
38 changed files with 122 additions and 111 deletions
+7 -7
View File
@@ -35,13 +35,13 @@ VL_DEFINE_DEBUG_FUNCTIONS;
AstCFunc* ExecMTask::createCFunc(AstExecGraph* execGraphp, AstScope* scopep, AstNodeStmt* stmtsp,
uint32_t id) {
const std::string name = execGraphp->name() + "_mtask" + std::to_string(id);
AstCFunc* const funcp = new AstCFunc{execGraphp->fileline(), name, scopep};
funcp->isLoose(true);
funcp->dontCombine(true);
funcp->addStmtsp(stmtsp);
if (scopep) scopep->addBlocksp(funcp);
return funcp;
const std::string newName = execGraphp->name() + "_mtask" + std::to_string(id);
AstCFunc* const newp = new AstCFunc{execGraphp->fileline(), newName, scopep};
newp->isLoose(true);
newp->dontCombine(true);
newp->addStmtsp(stmtsp);
if (scopep) scopep->addBlocksp(newp);
return newp;
}
ExecMTask::ExecMTask(AstExecGraph* execGraphp, AstScope* scopep,