package mopsa

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

Clang_parser_cache - Cache parsed AST to improve efficiency.

AST are cached in marshalized files. We store the list of files used during parsing and check that they have not been modified before using the cache.

val debug : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val version : string

Version number. This is checked when using the cache, and should be changed when the signature or the AST type change to invalidate the cache.

type file_signature = string * float * int

Source file identification.

type signature = string * Clang_AST.target_options * string array * file_signature list

Parse identification.

val file_abs : 'a -> 'a

Make filename absolute.

val get_file_signature : string -> file_signature
val get_signature : string -> Clang_AST.target_options -> string array -> string list -> signature
val check_signature : 'a -> 'b -> 'c -> ('a * 'b * 'c * file_signature list) -> bool

Checks that the signature is valid.

val file_cache_name : string -> string

File name of cache for a given source file name.

val parse : string -> Clang_AST.target_options -> bool -> string -> string array -> Clang_parser.parse_result
OCaml

Innovation. Community. Security.