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.
31 lines
687 B
31 lines
687 B
10 years ago
|
(*
|
||
|
* Copyright (c) 2015 - Facebook.
|
||
|
* All rights reserved.
|
||
|
*)
|
||
|
|
||
|
(** Filter type for a source file *)
|
||
|
type path_filter = DB.source_file -> bool
|
||
|
|
||
|
(** Filter type for an error name. *)
|
||
|
type error_filter = Localise.t -> bool
|
||
|
|
||
|
type filters =
|
||
|
{
|
||
|
path_filter : path_filter;
|
||
|
error_filter: error_filter;
|
||
|
}
|
||
|
|
||
|
(** Filters that accept everything. *)
|
||
|
val do_not_filter : filters
|
||
|
|
||
|
(** Create filters based on the config file *)
|
||
|
val create_filters : Utils.analyzer -> filters
|
||
|
|
||
|
module NeverReturnNull : sig
|
||
|
type matcher = DB.source_file -> Procname.t -> bool
|
||
|
val load_matcher : Sil.language -> matcher
|
||
|
end
|
||
|
|
||
|
(** Load the config file and list the files to report on *)
|
||
|
val test: unit -> unit
|