#include "slang/ast/Compilation.h"
#include "slang/diagnostics/DiagnosticEngine.h"
#include "slang/diagnostics/Diagnostics.h"
#include "slang/diagnostics/TextDiagnosticClient.h"
Go to the source code of this file.
◆ NETLIST_DIAGNOSTICS
| #define NETLIST_DIAGNOSTICS |
Value:X(Value, 0,
"value {}") \
X(InputPort, 1, "input port {}") \
X(OutputPort, 2, "output port {}") \
X(Assignment, 3, "assignment") \
X(Conditional, 4, "conditional statement") \
X(Case, 5, "case statement")
#define X(name, code, text)
Definition NetlistDiagnostics.hpp:18
◆ X [1/2]
| #define X |
( |
| name, |
|
|
| code, |
|
|
| text ) |
Value:engine.setMessage(diag::name, text); \
engine.setSeverity(diag::name, DiagnosticSeverity::Note);
◆ X [2/2]
| #define X |
( |
| name, |
|
|
| code, |
|
|
| text ) |
Value:inline constexpr DiagCode name(DiagSubsystem::Netlist, code);