Internals: Add warnMore() for all continued messages.

This commit is contained in:
Wilson Snyder
2012-05-21 21:24:17 -04:00
parent 7ab91e660f
commit 53f50463bc
15 changed files with 72 additions and 56 deletions
+2 -2
View File
@@ -294,8 +294,8 @@ private:
AstNode* foundp = m_mods.findIdUpward(nodep->name());
if (foundp && foundp != nodep) {
if (!(foundp->fileline()->warnIsOff(V3ErrorCode::MODDUP) || nodep->fileline()->warnIsOff(V3ErrorCode::MODDUP))) {
nodep->v3warn(MODDUP,"Duplicate declaration of module: "<<nodep->prettyName());
foundp->v3warn(MODDUP,"... Location of original declaration");
nodep->v3warn(MODDUP,"Duplicate declaration of module: "<<nodep->prettyName()<<endl
<<foundp->warnMore()<<"... Location of original declaration");
}
nodep->unlinkFrBack();
pushDeletep(nodep); nodep=NULL;