Coccinelle release-1.0.0-rc11
[bpt/coccinelle.git] / flag_cocci.ml
1 (*
2 * Copyright 2012, INRIA
3 * Julia Lawall, Gilles Muller
4 * Copyright 2010-2011, INRIA, University of Copenhagen
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
27 (* the inputs *)
28 let show_c = ref false
29 let show_cocci = ref false
30
31 (* the output *)
32 let show_diff = ref true
33 let force_diff = ref false (*show diff even if thhere are only space changes*)
34
35 (* the derived inputs *)
36 let show_flow = ref false
37 let show_before_fixed_flow = ref false
38
39 let show_ctl_tex = ref false
40 let show_ctl_text = ref false
41
42 let inline_let_ctl = ref false
43 let show_mcodekind_in_ctl = ref false
44
45 (* the "underived" outputs *)
46 let show_binding_in_out = ref false
47 let show_dependencies = ref false
48
49 let verbose_cocci = ref true
50
51 let windows = ref false
52
53 let popl = ref false
54
55 let ifdef_to_if = ref true(*false*)
56
57 type include_options =
58 I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES
59 | I_ALL_INCLUDES | I_REALLY_ALL_INCLUDES
60 let include_options = ref I_UNSPECIFIED
61
62 let include_path = ref ([] : string list)
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
67 let relax_include_path = ref false
68
69 let timeout = ref (None : int option)
70
71 let worth_trying_opt = ref true
72
73 let use_saved_typedefs = ref true (* hack! *)