5 #include <ctu_util_api.h>
CT_UTIL_API tree_t * util_search_qualified(tree_t *sema, const decl_search_t *search, const node_t *node, const char *mod, const char *name)
search for a decl inside a module
CT_UTIL_API void * util_select_decl(tree_t *sema, search_t search, const char *name)
search for a declaration by name in a set of tags
CT_UTIL_API bool util_eval_digit(mpz_t value, const tree_t *expr)
evaluate a digit expression
CT_UTIL_API tree_t * util_search_namespace(tree_t *sema, search_t search, const node_t *node, const vector_t *path, bool *is_imported)
search for a namespace given a path, ignoring the last element in the path
CT_UTIL_API tree_t * util_search_path(tree_t *sema, const decl_search_t *search, const node_t *node, vector_t *path)
search for a decl given a path
const size_t * module_tags
a position in a source file
a generic vector of pointers