From 490bc63eb5b4642c1c54234b613a55232cca44a0 Mon Sep 17 00:00:00 2001 From: github action Date: Sat, 6 Jul 2024 12:13:35 +0000 Subject: [PATCH] Apply 'make format' --- src/V3EmitCModel.cpp | 2 +- src/V3Name.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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();