Add -Wwarn-style, -Wno-style, and DEFPARAM warnings

This commit is contained in:
Wilson Snyder
2010-12-25 15:13:56 -05:00
parent 7dee344ea9
commit 323c96f42f
9 changed files with 119 additions and 7 deletions
+1
View File
@@ -659,6 +659,7 @@ private:
virtual void visit(AstDefParam* nodep, AstNUser*) {
nodep->iterateChildren(*this);
if (m_idState==ID_PARAM) {
nodep->v3warn(DEFPARAM,"Suggest replace defparam with Verilog 2001 #(."<<nodep->name()<<"(...etc...))");
AstNode* foundp = m_curVarsp->findIdUpward(nodep->path());
AstCell* cellp = foundp->castCell();
if (!cellp) {