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
+1 -2
View File
@@ -332,8 +332,7 @@ public:
}
bool waive(V3ErrorCode code, const string& match) {
for (const auto& itr : m_waivers) {
if (((itr.first == code) || (itr.first == V3ErrorCode::I_LINT)
|| (code.unusedError() && itr.first == V3ErrorCode::I_UNUSED))
if ((code.isUnder(itr.first) || (itr.first == V3ErrorCode::I_LINT))
&& VString::wildmatch(match, itr.second)) {
return true;
}