module Ocamldep: sig .. end
Dependency analysis through the ocamldep tool.
type error =
| |
Execution_error of string list |
| |
Invalid_line of string |
exception Exception of error
type dependency = {
|
file : string; |
|
modules : string list; |
}
The type of dependencies, as reported by ocamldep.
val analyse_files : ?path:string ->
?preprocessor:string -> string list -> dependency list
analyse_files ~path files analyzes the files in
files through ocamldep
executable (whose path is given by
path, defaulting to
"ocamldep").
preprocessor is the command source files should be passed through,
defaulting to
"" (meaning identity).
Raises Exception if either executable cannot be run,
or returns invalid results.