package clangml

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

Module Clang.ExprSource

AST expressions as ordered types.

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 an expression.

Sourceval get_definition : t -> Clang__.Clang__bindings.cxcursor

get_definition e retrieves a cursor that describes the definition of the entity referenced by e. Returns a NULL cursor of e has no corresponding definition.

Sourcetype radix =
  1. | Decimal
  2. | Octal
  3. | Hexadecimal
  4. | Binary
Sourceval radix_of_integer_literal : t -> radix option

radix_of_integer_literal e returns the radix of the integer literal e if available. Note that, by convention, 0 is octal.

Sourceval parse_string : ?index:Clang__.Clang__bindings.cxindex -> ?clang_options:Clang__.Clang__bindings.Cxtranslationunit_flags.t -> ?options:Ast.Options.t -> ?filename:string -> ?line:int -> ?context:Ast.decl list -> string -> t option * Ast.translation_unit

parse_string ?index ?clang_options ?options ?filename ?line ?context contents parses string contents as a C expression and returns (o, tu) where o is Some e if contents has been successfully parsed as the expression e, and tu is the translation unit created for parsing. tu can be used to retrieve diagnostics if any. context provides some declaration context. filename and line specifies respectively the file name and the line number to use in diagnostics.

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.