Reviewed By: jeremydubreil Differential Revision: D6301650 fbshipit-source-id: aae10a3master
parent
d392ed12a8
commit
758048078b
@ -0,0 +1,27 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) 2017 - 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 F = Format
|
||||||
|
|
||||||
|
module type S = sig
|
||||||
|
type t [@@deriving compare]
|
||||||
|
|
||||||
|
val get : Typ.Procname.t -> t option
|
||||||
|
|
||||||
|
val pp : F.formatter -> t -> unit
|
||||||
|
end
|
||||||
|
|
||||||
|
module Dummy = struct
|
||||||
|
type t = unit [@@deriving compare]
|
||||||
|
|
||||||
|
let get _ = None
|
||||||
|
|
||||||
|
let pp _ _ = ()
|
||||||
|
end
|
@ -0,0 +1,23 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) 2017 - 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 F = Format
|
||||||
|
|
||||||
|
(** Sanitizers for filtering traces in taint analysis *)
|
||||||
|
module type S = sig
|
||||||
|
type t [@@deriving compare]
|
||||||
|
|
||||||
|
val get : Typ.Procname.t -> t option
|
||||||
|
(** Get the sanitizer that should be applied to the return value of given procedure, if any *)
|
||||||
|
|
||||||
|
val pp : F.formatter -> t -> unit
|
||||||
|
end
|
||||||
|
|
||||||
|
module Dummy : S
|
Loading…
Reference in new issue