Apply 'make format'

This commit is contained in:
github action 2024-07-06 12:13:35 +00:00
parent 947b6fd23f
commit 490bc63eb5
2 changed files with 3 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class EmitCModel final : public EmitCFunc {
}
}
}
if(v3Global.opt.emitAccessors()) {
if (v3Global.opt.emitAccessors()) {
puts("\n// ACCESSORS\n"
"// The application code should use these methods to\n"
"// propagate new values into/out from the Verilated model\n"

View File

@ -65,7 +65,8 @@ class NameVisitor final : public VNVisitorConst {
nodep->name(newname);
nodep->editCountInc();
} else if (VN_IS(nodep, CFunc) && VN_AS(nodep, CFunc)->isConstructor()) {
} else if (v3Global.opt.emitAccessors() && VN_IS(nodep, Var) && VN_AS(nodep, Var)->isSigPublic()) {
} else if (v3Global.opt.emitAccessors() && VN_IS(nodep, Var)
&& VN_AS(nodep, Var)->isSigPublic()) {
const string newname = "__Vm_sig_" + nodep->name();
nodep->name(newname);
nodep->editCountInc();