Module Clang.Decl
AST declarations as ordered types.
type t
= Ast.decl
val of_cxcursor : ?options:Ast.Options.t -> cxcursor -> t
of_cxcursor ?options cu
translatescu
into its high-level representation, supposing thatcu
points to a declaration.
val get_typedef_underlying_type : ?options:Ast.Options.t -> t -> Type.t
get_declaration ?options decl
returns the underlying type of a typedefdecl
. It is equivalent toClang.Type.of_cxtype ?options (Clang.get_typedef_decl_underlying_type (Clang.Ast.cursor_of_node decl))
.
val get_field_bit_width : t -> int
get_field_bit_width d
returns the bit width of the field declarationd
.