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