Module CustomS.Enum_constant

AST enumeration constants.

type t = Ast.enum_constant
val 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 enumeration constant.

val get_value : t -> int

get_value c returns the value associated to the constant c.

include S with type t := t
type t
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
val pp : Stdcompat.Format.formatter -> t -> unit
val show : t -> string
module Set : Stdcompat.Set.S with type Set.elt = t
module Map : Stdcompat.Map.S with type Map.key = t
module Hashtbl : Stdcompat.Hashtbl.S with type Hashtbl.key = t