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.
|
|
|
(*
|
|
|
|
* Copyright (c) 2015 - 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.
|
|
|
|
*)
|
|
|
|
|
|
|
|
(** Type of functions to report issues to the error_log in a spec. *)
|
|
|
|
type log_issue =
|
|
|
|
Procname.t ->
|
|
|
|
?loc: Sil.location option ->
|
|
|
|
?node_id: (int * int) option ->
|
|
|
|
?session: int option ->
|
|
|
|
?ltr: Errlog.loc_trace option ->
|
|
|
|
?pre: Prop.normal Prop.t option ->
|
|
|
|
exn ->
|
|
|
|
unit
|
|
|
|
|
|
|
|
(** Report an error in the given procedure. *)
|
|
|
|
val log_error : log_issue
|
|
|
|
|
|
|
|
(** Report a warning in the given procedure. *)
|
|
|
|
val log_warning : log_issue
|
|
|
|
|
|
|
|
(** Report an info in the given procedure. *)
|
|
|
|
val log_info : log_issue
|