Apply 'make format'

This commit is contained in:
github action 2024-07-24 10:07:59 +00:00
parent 0419ed0430
commit 2727c33219
1 changed files with 12 additions and 8 deletions

View File

@ -553,10 +553,12 @@ class WidthVisitor final : public VNVisitor {
userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p());
userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p());
// Queue "element 0" is lhsp, so we need to swap arguments // Queue "element 0" is lhsp, so we need to swap arguments
const bool lhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), const bool lhsIsValue
nodep->lhsp()->dtypep(), nullptr).isAssignable(); = AstNode::computeCastable(adtypep->subDTypep(), nodep->lhsp()->dtypep(), nullptr)
const bool rhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), .isAssignable();
nodep->rhsp()->dtypep(), nullptr).isAssignable(); const bool rhsIsValue
= AstNode::computeCastable(adtypep->subDTypep(), nodep->rhsp()->dtypep(), nullptr)
.isAssignable();
AstConsDynArray* const newp AstConsDynArray* const newp
= new AstConsDynArray{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(), = new AstConsDynArray{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(),
lhsIsValue, nodep->lhsp()->unlinkFrBack()}; lhsIsValue, nodep->lhsp()->unlinkFrBack()};
@ -571,10 +573,12 @@ class WidthVisitor final : public VNVisitor {
userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->lhsp(), WidthVP{vdtypep, PRELIM}.p());
userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p()); userIterateAndNext(nodep->rhsp(), WidthVP{vdtypep, PRELIM}.p());
// Queue "element 0" is lhsp, so we need to swap arguments // Queue "element 0" is lhsp, so we need to swap arguments
const bool lhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), const bool lhsIsValue
nodep->lhsp()->dtypep(), nullptr).isAssignable(); = AstNode::computeCastable(adtypep->subDTypep(), nodep->lhsp()->dtypep(), nullptr)
const bool rhsIsValue = AstNode::computeCastable(adtypep->subDTypep(), .isAssignable();
nodep->rhsp()->dtypep(), nullptr).isAssignable(); const bool rhsIsValue
= AstNode::computeCastable(adtypep->subDTypep(), nodep->rhsp()->dtypep(), nullptr)
.isAssignable();
AstConsQueue* const newp AstConsQueue* const newp
= new AstConsQueue{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(), = new AstConsQueue{nodep->fileline(), rhsIsValue, nodep->rhsp()->unlinkFrBack(),
lhsIsValue, nodep->lhsp()->unlinkFrBack()}; lhsIsValue, nodep->lhsp()->unlinkFrBack()};