package clangml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Clang.DeclSource

AST declarations.

Sourceval of_cxcursor : ?options:Ast.Options.t -> Clang__.Clang__bindings.cxcursor -> t

of_cxcursor ?options cu translates cu into its high-level representation, supposing that cu points to a declaration.

Sourceval get_typedef_underlying_type : ?options:Ast.Options.t -> ?recursive:bool -> t -> Type.t

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.

Sourceval get_field_bit_width : t -> int

get_field_bit_width d returns the bit width of the field declaration d.

Sourceval get_size_expr : ?options:Ast.Options.t -> t -> Expr.t

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.

Sourceval get_type_loc : ?options:Ast.Options.t -> t -> Type_loc.t
Sourceval get_canonical : t -> Clang__.Clang__bindings.cxcursor

get_canonical d retrieves the canonical cursor declaring an entity.

Sourcetype annotated_field = {
  1. specifier : Ast.cxx_access_specifier;
  2. decl : Ast.decl;
}
Sourceval annotate_access_specifier : Ast.cxx_access_specifier -> Ast.decl list -> annotated_field list

annotate_access_specifier default_specifier fields returns the elements of fields, except AccessSpecifier nodes, annotated with the current access specifier, starting with default_specifier.

Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval show : t -> string
Sourcemodule Set : Stdcompat.Set.S with type elt = t
Sourcemodule Map : Stdcompat.Map.S with type key = t
Sourcemodule Hashtbl : Stdcompat.Hashtbl.S with type key = t
OCaml

Innovation. Community. Security.