Release of coccinelle 1.0.0-rc9
[bpt/coccinelle.git] / flag_cocci.ml
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
25 (* the inputs *)
26 let show_c = ref false
27 let show_cocci = ref false
28
29 (* the output *)
30 let show_diff = ref true
31 let force_diff = ref false (*show diff even if thhere are only space changes*)
32
33 (* the derived inputs *)
34 let show_flow = ref false
35 let show_before_fixed_flow = ref false
36
37 let show_ctl_tex = ref false
38 let show_ctl_text = ref false
39
40 let inline_let_ctl = ref false
41 let show_mcodekind_in_ctl = ref false
42
43 (* the "underived" outputs *)
44 let show_binding_in_out = ref false
45 let show_dependencies = ref false
46
47 let verbose_cocci = ref true
48
49 let windows = ref false
50
51 let popl = ref false
52
53 let ifdef_to_if = ref true(*false*)
54
55 type include_options =
56 I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES
57 | I_ALL_INCLUDES | I_REALLY_ALL_INCLUDES
58 let include_options = ref I_UNSPECIFIED
59
60 let include_path = ref ([] : string list)
61 (* if true then when have a #include "../../xx.h", we look also for xx.h in
62 * current directory. This is because of how works extract_c_and_res
63 *)
64
65 let relax_include_path = ref false
66
67 let timeout = ref (None : int option)
68
69 let worth_trying_opt = ref true
70
71 let use_saved_typedefs = ref true (* hack! *)