| 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 | # 0 "./flag_cocci.ml" |
| 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 |
| 34 | let force_diff = ref false (*show diff even if thhere are only space changes*) |
| 35 | |
| 36 | (* the derived inputs *) |
| 37 | let show_flow = ref false |
| 38 | let show_before_fixed_flow = ref false |
| 39 | |
| 40 | let show_ctl_tex = ref false |
| 41 | let show_ctl_text = ref false |
| 42 | |
| 43 | let inline_let_ctl = ref false |
| 44 | let show_mcodekind_in_ctl = ref false |
| 45 | |
| 46 | (* the "underived" outputs *) |
| 47 | let show_binding_in_out = ref false |
| 48 | let show_dependencies = ref false |
| 49 | |
| 50 | let verbose_cocci = ref true |
| 51 | |
| 52 | let windows = ref false |
| 53 | |
| 54 | let popl = ref false |
| 55 | |
| 56 | let ifdef_to_if = ref true(*false*) |
| 57 | |
| 58 | type include_options = |
| 59 | I_UNSPECIFIED | I_NO_INCLUDES | I_NORMAL_INCLUDES |
| 60 | | I_ALL_INCLUDES | I_REALLY_ALL_INCLUDES |
| 61 | let include_options = ref I_UNSPECIFIED |
| 62 | |
| 63 | let include_path = ref ([] : string list) |
| 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 | |
| 68 | let relax_include_path = ref false |
| 69 | |
| 70 | let extra_includes = ref ([] : string list) |
| 71 | |
| 72 | let timeout = ref (None : int option) |
| 73 | |
| 74 | let worth_trying_opt = ref true |
| 75 | |
| 76 | let use_saved_typedefs = ref true (* hack! *) |