Split WIDTH warning into WIDTHEXPAND and WIDTHTRUNC (#3900)

This commit is contained in:
Andrew Nolte
2023-02-02 18:25:25 -05:00
committed by GitHub
parent 33468fa0e7
commit d3c14cc1ac
44 changed files with 349 additions and 288 deletions
+5
View File
@@ -261,6 +261,11 @@ public:
// Turn on/off warning messages on this line.
void warnOn(V3ErrorCode code, bool flag) {
if (code == V3ErrorCode::WIDTH) {
warnOn(V3ErrorCode::WIDTHTRUNC, flag);
warnOn(V3ErrorCode::WIDTHEXPAND, flag);
warnOn(V3ErrorCode::WIDTHXZEXPAND, flag);
}
m_msgEnIdx = singleton().msgEnSetBit(m_msgEnIdx, code, flag);
}
void warnOff(V3ErrorCode code, bool flag) { warnOn(code, !flag); }