From 43a57da950851ffcb9ed7a2e13f5dbb951073cad Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 20 Aug 2024 14:47:43 -0400 Subject: [PATCH] Add quotes to not-found filenames --- src/V3Options.cpp | 2 +- test_regress/t/t_preproc_inc_notfound_bad.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 8a3f20b72..25f1a83a2 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -575,7 +575,7 @@ string V3Options::filePath(FileLine* fl, const string& modname, const string& la // Warn and return not found if (errmsg != "") { - fl->v3error(errmsg + filename); + fl->v3error(errmsg + "'"s + filename + "'"s); filePathLookedMsg(fl, filename); } return ""; diff --git a/test_regress/t/t_preproc_inc_notfound_bad.out b/test_regress/t/t_preproc_inc_notfound_bad.out index 3561e0cb0..add378814 100644 --- a/test_regress/t/t_preproc_inc_notfound_bad.out +++ b/test_regress/t/t_preproc_inc_notfound_bad.out @@ -1,4 +1,4 @@ -%Error: t/t_preproc_inc_notfound_bad.v:7:10: Cannot find include file: this_file_is_not_found.vh +%Error: t/t_preproc_inc_notfound_bad.v:7:10: Cannot find include file: 'this_file_is_not_found.vh' 7 | `include "this_file_is_not_found.vh" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ... Looked in: