3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-20 11:22:05 +00:00

read_verilog, ast: use unified locations in errors and simplify dependencies

This commit is contained in:
Emil J. Tywoniak 2025-07-09 15:24:34 +02:00
parent 41d9a1b88e
commit 56058b3ed4
7 changed files with 16 additions and 23 deletions

View file

@ -5,17 +5,10 @@
#include "frontends/ast/ast.h"
#include "frontends/verilog/verilog_location.h"
#if ! defined(yyFlexLexerOnce)
#define yyFlexLexer frontend_verilog_yyFlexLexer
#include <FlexLexer.h>
#endif
YOSYS_NAMESPACE_BEGIN
namespace VERILOG_FRONTEND
{
[[noreturn]]
void err_at_ast(AST::AstSrcLocType loc, char const *fmt, ...);
[[noreturn]]
void err_at_loc(location loc, char const *fmt, ...);
};