Summary: Also ondemand doesn't need to call Topl itself after an analysis. Inline last call site of SummaryReporting (ondemand.ml) and delete the file. Reviewed By: ngorogiannis Differential Revision: D21424386 fbshipit-source-id: 064f4e261master
parent
2ac24f67e2
commit
bcb5b8356f
@ -1,20 +0,0 @@
|
||||
(*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
open! IStd
|
||||
|
||||
type log_t = Reporting.log_t
|
||||
|
||||
let log_error summary ~loc ?ltr ?extras issue_type error_message =
|
||||
let attrs = Summary.get_attributes summary in
|
||||
let err_log = Summary.get_err_log summary in
|
||||
Reporting.log_error attrs err_log ~loc ?ltr ?extras issue_type error_message
|
||||
|
||||
|
||||
let log_error_using_state summary exn =
|
||||
BiabductionReporting.log_error_using_state (Summary.get_proc_desc summary)
|
||||
(Summary.get_err_log summary) exn
|
@ -1,18 +0,0 @@
|
||||
(*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
open! IStd
|
||||
|
||||
(** convencience functions on top of {!Reporting} *)
|
||||
|
||||
type log_t = Reporting.log_t
|
||||
|
||||
val log_error : Summary.t -> loc:Location.t -> log_t
|
||||
(** Add an error to the given summary. *)
|
||||
|
||||
val log_error_using_state : Summary.t -> exn -> unit
|
||||
(** Add an error to the given summary using biabduction state (DO NOT USE ELSEWHERE). *)
|
@ -0,0 +1,18 @@
|
||||
; Copyright (c) Facebook, Inc. and its affiliates.
|
||||
;
|
||||
; This source code is licensed under the MIT license found in the
|
||||
; LICENSE file in the root directory of this source tree.
|
||||
|
||||
(ocamllex ToplLexer)
|
||||
|
||||
(menhir (flags --unused-token INDENT --explain) (modules ToplParser))
|
||||
|
||||
(library
|
||||
(name TOPL)
|
||||
(public_name infer.TOPL)
|
||||
(flags
|
||||
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated
|
||||
-open InferBase -open Absint -open Biabduction))
|
||||
(libraries core InferStdlib InferGenerated InferBase InferIR absint biabduction)
|
||||
(preprocess (pps ppx_compare ppx_hash ppx_sexp_conv))
|
||||
)
|
Loading…
Reference in new issue