diff --git a/src/V3EmitCModel.cpp b/src/V3EmitCModel.cpp index d375885e7..9baeb70e3 100644 --- a/src/V3EmitCModel.cpp +++ b/src/V3EmitCModel.cpp @@ -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" diff --git a/src/V3Name.cpp b/src/V3Name.cpp index d0add3d96..91c67b98b 100644 --- a/src/V3Name.cpp +++ b/src/V3Name.cpp @@ -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();