Go to the source code of this file.
◆ util_length_bounded()
bool util_length_bounded |
( |
size_t |
length | ) |
|
check if the length of an array is bounded
- Parameters
-
length | the length of the array |
- Returns
- true if the length is bounded, false otherwise
Definition at line 312 of file util.c.
◆ util_length_name()
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
- Parameters
-
length | the length to get the name of |
- Returns
- the name of the length
Definition at line 317 of file util.c.
◆ util_type_cast()
attempt to cast an expression to a type
- Parameters
-
dst | the desired type |
expr | the expression to try and cast |
- Returns
- tree_t* the casted expression or tree_error if the cast could not be done
Definition at line 212 of file util.c.
◆ util_type_is_aggregate()
bool util_type_is_aggregate |
( |
const tree_t * |
type | ) |
|
◆ util_type_is_array()
bool util_type_is_array |
( |
const tree_t * |
type | ) |
|
◆ util_type_is_digit()
bool util_type_is_digit |
( |
const tree_t * |
type | ) |
|
◆ util_type_is_opaque()
bool util_type_is_opaque |
( |
const tree_t * |
type | ) |
|
◆ util_type_is_pointer()
bool util_type_is_pointer |
( |
const tree_t * |
type | ) |
|
◆ util_type_is_reference()
bool util_type_is_reference |
( |
const tree_t * |
type | ) |
|
◆ util_types_comparable()
query two types for comparability in binary logic operations
- Parameters
-
lhs | the left hand side type |
rhs | the right hand side type |
- Returns
- true if the types are comparable, false otherwise
Definition at line 69 of file util.c.