2020-05-26 20:38:14 +02:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
// DESCRIPTION: Verilator: Emit Waivers
|
|
|
|
|
//
|
|
|
|
|
// Code available from: https://verilator.org
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
//
|
2022-01-01 14:26:40 +01:00
|
|
|
// Copyright 2003-2022 by Wilson Snyder. This program is free software; you
|
2020-05-26 20:38:14 +02:00
|
|
|
// can redistribute it and/or modify it under the terms of either the GNU
|
|
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
|
// Version 2.0.
|
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
|
|
|
|
//
|
|
|
|
|
//*************************************************************************
|
|
|
|
|
|
2021-03-04 03:57:07 +01:00
|
|
|
#ifndef VERILATOR_V3WAIVER_H_
|
|
|
|
|
#define VERILATOR_V3WAIVER_H_
|
2020-05-26 20:38:14 +02:00
|
|
|
|
|
|
|
|
#include "V3Error.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2020-11-19 03:32:16 +01:00
|
|
|
class V3Waiver final {
|
2020-05-26 20:38:14 +02:00
|
|
|
// TYPES
|
2021-03-13 00:10:45 +01:00
|
|
|
using WaiverList = std::vector<std::string>;
|
2020-05-26 20:38:14 +02:00
|
|
|
static WaiverList s_waiverList;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static void addEntry(V3ErrorCode errorCode, const string& filename, const std::string& str);
|
|
|
|
|
static void write(const std::string& filename);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // Guard
|