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