Cthulhu  0.2.10
Cthulhu compiler collection
notify.h File Reference
#include <ctu_notify_api.h>
#include "core/analyze.h"
#include "core/compiler.h"
#include "scan/node.h"
#include "notify/diagnostic.h"
#include <stdarg.h>
#include <stdbool.h>
Include dependency graph for notify.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 

Typedefs

typedef typedefCT_BEGIN_API struct node_t node_t
 

Functions

CT_NODISCARD CT_NOTIFY_API logger_tlogger_new (arena_t *arena)
 create a new logger More...
 
CT_NODISCARD CT_NOTIFY_API typevec_tlogger_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_tlogger_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...
 

Typedef Documentation

◆ node_t

typedef struct node_t node_t

Definition at line 17 of file notify.h.