Apply 'make format'

This commit is contained in:
github action 2026-05-26 16:21:12 +00:00
parent 9460501221
commit 99a35fee83
6 changed files with 17 additions and 19 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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
}

0
test_regress/t/t_lint_always_comb_order_bad.py Normal file → Executable file
View File

3
test_regress/t/t_lint_notredop.py Normal file → Executable file
View File

@ -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()

0
test_regress/t/t_lint_notredop_bad.py Normal file → Executable file
View File