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