From 2727c3321901c16ed07dc4d8673717061051a2d1 Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 24 Jul 2024 10:07:59 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Width.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 417ad4d69..bb9bb83eb 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -553,10 +553,12 @@ class WidthVisitor final : public VNVisitor { userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p()); // Queue "element 0" is lhsp, so we need to swap arguments - const bool lhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), - nodep->lhsp()->dtypep(), nullptr).isAssignable(); - const bool rhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), - nodep->rhsp()->dtypep(), nullptr).isAssignable(); + const bool lhsIsValue + = AstNode::computeCastable(adtypep->subDTypep(), nodep->lhsp()->dtypep(), nullptr) + .isAssignable(); + const bool rhsIsValue + = AstNode::computeCastable(adtypep->subDTypep(), nodep->rhsp()->dtypep(), nullptr) + .isAssignable(); AstConsDynArray* const newp = new AstConsDynArray{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(), lhsIsValue, nodep->lhsp()->unlinkFrBack()}; @@ -571,10 +573,12 @@ class WidthVisitor final : public VNVisitor { userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p()); // Queue "element 0" is lhsp, so we need to swap arguments - const bool lhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), - nodep->lhsp()->dtypep(), nullptr).isAssignable(); - const bool rhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), - nodep->rhsp()->dtypep(), nullptr).isAssignable(); + const bool lhsIsValue + = AstNode::computeCastable(adtypep->subDTypep(), nodep->lhsp()->dtypep(), nullptr) + .isAssignable(); + const bool rhsIsValue + = AstNode::computeCastable(adtypep->subDTypep(), nodep->rhsp()->dtypep(), nullptr) + .isAssignable(); AstConsQueue* const newp = new AstConsQueue{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(), lhsIsValue, nodep->lhsp()->unlinkFrBack()};