|
Cthulhu
0.2.10
Cthulhu compiler collection
|
Compiler message logging and error registration. More...

Data Structures | |
| struct | event_t |
| an event handle TODO: make this and segment_t opaque More... | |
| struct | segment_t |
| a segment inside an event More... | |
| struct | event_builder_t |
| an event builder handles adding additional information to an event More... | |
| struct | notify_rules_t |
| a set of rules for filtering notifications More... | |
Functions | |
| CT_NODISCARD CT_NOTIFY_API logger_t * | logger_new (arena_t *arena) |
| create a new logger More... | |
| CT_NODISCARD CT_NOTIFY_API typevec_t * | logger_get_events (const logger_t *logs) |
| get the events from the logger More... | |
| CT_NODISCARD CT_NOTIFY_API bool | logger_has_errors (const logger_t *logs, notify_rules_t rules) |
| check if the logger has any fatal errors More... | |
| CT_NOTIFY_API void | logger_reset (logger_t *logs) |
| reset the loggers messages More... | |
| CT_NODISCARD CT_NOTIFY_API arena_t * | logger_get_arena (const logger_t *logs) |
| CT_NOTIFY_API event_builder_t | msg_notify (INOUT_NOTNULL logger_t *logs, const diagnostic_t *diagnostic, const node_t *node, STA_FORMAT_STRING const char *fmt,...) |
| notify the logger of a new message More... | |
| CT_NOTIFY_API event_builder_t | msg_vnotify (INOUT_NOTNULL logger_t *logs, const diagnostic_t *diagnostic, const node_t *node, const char *fmt, va_list args) |
| notify the logger of a new message More... | |
| CT_NOTIFY_API void | msg_append (event_builder_t builder, const node_t *node, STA_FORMAT_STRING const char *fmt,...) |
| append additional information to a message More... | |
| CT_NOTIFY_API void | msg_vappend (event_builder_t builder, const node_t *node, const char *fmt, va_list args) |
| append additional information to a message More... | |
| CT_NOTIFY_API void | msg_note (event_builder_t builder, STA_FORMAT_STRING const char *fmt,...) |
| add a note to an existing message More... | |
| CT_NOTIFY_API void | msg_vnote (event_builder_t builder, const char *fmt, va_list args) |
| add a note to an existing message More... | |
| enum | severity_t { eSeverityTotal } |
| the default severity of a diagnostic More... | |
| STA_RET_STRING CT_CONSTFN CT_NOTIFY_API const char * | severity_string (severity_t severity) |
| get the name of a severity More... | |
Compiler message logging and error registration.
| enum severity_t |
the default severity of a diagnostic
| Enumerator | |
|---|---|
| eSeverityTotal | |
Definition at line 17 of file diagnostic.h.
| CT_NODISCARD CT_NOTIFY_API arena_t* logger_get_arena | ( | const logger_t * | logs | ) |
| CT_NODISCARD CT_NOTIFY_API typevec_t* logger_get_events | ( | const logger_t * | logs | ) |
| CT_NODISCARD CT_NOTIFY_API bool logger_has_errors | ( | const logger_t * | logs, |
| notify_rules_t | rules | ||
| ) |
| CT_NODISCARD CT_NOTIFY_API logger_t* logger_new | ( | arena_t * | arena | ) |
| CT_NOTIFY_API void logger_reset | ( | logger_t * | logs | ) |
| CT_NOTIFY_API void msg_append | ( | event_builder_t | builder, |
| const node_t * | node, | ||
| STA_FORMAT_STRING const char * | fmt, | ||
| ... | |||
| ) |
append additional information to a message
| builder | the event builder to append to |
| node | the node to attach to the message |
| fmt | the format string |
| ... | the format arguments |
| CT_NOTIFY_API void msg_note | ( | event_builder_t | builder, |
| STA_FORMAT_STRING const char * | fmt, | ||
| ... | |||
| ) |
add a note to an existing message
| builder | the event builder to append to |
| fmt | the format string |
| ... | the format arguments |
| CT_NOTIFY_API event_builder_t msg_notify | ( | INOUT_NOTNULL logger_t * | logs, |
| const diagnostic_t * | diagnostic, | ||
| const node_t * | node, | ||
| STA_FORMAT_STRING const char * | fmt, | ||
| ... | |||
| ) |
notify the logger of a new message
| logs | the logger |
| diagnostic | the diagnostic to use |
| node | the node to attach to the message |
| fmt | the format string |
| ... | the format arguments |
| CT_NOTIFY_API void msg_vappend | ( | event_builder_t | builder, |
| const node_t * | node, | ||
| const char * | fmt, | ||
| va_list | args | ||
| ) |
| CT_NOTIFY_API void msg_vnote | ( | event_builder_t | builder, |
| const char * | fmt, | ||
| va_list | args | ||
| ) |
| CT_NOTIFY_API event_builder_t msg_vnotify | ( | INOUT_NOTNULL logger_t * | logs, |
| const diagnostic_t * | diagnostic, | ||
| const node_t * | node, | ||
| const char * | fmt, | ||
| va_list | args | ||
| ) |
notify the logger of a new message
| logs | the logger |
| diagnostic | the diagnostic to use |
| node | the node to attach to the message |
| fmt | the format string |
| args | the format arguments |
| STA_RET_STRING CT_CONSTFN CT_NOTIFY_API const char* severity_string | ( | severity_t | severity | ) |