package mopsa

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

Clang_dump - Simple (and ugly) printer for Clang_AST, used for debugging

Names for constant variants

val lang_name : Clang_AST.lang -> string
val builtin_type_name : Clang_AST.builtin_type -> string
val binary_operator_name : Clang_AST.binary_operator -> string
val compound_assign_operator_name : Clang_AST.compound_assign_operator -> string
val unary_operator_name : Clang_AST.unary_operator -> string
val storage_class_name : Clang_AST.storage_class -> string
val record_kind_name : Clang_AST.record_kind -> string
val cast_kind_name : Clang_AST.cast_kind -> string
val character_kind_name : Clang_AST.character_kind -> string
val ident_type_name : Clang_AST.ident_type -> string
val unary_expr_or_type_name : Clang_AST.unary_expr_or_type -> string
val array_type_trait_name : Clang_AST.array_type_trait -> string
val access_specifier_name : Clang_AST.access_specifier -> string
val construction_kind_name : Clang_AST.construction_kind -> string
val overloaded_operator_name : Clang_AST.overloaded_operator -> string
val initialization_style_name : Clang_AST.initialization_style -> string
val expression_trait_name : Clang_AST.expression_trait -> string
val storage_duration_name : Clang_AST.storage_duration -> string
val type_trait_name : Clang_AST.type_trait -> string
val diag_level_name : Clang_AST.diag_level -> string
val target_int_type_name : Clang_AST.target_int_type -> string
val target_real_type_name : Clang_AST.target_real_type -> string
val builtin_template_kind_name : Clang_AST.builtin_template_kind -> string
val ref_qualifier_name : Clang_AST.ref_qualifier -> string
val lambda_capture_default_name : Clang_AST.lambda_capture_default -> string
val lambda_capture_kind_name : Clang_AST.lambda_capture_kind -> string
val decl_kind_name : Clang_AST.decl_kind -> string
val type_kind_name : Clang_AST.typ -> string
val expr_kind_name : Clang_AST.expr_kind -> string
val stmt_kind_name : Clang_AST.stmt_kind -> string

Basic AST and parsing structures

val string_of_loc : Clang_AST.loc -> string
val string_of_range : Clang_AST.range -> string
val string_of_diagnostic : Clang_AST.diagnostic -> string
val string_of_target_EABI : Clang_AST.target_EABI -> string
val string_of_target_options : Clang_AST.target_options -> string
val string_of_target_info : Clang_AST.target_info -> string

Names from declarations

val name : Clang_AST.name -> string
val enum_name : Clang_AST.enum_decl -> string
val record_name : Clang_AST.record_decl -> string

High-level AST constructions

val string_of_decl : Clang_AST.decl -> string
val string_of_type : Clang_AST.typ -> string
val string_of_type_qual : Clang_AST.type_qual -> string
val string_of_expr : Clang_AST.expr -> string
val string_of_stmt : Clang_AST.stmt -> string
OCaml

Innovation. Community. Security.