mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: Refactor some V3Error code handling and add tests. No functional change intended.
This commit is contained in:
+5
-6
@@ -445,12 +445,11 @@ public:
|
||||
bool waive(V3ErrorCode code, const string& message) {
|
||||
if (code.hardError()) return false;
|
||||
for (const auto& itr : m_waivers) {
|
||||
if ((code.isUnder(itr.m_code) || (itr.m_code == V3ErrorCode::I_LINT)))
|
||||
if ((code.isUnder(itr.m_code) || (itr.m_code == V3ErrorCode::I_LINT))
|
||||
&& VString::wildmatch(message, itr.m_match)
|
||||
&& WildcardContents::resolve(itr.m_contents)) {
|
||||
return true;
|
||||
}
|
||||
if ((code.isUnder(itr.m_code) || (itr.m_code == V3ErrorCode::I_LINT))
|
||||
&& VString::wildmatch(message, itr.m_match)
|
||||
&& WildcardContents::resolve(itr.m_contents)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user