You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

(*
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! IStd
(** Module for user-defined checkers. *)
(** State that persists in the .specs files. *)
module ST : sig
(** Report an error. *)
val report_error:
Tenv.t ->
Typ.Procname.t ->
Procdesc.t ->
Localise.t ->
Location.t ->
?advice: string option ->
?field_name: Fieldname.t option ->
?origin_loc: Location.t option ->
?exception_kind: (string -> Localise.error_desc -> exn) ->
?always_report: bool ->
string ->
unit
end (* ST *)
module PP : sig
(** Print a range of lines of the source file in [loc], including [nbefore] lines before loc
and [nafter] lines after [loc] *)
val pp_loc_range : Printer.LineReader.t -> int -> int -> Format.formatter -> Location.t -> unit
end (* PP *)