[lint] linter to force every file to `open! IStd`

Summary: Otherwise the dead code checker sometimes crashes with a not-totally-related error.

Reviewed By: mbouaziz

Differential Revision: D8732546

fbshipit-source-id: 65caabd
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 9cb36ab840
commit 36f8d8f869

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
(** To be used in 'list_constraint *) (** To be used in 'list_constraint *)
type accept_more type accept_more
and end_of_list and end_of_list

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val add : SourceFile.t -> Cfg.t -> Tenv.per_file -> unit val add : SourceFile.t -> Cfg.t -> Tenv.per_file -> unit
(** Add or replace the row corresponding to the source file into the database. *) (** Add or replace the row corresponding to the source file into the database. *)

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
type analysis_issue = type analysis_issue =
{ bug_kind: string { bug_kind: string
; bug_type: string ; bug_type: string

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
module UnixDiff : sig module UnixDiff : sig
module VISIBLE_FOR_TESTING_DO_NOT_USE_DIRECTLY : sig module VISIBLE_FOR_TESTING_DO_NOT_USE_DIRECTLY : sig
type t = Unchanged | New | Old type t = Unchanged | New | Old

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
type t type t
val empty : t val empty : t

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val in_child : bool ref val in_child : bool ref
(** Keep track of whether the current execution is in a child process *) (** Keep track of whether the current execution is in a child process *)

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val database_filename : string val database_filename : string
(** the relative path to the database from the results directory *) (** the relative path to the database from the results directory *)

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val resolve_method_with_block_args_and_analyze : val resolve_method_with_block_args_and_analyze :
caller_pdesc:Procdesc.t -> Typ.Procname.t -> (Exp.t * Typ.t) list caller_pdesc:Procdesc.t -> Typ.Procname.t -> (Exp.t * Typ.t) list
-> (Summary.t * (Exp.t * Typ.t) list) option -> (Summary.t * (Exp.t * Typ.t) list) option

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
(** Raised when the parser encounters a violation of a certain invariant *) (** Raised when the parser encounters a violation of a certain invariant *)
exception ALParserInvariantViolationException of string exception ALParserInvariantViolationException of string

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val get_methods : val get_methods :
CAst_utils.procname_from_decl -> Tenv.t -> Clang_ast_t.decl list -> Typ.Procname.t list CAst_utils.procname_from_decl -> Tenv.t -> Clang_ast_t.decl list -> Typ.Procname.t list

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
module ClosureHashtbl : Caml.Map.S with type key = CTL.t module ClosureHashtbl : Caml.Map.S with type key = CTL.t
type context_linter_map = bool ClosureHashtbl.t type context_linter_map = bool ClosureHashtbl.t

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val test_to_run_java : string option -> string option -> string option -> unit val test_to_run_java : string option -> string option -> string option -> unit
val _test_to_run_clang : val _test_to_run_clang :

@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
open Javalib_pack open Javalib_pack
val string_cl : string val string_cl : string

@ -4,5 +4,6 @@
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
let go _ = () let go _ = ()

@ -5,4 +5,6 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*) *)
open! IStd
val go : string list -> unit val go : string list -> unit

Loading…
Cancel
Save