forked from coccinelle/coccinelle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cocci.mli
32 lines (28 loc) · 1.22 KB
/
cocci.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
open Common
(* full_engine takes (coccifile, isofile) and cfiles in parameters and
* returns a list associating to the input cfiles, and maybe header
* files that was also required to be modified, the files containing the
* result (in general files in /tmp).
*
* This function use memoisation internally, which is useful when
* use -dir to not redo twice the same work. So take care!
*)
val full_engine :
(filename * filename) -> filename list ->
(filename * filename option) list
(* because of the #include "toto.c" and also because we may associate the
* same C file to multiple drivers because they share code, we can
* modify multiple times the same file when use -dir. This check
* remove duplicates and check that the modification are consistent
* among the different drivers.
*)
val check_duplicate_modif :
(filename * filename option) list -> (filename * filename option) list
(* provides memoization *)
val sp_of_file :
filename (* coccifile *) -> filename option (* isofile *) ->
Ast_cocci.rule list * Ast_cocci.meta_name list list list *
Ast_cocci.meta_name list list list *
Ast_cocci.meta_name list list list * Ast_cocci.meta_name list list list *
string list list *
string option