From f57d1255e964e5070597ee95cd534e837dd7dd76 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 9 Sep 2025 18:32:04 -0400 Subject: [PATCH] Fix import error format --- src/V3LinkDot.cpp | 2 +- test_regress/t/t_lint_importstar_bad.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index e1eb250bb..c192cea42 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -1686,7 +1686,7 @@ class LinkDotFindVisitor final : public VNVisitor { if (nodep->packagep() != v3Global.rootp()->stdPackagep()) { if (m_curSymp == m_statep->dunitEntp()) { nodep->v3warn(IMPORTSTAR, - "Import::* in $unit scope may pollute global namespace"); + "'import::*' in $unit scope may pollute global namespace"); } } } else { diff --git a/test_regress/t/t_lint_importstar_bad.out b/test_regress/t/t_lint_importstar_bad.out index f28222e1e..7b8e68e91 100644 --- a/test_regress/t/t_lint_importstar_bad.out +++ b/test_regress/t/t_lint_importstar_bad.out @@ -1,4 +1,4 @@ -%Warning-IMPORTSTAR: t/t_lint_importstar_bad.v:11:8: Import::* in $unit scope may pollute global namespace +%Warning-IMPORTSTAR: t/t_lint_importstar_bad.v:11:8: 'import::*' in $unit scope may pollute global namespace 11 | import defs::*; | ^~~~ ... For warning description see https://verilator.org/warn/IMPORTSTAR?v=latest