Split UNUSED warning into genvar, param, and signal warnings (#3607)

This commit is contained in:
Topa Topino
2022-10-17 19:51:13 -04:00
committed by GitHub
parent 22ce36012e
commit 46c5764383
18 changed files with 193 additions and 67 deletions
+5 -2
View File
@@ -332,8 +332,11 @@ public:
}
bool waive(V3ErrorCode code, const string& match) {
for (const auto& itr : m_waivers) {
if (((itr.first == code) || (itr.first == V3ErrorCode::I_LINT))
&& VString::wildmatch(match, itr.second)) {
if ( ( (itr.first == code)
|| (itr.first == V3ErrorCode::I_LINT)
|| (code.unusedError() && itr.first == V3ErrorCode::I_UNUSED)
)
&& VString::wildmatch(match, itr.second)) {
return true;
}
}