Predator
[unstable] git snapshot
|
type definition available for each operand. More...
#include <code_listener.h>
Data Fields | |
int | uid |
type's unique ID | |
enum cl_type_e | code |
kind of type (enumeration) | |
struct cl_loc | loc |
location of type's declaration (may or may not be valid) | |
enum cl_scope_e | scope |
scope of type's declaration | |
const char * | name |
type's name, or NULL for anonymous type | |
int | size |
type's sizeof | |
int | item_cnt |
count of nested types | |
struct cl_type_item * | items |
array of nested types. | |
int | array_size |
valid only for CL_TYPE_ARRAY | |
bool | is_unsigned |
makes sense mainly for integral types, but should be always initialized | |
bool | is_const |
indicates if the type has a 'const' modificator set or not. | |
enum cl_ptr_type_e | ptr_type |
type of pointer (enumeration) to represent possible usage of C++ references ->> use makes sense only when C++ analysis is also supported and when 'code' == CL_TYPE_PTR |
type definition available for each operand.
It can be also returned by cl_get_type_fnc_t function (useful to traverse type definition recursively).
Definition at line 224 of file code_listener.h.
int array_size |
valid only for CL_TYPE_ARRAY
Definition at line 277 of file code_listener.h.
enum cl_type_e code |
kind of type (enumeration)
Definition at line 233 of file code_listener.h.
Referenced by areComparableTypes(), isCodePtr(), isComposite(), isDataPtr(), and isLcVar().
bool is_const |
indicates if the type has a 'const' modificator set or not.
Definition at line 287 of file code_listener.h.
bool is_unsigned |
makes sense mainly for integral types, but should be always initialized
Definition at line 282 of file code_listener.h.
int item_cnt |
count of nested types
Definition at line 267 of file code_listener.h.
Referenced by traverseTypeIc().
struct cl_type_item* items |
array of nested types.
Its size is exactly item_cnt.
Definition at line 272 of file code_listener.h.
struct cl_loc loc |
location of type's declaration (may or may not be valid)
Definition at line 238 of file code_listener.h.
const char* name |
type's name, or NULL for anonymous type
Definition at line 252 of file code_listener.h.
enum cl_ptr_type_e ptr_type |
type of pointer (enumeration) to represent possible usage of C++ references ->> use makes sense only when C++ analysis is also supported and when 'code' == CL_TYPE_PTR
Definition at line 294 of file code_listener.h.
enum cl_scope_e scope |
scope of type's declaration
Definition at line 243 of file code_listener.h.
int size |
int uid |