Release coccinelle-0.2.3rc1
[bpt/coccinelle.git] / flag_cocci.ml
CommitLineData
5636bb2c
C
1(*
2 * Copyright 2005-2010, Ecole des Mines de Nantes, University of Copenhagen
3 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
4 * This file is part of Coccinelle.
5 *
6 * Coccinelle is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, according to version 2 of the License.
9 *
10 * Coccinelle is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * The authors reserve the right to distribute this or future versions of
19 * Coccinelle under other licenses.
20 *)
21
22
9f8e26f4 23(*
ae4735db 24 * Copyright 2005-2010, Ecole des Mines de Nantes, University of Copenhagen
9f8e26f4
C
25 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
26 * This file is part of Coccinelle.
27 *
28 * Coccinelle is free software: you can redistribute it and/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation, according to version 2 of the License.
31 *
32 * Coccinelle is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 * GNU General Public License for more details.
36 *
37 * You should have received a copy of the GNU General Public License
38 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
39 *
40 * The authors reserve the right to distribute this or future versions of
41 * Coccinelle under other licenses.
42 *)
43
44
34e49164
C
45(* the inputs *)
46let show_c = ref false
47let show_cocci = ref false
48
49(* the output *)
50let show_diff = ref true
51
52(* the derived inputs *)
53let show_flow = ref false
54let show_before_fixed_flow = ref false
55
faf9a90c
C
56let show_ctl_tex = ref false
57let show_ctl_text = ref false
34e49164
C
58
59let inline_let_ctl = ref false
60let show_mcodekind_in_ctl = ref false
61
62(* the "underived" outputs *)
34e49164 63let show_binding_in_out = ref false
faf9a90c 64let show_dependencies = ref false
34e49164 65
708f4980
C
66let verbose_cocci = ref true
67
34e49164
C
68let windows = ref false
69
70let popl = ref false
71
708f4980 72let ifdef_to_if = ref true(*false*)
485bce71 73
faf9a90c
C
74type include_options =
75 I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES | I_ALL_INCLUDES
76let include_options = ref I_UNSPECIFIED
77
c3e37e97 78let include_path = ref ([] : string list)
34e49164
C
79(* if true then when have a #include "../../xx.h", we look also for xx.h in
80 * current directory. This is because of how works extract_c_and_res
81 *)
82
ae4735db 83let relax_include_path = ref false
34e49164
C
84
85let timeout = ref (None : int option)
86
87let worth_trying_opt = ref true