From e3e8f18a4ebe71c1b1ac7af9f2d6454b8a4f9a7a Mon Sep 17 00:00:00 2001 From: github action Date: Tue, 15 Apr 2025 01:41:13 +0000 Subject: [PATCH] Apply 'make format' --- include/verilated_funcs.h | 3 +-- src/V3Width.cpp | 7 ++++--- test_regress/t/t_unpacked_to_queue.py | 0 3 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 test_regress/t/t_unpacked_to_queue.py diff --git a/include/verilated_funcs.h b/include/verilated_funcs.h index 2250070db..c971c11ac 100644 --- a/include/verilated_funcs.h +++ b/include/verilated_funcs.h @@ -237,8 +237,7 @@ static inline std::string VL_CVT_N_CSTR(const char* lhsp) VL_PURE { template static inline VlQueue VL_CVT_UNPACK_TO_Q(const VlUnpacked& q) VL_PURE { VlQueue ret; - for (size_t i = 0; i < N_Depth; ++i) - ret.push_back(q[i]); + for (size_t i = 0; i < N_Depth; ++i) ret.push_back(q[i]); return ret; } diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 36c95a409..521f60169 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -7075,11 +7075,12 @@ class WidthVisitor final : public VNVisitor { nodep->v3error(side << " expects a " << lhsClassRefp->prettyTypeName() << ", got " << rhsDtypep->prettyTypeName()); } - if (VN_IS(lhsDTypep->skipRefp(), DynArrayDType) && VN_IS(rhsp->dtypep()->skipRefp(), UnpackArrayDType)){ + if (VN_IS(lhsDTypep->skipRefp(), DynArrayDType) + && VN_IS(rhsp->dtypep()->skipRefp(), UnpackArrayDType)) { VNRelinker relinker; rhsp->unlinkFrBack(&relinker); - relinker.relink(new AstCvtUnpackedToQueue{ - rhsp->fileline(), VN_AS(rhsp, NodeExpr), lhsDTypep}); + relinker.relink( + new AstCvtUnpackedToQueue{rhsp->fileline(), VN_AS(rhsp, NodeExpr), lhsDTypep}); } } static bool similarDTypeRecurse(const AstNodeDType* const node1p, diff --git a/test_regress/t/t_unpacked_to_queue.py b/test_regress/t/t_unpacked_to_queue.py old mode 100644 new mode 100755