Module Ast.Options
Options.t
stores flags that change the construction of the abstract syntax tree. Beware that the nodes that are ignored by default can differ from one version of Clang to the other.
type t
=
{
ignore_implicit_cast : bool;
Ignore implicit cast nodes in expressions. See
Clang__ast.expr_desc.Cast
for examples.ignore_paren : bool;
Ignore parenthese nodes in expressions. See
Clang__ast.expr
for examples.ignore_paren_in_types : bool;
Ignore parenthese nodes in types. See
Clang__ast.qual_type
for examples.convert_integer_literals : bool;
Convert integer literals into
Clang__ast.integer_literal.Int
. SeeClang__ast.expr_desc.IntegerLiteral
for examples.convert_floating_literals : bool;
Convert floating literals into
Clang__ast.floating_literal.Float
. SeeClang__ast.expr_desc.FloatingLiteral
for examples.}
val make : ?ignore_implicit_cast:bool -> ?ignore_paren:bool -> ?ignore_paren_in_types:bool -> ?convert_integer_literals:bool -> ?convert_floating_literals:bool -> unit -> t