diff --git a/src/V3FileLine.h b/src/V3FileLine.h index 9f0626278..0dd622e7b 100644 --- a/src/V3FileLine.h +++ b/src/V3FileLine.h @@ -70,8 +70,8 @@ protected: //! millions). To save space, per-file information (e.g. filename, source //! language is held in tables in the FileLineSingleton class. class FileLine { - int m_lineno; - int m_filenameno; + int m_lineno; // `line corrected line number + int m_filenameno; // `line corrected filename number FileLine* m_parent; // Parent line that included this line std::bitset m_warnOn; diff --git a/src/V3Number_test.cpp b/src/V3Number_test.cpp index 4095c3acb..672a8488f 100644 --- a/src/V3Number_test.cpp +++ b/src/V3Number_test.cpp @@ -38,11 +38,12 @@ void test(const string& lhss, const string& op, const string& rhss, const string char* r1 = strdup(rhss.c_str()); char* e1 = strdup(exps.c_str()); - V3Number lhnum (new FileLine("ck", __LINE__), l1); - V3Number rhnum (new FileLine("ck", __LINE__), r1); - V3Number expnum (new FileLine("ck", __LINE__), e1); + FileLine fl = new FileLine(FileLine::internalDefineFinename(), 0); - V3Number gotnum (new FileLine("ck", __LINE__), expnum.width()); + V3Number lhnum (fl, l1); + V3Number rhnum (fl, r1); + V3Number expnum (fl, e1); + V3Number gotnum (fl, expnum.width()); if (op=="redOr") gotnum.opRedOr (lhnum); else if (op=="redAnd") gotnum.opRedAnd (lhnum); @@ -82,7 +83,7 @@ void test(const string& lhss, const string& op, const string& rhss, const string <<" = "<