From 22cb70a77d533bae8c5650347be6ac35727be28a Mon Sep 17 00:00:00 2001 From: Yilin Li Date: Wed, 10 Jun 2026 00:06:24 +0200 Subject: [PATCH] formatted --- src/V3EmitCFunc.cpp | 6 +++--- test_regress/t/t_dpi_export_unpack.v | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/V3EmitCFunc.cpp b/src/V3EmitCFunc.cpp index ed4a55c3a..18bb14c68 100644 --- a/src/V3EmitCFunc.cpp +++ b/src/V3EmitCFunc.cpp @@ -463,9 +463,9 @@ void EmitCFunc::emitVarReset(const string& prefix, AstVar* varp, bool constructi // 'constructing' indicates that the object was just constructed, so if it is a string or // something that starts off clear already, no need to clear it again AstNodeDType* const dtypep = varp->dtypep()->skipRefp(); - const string vlSelf = m_cfuncp && m_cfuncp->isStatic() ? - "vlSymsp->TOP__" + m_modp->name() + "." : - VSelfPointerText::replaceThis(m_useSelfForThis, "this->"); + const string vlSelf = m_cfuncp && m_cfuncp->isStatic() + ? "vlSymsp->TOP__" + m_modp->name() + "." + : VSelfPointerText::replaceThis(m_useSelfForThis, "this->"); const string varNameProtected = ((VN_IS(m_modp, Class) || varp->isFuncLocal()) || !prefix.empty()) ? varp->nameProtect() diff --git a/test_regress/t/t_dpi_export_unpack.v b/test_regress/t/t_dpi_export_unpack.v index 87f2d6885..91cc32577 100644 --- a/test_regress/t/t_dpi_export_unpack.v +++ b/test_regress/t/t_dpi_export_unpack.v @@ -23,11 +23,11 @@ task loadHEX; readHEX(file, stimuli); endtask -module tb(); +module tb (); logic [7:0] result[32'h00010000]; initial begin loadHEX("dummy"); end -endmodule \ No newline at end of file +endmodule