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
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
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 *)
|
|
|
|
| Deprecated (* 3 *)
|
|
|
|
| Fragile_match of string (* 4 *)
|
|
|
|
| Partial_application (* 5 *)
|
|
|
|
| Labels_omitted (* 6 *)
|
|
|
|
| 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 *)
|
|
|
|
| Camlp4 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 *)
|
2010-04-29 23:26:51 -07: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 *)
|
|
|
|
| Unused_constructor of string (* 37 *)
|
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;;
|
|
|
|
|
2000-10-26 06:38:43 -07:00
|
|
|
val print : formatter -> t -> int;;
|
|
|
|
(* returns the number of newlines in the printed string *)
|
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;;
|
2010-05-04 11:44:38 -07:00
|
|
|
|
|
|
|
val help_warnings: unit -> unit
|