package clangml

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

Module Ast.OptionsSource

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.

Sourcetype init_list_form =
  1. | Syntactic
    (*

    Syntactic form: only explicitly written values appear in initialization lists.

    *)
  2. | Semantic
    (*

    Semantic form: values that are not explicitly written in initialization lists appear as Clang__ast.ImplicitValueInitExpr.

    *)
Sourcetype t = {
  1. ignore_implicit_cast : bool;
    (*

    Ignore implicit cast nodes in expressions. See Clang__ast.Cast for examples.

    *)
  2. ignore_paren : bool;
    (*

    Ignore parenthese nodes in expressions. See Clang__ast.expr for examples.

    *)
  3. ignore_paren_in_types : bool;
    (*

    Ignore parenthese nodes in types. See Clang__ast.qual_type for examples.

    *)
  4. ignore_expr_with_cleanups : bool;
  5. ignore_materialize_temporary_expr : bool;
  6. ignore_bind_temporary_expr : bool;
  7. ignore_injected_class_names : bool;
    (*

    Ignore injected class name. See Clang__ast.record_decl for examples.

    *)
  8. ignore_implicit_constructors : bool;
    (*

    Ignore implicit constructors. See Clang__ast.Constructor for examples.

    *)
  9. ignore_implicit_methods : bool;
    (*

    Ignore implicit methods. See Clang__ast.CXXMethod for examples.

    *)
  10. ignore_anonymous_fields : bool;
    (*

    Ignore anonymous fields. See Clang__ast.IndirectField for examples.

    *)
  11. ignore_indirect_fields : bool;
    (*

    Ignore indirect fields. See Clang__ast.IndirectField for examples.

    *)
  12. ignore_using_types : bool;
    (*

    Ignore using types (introduced in 14.0.0).

    *)
  13. convert_integer_literals : bool;
    (*

    Convert integer literals into Clang__ast.Int. See Clang__ast.IntegerLiteral for examples.

    *)
  14. convert_floating_literals : bool;
    (*

    Convert floating literals into Clang__ast.Float. See Clang__ast.FloatingLiteral for examples.

    *)
  15. init_list_form : init_list_form;
    (*

    Select between default form (syntactic or semantic) for initialization lists. See Clang__ast.ImplicitValueInitExpr for examples. Default: Syntactic.

    *)
}

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.

Sourceval default : t
OCaml

Innovation. Community. Security.