Cthulhu  0.2.10
Cthulhu compiler collection
check.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-only
2 
3 #pragma once
4 
5 #include <ctu_check_api.h>
6 
7 #include "core/analyze.h"
8 
9 typedef struct logger_t logger_t;
10 typedef struct tree_t tree_t;
11 typedef struct vector_t vector_t;
12 typedef struct arena_t arena_t;
13 
18 
20 
27 CT_CHECK_API void check_tree(IN_NOTNULL logger_t *reports, IN_NOTNULL vector_t *mods, IN_NOTNULL arena_t *arena);
28 
30 
#define IN_NOTNULL
annotate a parameter as not being null
CT_BEGIN_API CT_CHECK_API void check_tree(logger_t *reports, vector_t *mods, arena_t *arena)
check the tree form IR all found errors are reported to the reports object
Definition: tree.c:1071
#define CT_BEGIN_API
Definition: compiler.h:129
#define CT_END_API
Definition: compiler.h:130
an allocator object
Definition: arena.h:86
a logging sink
Definition: notify.c:14
Definition: tree.h:67
a generic vector of pointers
Definition: vector.c:16