Improve E_UNSUPPORTED warning messages (#7329)

This commit is contained in:
Eunseo Song
2026-03-26 13:25:30 -04:00
committed by GitHub
parent e0963bd587
commit f369a629c7
6 changed files with 17 additions and 12 deletions
+3 -1
View File
@@ -292,7 +292,9 @@ class LinkIncVisitor final : public VNVisitor {
void prepost_expr_visit(AstNodeTriop* nodep) {
iterateChildren(nodep);
if (m_unsupportedHere) {
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Incrementation in this context.");
nodep->v3warn(E_UNSUPPORTED,
"Unsupported: Pre/post increment/decrement operator"
" within a logical expression (&&, ||, ?:, etc.)");
return;
}
AstNodeExpr* const readp = nodep->rhsp();