From 99a35fee835a115e9d1dc44c57a45b1c07bdb825 Mon Sep 17 00:00:00 2001 From: github action Date: Tue, 26 May 2026 16:21:12 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Error.h | 4 ++-- src/V3ParseImp.cpp | 9 ++++----- src/V3Undriven.cpp | 20 +++++++++---------- .../t/t_lint_always_comb_order_bad.py | 0 test_regress/t/t_lint_notredop.py | 3 +-- test_regress/t/t_lint_notredop_bad.py | 0 6 files changed, 17 insertions(+), 19 deletions(-) mode change 100644 => 100755 test_regress/t/t_lint_always_comb_order_bad.py mode change 100644 => 100755 test_regress/t/t_lint_notredop.py mode change 100644 => 100755 test_regress/t/t_lint_notredop_bad.py diff --git a/src/V3Error.h b/src/V3Error.h index b38bf8203..6d4914329 100644 --- a/src/V3Error.h +++ b/src/V3Error.h @@ -270,8 +270,8 @@ public: return (m_e == ASSIGNIN || m_e == BADSTDPRAGMA || m_e == BADVLTPRAGMA || m_e == BLKANDNBLK || m_e == BLKLOOPINIT || m_e == CONTASSREG || m_e == ENCAPSULATED || m_e == ENDLABEL || m_e == ENUMITEMWIDTH || m_e == ENUMVALUE || m_e == HIERPARAM - || m_e == FUNCTIMECTL || m_e == IMPURE || m_e == MODMISSING - || m_e == NOTREDOP || m_e == PARAMNODEFAULT || m_e == PINNOTFOUND || m_e == PKGNODECL + || m_e == FUNCTIMECTL || m_e == IMPURE || m_e == MODMISSING || m_e == NOTREDOP + || m_e == PARAMNODEFAULT || m_e == PINNOTFOUND || m_e == PKGNODECL || m_e == PROCASSWIRE || m_e == PROTOTYPEMIS || m_e == SUPERNFIRST || m_e == ZEROREPL); } diff --git a/src/V3ParseImp.cpp b/src/V3ParseImp.cpp index f7e7042d1..fe14577e9 100644 --- a/src/V3ParseImp.cpp +++ b/src/V3ParseImp.cpp @@ -847,11 +847,10 @@ int V3ParseImp::tokenToBison() { if (m_tokenLastBison.token == '!' && (yylval.token == '&' || yylval.token == '|' || yylval.token == '^' || yylval.token == yP_NAND || yylval.token == yP_NOR || yylval.token == yP_XNOR)) { - m_tokenLastBison.fl->v3warn( - NOTREDOP, - "Logical not directly before reduction operator is illegal\n" - << m_tokenLastBison.fl->warnMore() - << "... Suggest use parentheses, e.g. '!(|expr)'"); + m_tokenLastBison.fl->v3warn(NOTREDOP, + "Logical not directly before reduction operator is illegal\n" + << m_tokenLastBison.fl->warnMore() + << "... Suggest use parentheses, e.g. '!(|expr)'"); } m_tokenLastBison = yylval; diff --git a/src/V3Undriven.cpp b/src/V3Undriven.cpp index 5d76029a2..0eba3be5b 100644 --- a/src/V3Undriven.cpp +++ b/src/V3Undriven.cpp @@ -399,16 +399,16 @@ class UndrivenVisitor final : public VNVisitorConst { && !VN_IS(nodep, VarXRef) // Xrefs might point at two different instances && !varp->fileline()->warnIsOff( V3ErrorCode::ALWCOMBORDER)) { // Warn only once per variable - nodep->v3warn( - ALWCOMBORDER, - "always_comb reads " << nodep->prettyNameQ() - << " before assigning it later in the same block; behavior " - "may imply latch/state-like behavior and is not purely " - "combinational" - << (readp ? "\n" + readp->warnOther() - + "... Location of earlier read\n" - + readp->warnContextSecondary() - : "")); + nodep->v3warn(ALWCOMBORDER, + "always_comb reads " + << nodep->prettyNameQ() + << " before assigning it later in the same block; behavior " + "may imply latch/state-like behavior and is not purely " + "combinational" + << (readp ? "\n" + readp->warnOther() + + "... Location of earlier read\n" + + readp->warnContextSecondary() + : "")); varp->fileline()->modifyWarnOff(V3ErrorCode::ALWCOMBORDER, true); // Complain just once for any usage } diff --git a/test_regress/t/t_lint_always_comb_order_bad.py b/test_regress/t/t_lint_always_comb_order_bad.py old mode 100644 new mode 100755 diff --git a/test_regress/t/t_lint_notredop.py b/test_regress/t/t_lint_notredop.py old mode 100644 new mode 100755 index baf37ad0f..36e360e43 --- a/test_regress/t/t_lint_notredop.py +++ b/test_regress/t/t_lint_notredop.py @@ -11,7 +11,6 @@ import vltest_bootstrap test.scenarios('vlt') -test.lint(top_filename="t/t_lint_notredop_bad.v", - verilator_flags2=["-Wno-NOTREDOP"]) +test.lint(top_filename="t/t_lint_notredop_bad.v", verilator_flags2=["-Wno-NOTREDOP"]) test.passes() diff --git a/test_regress/t/t_lint_notredop_bad.py b/test_regress/t/t_lint_notredop_bad.py old mode 100644 new mode 100755