Internals: Favor AstNetlist for global thread errors, and allow 0 line number error suppression.

This commit is contained in:
Wilson Snyder
2018-11-16 20:49:17 -05:00
parent 5cbf80918f
commit 6a5a2a56d7
4 changed files with 15 additions and 21 deletions
+5 -8
View File
@@ -235,14 +235,11 @@ void FileLine::modifyStateInherit(const FileLine* fromp) {
}
void FileLine::v3errorEnd(std::ostringstream& str) {
if (m_lineno) {
std::ostringstream nsstr;
nsstr<<this<<str.str();
if (warnIsOff(V3Error::errorCode())) V3Error::suppressThisWarning();
V3Error::v3errorEnd(nsstr);
} else {
V3Error::v3errorEnd(str);
}
std::ostringstream nsstr;
if (m_lineno) nsstr<<this;
nsstr<<str.str();
if (warnIsOff(V3Error::errorCode())) V3Error::suppressThisWarning();
V3Error::v3errorEnd(nsstr);
}
string FileLine::warnMore() const {