Cthulhu  0.2.10
Cthulhu compiler collection
types.h File Reference
#include <ctu_util_api.h>
#include "core/compiler.h"
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CT_BEGIN_API CT_UTIL_API bool util_types_equal (const tree_t *lhs, const tree_t *rhs)
 compare two types for strict equality compares two types for exact equality, does not follow typedefs More...
 
CT_UTIL_API bool util_types_comparable (tree_cookie_t *cookie, const tree_t *lhs, const tree_t *rhs)
 query two types for comparability in binary logic operations More...
 
CT_UTIL_API tree_tutil_type_cast (const tree_t *dst, tree_t *expr)
 attempt to cast an expression to a type More...
 
CT_UTIL_API bool util_length_bounded (size_t length)
 check if the length of an array is bounded More...
 
CT_UTIL_API const char * util_length_name (size_t length)
 get the pretty name of a length return either the length as a string or "unbounded" if the length is unbounded More...
 
CT_UTIL_API bool util_type_is_aggregate (const tree_t *type)
 
CT_UTIL_API bool util_type_is_pointer (const tree_t *type)
 
CT_UTIL_API bool util_type_is_array (const tree_t *type)
 
CT_UTIL_API bool util_type_is_opaque (const tree_t *type)
 
CT_UTIL_API bool util_type_is_reference (const tree_t *type)
 
CT_UTIL_API bool util_type_is_digit (const tree_t *type)