Module Clang.Enum_constant

AST enumeration constants as ordered types.

type t = Ast.enum_constant
val equal : t -> t -> bool
val compare : t -> t -> int
module Set : Stdcompat.Set.S with type Set.elt = t
module Map : Stdcompat.Map.S with type Map.key = t
val of_cxcursor : ?⁠options:Ast.Options.t -> 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.