Clang.DeclSourceAST declarations.
of_cxcursor ?options cu translates cu into its high-level representation, supposing that cu points to a declaration.
get_typedef_underlying_type ?options ?recursive decl returns the underlying type of a typedef decl. If recursive is true (default: false), typedefs are followed until the underlying type is not a typedef.
get_field_bit_width d returns the bit width of the field declaration d.
get_size_expr ?options d returns the expression specifying the size of the array declared by d, and fails if d is not an array declaration.
get_canonical d retrieves the canonical cursor declaring an entity.
val annotate_access_specifier :
Ast.cxx_access_specifier ->
Ast.decl list ->
annotated_field listannotate_access_specifier default_specifier fields returns the elements of fields, except AccessSpecifier nodes, annotated with the current access specifier, starting with default_specifier.