Release coccinelle-0.2.0
[bpt/coccinelle.git] / flag_cocci.ml
CommitLineData
9f8e26f4
C
1(*
2 * Copyright 2005-2009, 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
34e49164
C
23(* the inputs *)
24let show_c = ref false
25let show_cocci = ref false
26
27(* the output *)
28let show_diff = ref true
29
30(* the derived inputs *)
31let show_flow = ref false
32let show_before_fixed_flow = ref false
33
faf9a90c
C
34let show_ctl_tex = ref false
35let show_ctl_text = ref false
34e49164
C
36
37let inline_let_ctl = ref false
38let show_mcodekind_in_ctl = ref false
39
40(* the "underived" outputs *)
34e49164 41let show_binding_in_out = ref false
faf9a90c 42let show_dependencies = ref false
34e49164 43
708f4980
C
44let verbose_cocci = ref true
45
34e49164
C
46let windows = ref false
47
48let popl = ref false
49
708f4980 50let ifdef_to_if = ref true(*false*)
485bce71 51
faf9a90c
C
52type include_options =
53 I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES | I_ALL_INCLUDES
54let include_options = ref I_UNSPECIFIED
55
b1b2de81 56let include_path = ref (None : string option)
34e49164
C
57(* if true then when have a #include "../../xx.h", we look also for xx.h in
58 * current directory. This is because of how works extract_c_and_res
59 *)
60
34e49164
C
61let relax_include_path = ref false
62
63let timeout = ref (None : int option)
64
65let worth_trying_opt = ref true