diff --git a/src/V3Ast.h b/src/V3Ast.h index 28d14395f..3971687ba 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -514,6 +514,7 @@ public: inline AstVarAttrClocker (en _e) : m_e(_e) {} explicit inline AstVarAttrClocker (int _e) : m_e(static_cast(_e)) {} operator en () const { return m_e; } + bool unknown() const { return m_e==CLOCKER_UNKNOWN; } AstVarAttrClocker invert() const { if (m_e==CLOCKER_YES) return CLOCKER_NO; else if (m_e==CLOCKER_NO) return CLOCKER_YES; diff --git a/src/V3AstNodes.cpp b/src/V3AstNodes.cpp index 3b6294958..f06446736 100644 --- a/src/V3AstNodes.cpp +++ b/src/V3AstNodes.cpp @@ -977,6 +977,7 @@ void AstVar::dump(ostream& str) { if (attrFileDescr()) str<<" [aFD]"; if (isFuncReturn()) str<<" [FUNCRTN]"; else if (isFuncLocal()) str<<" [FUNC]"; + if (!attrClocker().unknown()) str<<" ["<