1998-11-05 00:08:28 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
1998-11-05 00:08:28 -08:00
|
|
|
(* *)
|
|
|
|
(* Pierre Weis && Damien Doligez, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1998 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1998-11-05 00:08:28 -08:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
2000-08-23 10:13:17 -07:00
|
|
|
open Format
|
|
|
|
|
2009-11-02 04:17:49 -08:00
|
|
|
type t =
|
|
|
|
| Comment_start (* 1 *)
|
|
|
|
| Comment_not_end (* 2 *)
|
2013-05-28 04:05:58 -07:00
|
|
|
| Deprecated of string (* 3 *)
|
2009-11-02 04:17:49 -08:00
|
|
|
| Fragile_match of string (* 4 *)
|
|
|
|
| Partial_application (* 5 *)
|
2015-05-24 00:33:32 -07:00
|
|
|
| Labels_omitted of string list (* 6 *)
|
2009-11-02 04:17:49 -08:00
|
|
|
| Method_override of string list (* 7 *)
|
|
|
|
| Partial_match of string (* 8 *)
|
|
|
|
| Non_closed_record_pattern of string (* 9 *)
|
|
|
|
| Statement_type (* 10 *)
|
|
|
|
| Unused_match (* 11 *)
|
|
|
|
| Unused_pat (* 12 *)
|
2010-04-07 20:58:41 -07:00
|
|
|
| Instance_variable_override of string list (* 13 *)
|
2009-11-02 04:17:49 -08:00
|
|
|
| Illegal_backslash (* 14 *)
|
|
|
|
| Implicit_public_methods of string list (* 15 *)
|
|
|
|
| Unerasable_optional_argument (* 16 *)
|
|
|
|
| Undeclared_virtual_method of string (* 17 *)
|
|
|
|
| Not_principal of string (* 18 *)
|
|
|
|
| Without_principality of string (* 19 *)
|
|
|
|
| Unused_argument (* 20 *)
|
|
|
|
| Nonreturning_statement (* 21 *)
|
2014-05-07 07:52:19 -07:00
|
|
|
| Preprocessor of string (* 22 *)
|
2010-01-29 07:02:39 -08:00
|
|
|
| Useless_record_with (* 23 *)
|
|
|
|
| Bad_module_name of string (* 24 *)
|
|
|
|
| All_clauses_guarded (* 25 *)
|
2009-11-02 04:17:49 -08:00
|
|
|
| Unused_var of string (* 26 *)
|
|
|
|
| Unused_var_strict of string (* 27 *)
|
2009-11-19 04:27:15 -08:00
|
|
|
| Wildcard_arg_to_constant_constr (* 28 *)
|
2010-01-07 07:15:07 -08:00
|
|
|
| Eol_in_string (* 29 *)
|
2013-02-26 04:46:28 -08:00
|
|
|
| Duplicate_definitions of string * string * string * string (* 30 *)
|
2012-01-17 13:57:54 -08:00
|
|
|
| Multiple_definition of string * string * string (* 31 *)
|
2012-01-18 00:31:11 -08:00
|
|
|
| Unused_value_declaration of string (* 32 *)
|
|
|
|
| Unused_open of string (* 33 *)
|
|
|
|
| Unused_type_declaration of string (* 34 *)
|
|
|
|
| Unused_for_index of string (* 35 *)
|
|
|
|
| Unused_ancestor of string (* 36 *)
|
2013-02-26 04:46:28 -08:00
|
|
|
| Unused_constructor of string * bool * bool (* 37 *)
|
2014-05-04 16:08:45 -07:00
|
|
|
| Unused_extension of string * bool * bool (* 38 *)
|
2012-05-29 05:30:49 -07:00
|
|
|
| Unused_rec_flag (* 39 *)
|
2013-04-26 06:09:24 -07:00
|
|
|
| Name_out_of_scope of string * string list * bool (* 40 *)
|
|
|
|
| Ambiguous_name of string list * string list * bool (* 41 *)
|
2013-02-18 18:45:09 -08:00
|
|
|
| Disambiguated_name of string (* 42 *)
|
2013-02-18 19:12:36 -08:00
|
|
|
| Nonoptional_label of string (* 43 *)
|
2013-05-16 05:36:15 -07:00
|
|
|
| Open_shadow_identifier of string * string (* 44 *)
|
2013-06-18 01:01:02 -07:00
|
|
|
| Open_shadow_label_constructor of string * string (* 45 *)
|
2013-10-04 01:18:50 -07:00
|
|
|
| Bad_env_variable of string * string (* 46 *)
|
|
|
|
| Attribute_payload of string * string (* 47 *)
|
2014-03-26 11:09:28 -07:00
|
|
|
| Eliminated_optional_arguments of string list (* 48 *)
|
2015-10-21 06:05:12 -07:00
|
|
|
| No_cmi_file of string * string option (* 49 *)
|
2015-06-28 06:11:50 -07:00
|
|
|
| Bad_docstring of bool (* 50 *)
|
|
|
|
| Expect_tailcall (* 51 *)
|
2015-10-15 05:30:10 -07:00
|
|
|
| Fragile_literal_pattern (* 52 *)
|
2015-10-23 01:18:08 -07:00
|
|
|
| Misplaced_attribute of string (* 53 *)
|
|
|
|
| Duplicated_attribute of string (* 54 *)
|
|
|
|
| Inlining_impossible of string (* 55 *)
|
2015-10-23 01:33:44 -07:00
|
|
|
| Unreachable_case (* 56 *)
|
2015-12-04 06:44:53 -08:00
|
|
|
| Ambiguous_pattern of string list (* 57 *)
|
2015-11-29 08:23:38 -08:00
|
|
|
| No_cmx_file of string (* 58 *)
|
2016-01-14 04:03:17 -08:00
|
|
|
| Assignment_to_non_mutable_value (* 59 *)
|
1998-11-05 00:08:28 -08:00
|
|
|
;;
|
|
|
|
|
2001-09-06 01:52:32 -07:00
|
|
|
val parse_options : bool -> string -> unit;;
|
1998-11-05 00:08:28 -08:00
|
|
|
|
|
|
|
val is_active : t -> bool;;
|
2000-08-23 10:13:17 -07:00
|
|
|
val is_error : t -> bool;;
|
|
|
|
|
2009-11-02 04:17:49 -08:00
|
|
|
val defaults_w : string;;
|
|
|
|
val defaults_warn_error : string;;
|
|
|
|
|
2015-04-26 14:05:26 -07:00
|
|
|
val print : formatter -> t -> unit;;
|
2000-08-23 10:13:17 -07:00
|
|
|
|
|
|
|
exception Errors of int;;
|
1998-11-05 00:08:28 -08:00
|
|
|
|
2000-08-23 10:13:17 -07:00
|
|
|
val check_fatal : unit -> unit;;
|
2015-12-03 05:31:46 -08:00
|
|
|
val reset_fatal: unit -> unit
|
2010-05-04 11:44:38 -07:00
|
|
|
|
|
|
|
val help_warnings: unit -> unit
|
2013-10-04 01:18:50 -07:00
|
|
|
|
|
|
|
type state
|
|
|
|
val backup: unit -> state
|
|
|
|
val restore: state -> unit
|