From c39c3f09a6434b5f6f1aad333ae7f209f6313df5 Mon Sep 17 00:00:00 2001 From: github action Date: Mon, 22 Dec 2025 11:26:22 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Undriven.cpp | 28 +++++++++++----------------- src/V3UndrivenCapture.cpp | 1 - 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/src/V3Undriven.cpp b/src/V3Undriven.cpp index 23f2756ed..15b0a7b39 100644 --- a/src/V3Undriven.cpp +++ b/src/V3Undriven.cpp @@ -28,7 +28,6 @@ #include "V3Undriven.h" #include "V3Stats.h" - #include "V3UndrivenCapture.h" #include @@ -459,8 +458,7 @@ class UndrivenVisitor final : public VNVisitorConst { } if (entryp->isDrivenWhole() && !m_inBBox && !VN_IS(nodep, VarXRef) && !VN_IS(nodep->dtypep()->skipRefp(), UnpackArrayDType) - && nodep->fileline() != entryp->getNodeFileLinep() - && !entryp->isUnderGen() + && nodep->fileline() != entryp->getNodeFileLinep() && !entryp->isUnderGen() && (entryp->getNodep() || (m_enableWriteSummary && entryp->getCallNodep()))) { const AstNode* const otherWritep @@ -477,23 +475,19 @@ class UndrivenVisitor final : public VNVisitorConst { "Variable written to in always_comb also written by other process" << " (IEEE 1800-2023 9.2.2.2): " << nodep->prettyNameQ() << '\n' << nodep->warnOther() << '\n' - << nodep->warnContextPrimary() - << '\n' - << otherWritep->warnOther() - << "... Location of other write\n" + << nodep->warnContextPrimary() << '\n' + << otherWritep->warnOther() << "... Location of other write\n" << otherWritep->warnContextSecondary()); } if (!m_alwaysCombp && entryp->isDrivenAlwaysCombWhole()) { - nodep->v3warn(MULTIDRIVEN, - "Variable also written to in always_comb" - << " (IEEE 1800-2023 9.2.2.2): " << nodep->prettyNameQ() - << '\n' - << nodep->warnOther() << '\n' - << nodep->warnContextPrimary() - << '\n' - << otherWritep->warnOther() - << "... Location of always_comb write\n" - << otherWritep->warnContextSecondary()); + nodep->v3warn(MULTIDRIVEN, "Variable also written to in always_comb" + << " (IEEE 1800-2023 9.2.2.2): " + << nodep->prettyNameQ() << '\n' + << nodep->warnOther() << '\n' + << nodep->warnContextPrimary() << '\n' + << otherWritep->warnOther() + << "... Location of always_comb write\n" + << otherWritep->warnContextSecondary()); } } entryp->drivenWhole(nodep, nodep->fileline()); diff --git a/src/V3UndrivenCapture.cpp b/src/V3UndrivenCapture.cpp index 7e62b8040..958810c10 100644 --- a/src/V3UndrivenCapture.cpp +++ b/src/V3UndrivenCapture.cpp @@ -71,7 +71,6 @@ private: << " at " << nodep->fileline()); m_cap.noteDirectWrite(m_curTaskp, nodep->varp()); - } iterateChildrenConst(nodep); }