Generic errors shared between frontends.
More...
|
CT_NODISCARD CT_CONSTFN CT_EVENTS_API diagnostic_list_t | get_common_diagnostics (void) |
| get all common diagnostics More...
|
|
CT_EVENTS_API void | evt_scan_error (logger_t *logger, const node_t *node, const char *msg) |
| signal that a scan error has occurred More...
|
|
CT_EVENTS_API void | evt_scan_unknown (logger_t *logger, const node_t *node, const char *msg) |
| signal that a scanner has encountered an unknown token More...
|
|
CT_EVENTS_API event_builder_t | evt_symbol_shadowed (logger_t *logger, const char *name, const node_t *prev, const node_t *next) |
| signal that a declaration would shadow a previous declaration More...
|
|
CT_EVENTS_API event_builder_t | evt_os_error (logger_t *logger, const diagnostic_t *diagnostic, os_error_t error, const char *msg) |
| signal that an os error has occurred More...
|
|
Generic errors shared between frontends.
◆ CTU_EVENT
#define CTU_EVENT |
( |
|
name, |
|
|
|
... |
|
) |
| CT_EVENTS_API extern const diagnostic_t kEvent_##name; |
◆ evt_os_error()
signal that an os error has occurred
- Parameters
-
logger | the logger to report to |
diagnostic | the diagnostic to report |
error | the os error |
msg | the error message |
- Returns
- the event builder
Definition at line 59 of file events.c.
◆ evt_scan_error()
CT_EVENTS_API void evt_scan_error |
( |
logger_t * |
logger, |
|
|
const node_t * |
node, |
|
|
const char * |
msg |
|
) |
| |
signal that a scan error has occurred
- Parameters
-
logger | the logger to report to |
node | the node that caused the error |
msg | the error message |
Definition at line 33 of file events.c.
◆ evt_scan_unknown()
CT_EVENTS_API void evt_scan_unknown |
( |
logger_t * |
logger, |
|
|
const node_t * |
node, |
|
|
const char * |
msg |
|
) |
| |
signal that a scanner has encountered an unknown token
- Parameters
-
logger | the logger to report to |
node | the node that caused the error |
msg | the error message |
Definition at line 39 of file events.c.
◆ evt_symbol_shadowed()
signal that a declaration would shadow a previous declaration
- Parameters
-
logger | the logger to report to |
name | the name of the symbol |
prev | the previous declaration |
next | the new declaration |
- Returns
- the event builder
Definition at line 47 of file events.c.
◆ get_common_diagnostics()
get all common diagnostics
- Returns
- all common diagnostics
Definition at line 22 of file events.c.