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

Go to the source code of this file.

Data Structures

struct  node_t
 a position in a source file More...
 

Functions

CT_NODISCARD CT_PUREFN CT_SCAN_API const scan_tnode_get_scan (const node_t *node)
 get the associated source file of a node More...
 
CT_NODISCARD CT_PUREFN CT_SCAN_API where_t node_get_location (const node_t *node)
 get the location of a node inside its source file More...
 
CT_SCAN_API void node_init (OUT_NOTNULL node_t *node, const scan_t *scan, where_t where)
 initialize a source node More...
 
CT_NODISCARD CT_SCAN_API node_tnode_new (const scan_t *scan, where_t where)
 create a new node on the heap More...
 
CT_NODISCARD CT_SCAN_API node_t node_make (const scan_t *scan, where_t where)
 create a new node on the stack More...
 
CT_NODISCARD CT_SCAN_API node_tnode_builtin (const char *name, arena_t *arena)
 get the builtin node node used for drivers that declare builtin symbols More...
 
CT_NODISCARD CT_PUREFN CT_SCAN_API bool node_is_builtin (const node_t *node)
 check if a node is the builtin node More...
 

Variables

CT_SCAN_API const where_t kNowhere
 nowhere in a source file More...