module Warnings:sig
..end
Warning definitions
Warning: this module is unstable and part of compiler-libs.
type
loc = {
|
loc_start : |
|
loc_end : |
|
loc_ghost : |
type
t =
| |
Comment_start |
| |
Comment_not_end |
| |
Deprecated of |
| |
Fragile_match of |
| |
Partial_application |
| |
Labels_omitted of |
| |
Method_override of |
| |
Partial_match of |
| |
Non_closed_record_pattern of |
| |
Statement_type |
| |
Unused_match |
| |
Unused_pat |
| |
Instance_variable_override of |
| |
Illegal_backslash |
| |
Implicit_public_methods of |
| |
Unerasable_optional_argument |
| |
Undeclared_virtual_method of |
| |
Not_principal of |
| |
Without_principality of |
| |
Unused_argument |
| |
Nonreturning_statement |
| |
Preprocessor of |
| |
Useless_record_with |
| |
Bad_module_name of |
| |
All_clauses_guarded |
| |
Unused_var of |
| |
Unused_var_strict of |
| |
Wildcard_arg_to_constant_constr |
| |
Eol_in_string |
| |
Duplicate_definitions of |
| |
Multiple_definition of |
| |
Unused_value_declaration of |
| |
Unused_open of |
| |
Unused_type_declaration of |
| |
Unused_for_index of |
| |
Unused_ancestor of |
| |
Unused_constructor of |
| |
Unused_extension of |
| |
Unused_rec_flag |
| |
Name_out_of_scope of |
| |
Ambiguous_name of |
| |
Disambiguated_name of |
| |
Nonoptional_label of |
| |
Open_shadow_identifier of |
| |
Open_shadow_label_constructor of |
| |
Bad_env_variable of |
| |
Attribute_payload of |
| |
Eliminated_optional_arguments of |
| |
No_cmi_file of |
| |
Bad_docstring of |
| |
Expect_tailcall |
| |
Fragile_literal_pattern |
| |
Misplaced_attribute of |
| |
Duplicated_attribute of |
| |
Inlining_impossible of |
| |
Unreachable_case |
| |
Ambiguous_pattern of |
| |
No_cmx_file of |
| |
Assignment_to_non_mutable_value |
| |
Unused_module of |
| |
Unboxable_type_in_prim_decl of |
| |
Constraint_on_gadt |
| |
Erroneous_printed_signature of |
| |
Unsafe_without_parsing |
| |
Redefining_unit of |
val parse_options : bool -> string -> unit
val without_warnings : (unit -> 'a) -> 'a
val is_active : t -> bool
val is_error : t -> bool
val defaults_w : string
val defaults_warn_error : string
type
reporting_information = {
|
number : |
|
message : |
|
is_error : |
|
sub_locs : |
val report : t -> [ `Active of reporting_information | `Inactive ]
exception Errors
val check_fatal : unit -> unit
val reset_fatal : unit -> unit
val help_warnings : unit -> unit
type
state
val backup : unit -> state
val restore : state -> unit
val mk_lazy : (unit -> 'a) -> 'a Lazy.t
Like Lazy.of_fun
, but the function is applied with
the warning settings at the time mk_lazy
is called.