Fix unnecessary verilated_std.sv waivers in --waiver-output.

This commit is contained in:
Wilson Snyder 2023-04-06 21:43:23 -04:00
parent 6c21b21ecc
commit 38000a3da0
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Verilator 5.009 devel
* Fix characters from DEFENV literals for conda (#4035) (#4044). [Tim Snyder]
* Fix interface generate begin (#4065). [Srinivasan Venkataramanan]
* Fix false ENUMVALUE on expressions and arrays.
* Fix unnecessary verilated_std.sv waivers in --waiver-output.
Verilator 5.008 2023-03-04

View File

@ -19,6 +19,7 @@
#include "V3Waiver.h"
#include "V3File.h"
#include "V3Options.h"
#include <memory>
#include <sstream>
@ -26,6 +27,7 @@
void V3Waiver::addEntry(V3ErrorCode errorCode, const std::string& filename, const std::string& str)
VL_MT_SAFE_EXCLUDES(s_mutex) {
const VerilatedLockGuard lock{s_mutex};
if (filename == V3Options::getStdPackagePath()) return;
std::stringstream entry;
const size_t pos = str.find('\n');
entry << "lint_off -rule " << errorCode.ascii() << " -file \"*" << filename << "\" -match \""