Remove -open(Utils) compile flag hack

Summary:public
Eliminate the use of the -open Utils command line option passed to the compiler in favor of `open! Utils` in each source file.  While slightly convenient, this option causes more headaches than it is worth with other tools e.g. merlin.

Reviewed By: jvillard

Differential Revision: D3168193

fb-gh-sync-id: 4285ef6
fbshipit-source-id: 4285ef6
master
Josh Berdine 9 years ago committed by Facebook Github Bot 0
parent 037b27d465
commit e1020c8ebe

@ -18,7 +18,3 @@ us a line at cla@fb.com. Thanks!
`infer/tests/codetoanalyze/` and
`infer/tests/{endtoend,frontend}/`. To run the all tests, execute
`make test`.
## Hacking
* Be aware that the build system implicitly opens the Utils module.

@ -10,6 +10,5 @@ PKG str
PKG unix
PKG yojson
PKG zip
FLG -open Utils
FLG -principal -safe-string -short-paths -strict-formats -strict-sequence
FLG -w +a-4-9-40-41-42-45-48-50

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
module L = Logging

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module to manage the table of attributes. *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Control Flow Graph for Interprocedural Analysis *)
(** {2 ADT node and proc_desc} *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for call graphs *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for call graphs *)
type in_out_calls =

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Internal representation of data structure for Java, Objective-C and C++ classes,
C-style structs struct and union,
And Objective C protocol *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Internal representation of data structure for Java, Objective-C and C++ classes,
C-style structs struct and union,
And Objective C protocol *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Names and Identifiers *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Identifiers: program variables and logical variables *)
(** Program and logical variables. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
module L = Logging

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Location in the original source file *)
type t = {
line: int; (** The line number. -1 means "do not know" *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Mangled Names *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Mangled Names *)
(** Type of mangled names *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Attributes of a procedure. *)
module L = Logging

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Attributes of a procedure. *)
type objc_accessor_type =

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Procedure Names *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Procedure Names. *)
(** Type of java procedure names. *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** The Smallfoot Intermediate Language *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Program variables. *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** The Smallfoot Intermediate Language *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** The Smallfoot Intermediate Language *)
module F = Format

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Type Environments. *)
(** Hash tables on strings. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for Type Environments. *)
type t (** Type for type environment. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
(** Named types. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Named types. *)
type t =
| TN_typedef of Mangled.t

@ -40,7 +40,6 @@ OCAMLBUILD_OPTIONS = \
-cflags -strict-sequence \
-cflags -w,$(OCAML_FATAL_WARNINGS)-4-9-40-41-42-45-48-50 \
-tag-line "<*{clang/clang_ast_*,backend/jsonbug_*}>: warn(-27-32-35-39)" \
-tag-line "not <**/{config,iList,utils}.*>: open(Utils)" \
-pkgs atdgen,extlib,oUnit,str,unix,yojson,zip
ifeq (@ENABLE_OCAML_ANNOT@,yes)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Database of analysis results *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Database of analysis results *)
(** {2 Filename} *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Implementation of Abstraction Functions *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Implementation of Abstraction Functions *)
(** Abstraction rules discovered *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Abstraction for Arrays *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Abstraction for Arrays *)
(** Apply array abstraction and check the result *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Generate unit tests automatically from specs *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Generate unit tests automatically from specs *)
(** type of generated code *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Classify bugs into buckets *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Classify bugs into buckets *)
(** Classify the bucket of an error desc using Location.access and nullable information *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for builtin functions with their symbolic execution handler *)
type args = {

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for builtin functions with their symbolic execution handler *)
type args = {

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
(** Module to register and invoke callbacks *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module to register and invoke callbacks *)
type proc_callback_args = {

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
(** Module to process clusters of procedures. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Operators for the abstract domain. In particular, join and meet. *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Join and Meet Operators *)
(** {2 Join Operators} *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Pretty printing functions in dot format. *)
(** {2 Propositions} *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Create descriptions of analysis errors *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Create descriptions of analysis errors *)
(** find the dexp, if any, where the given value is stored

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for error logs. *)
(** Element of a loc trace *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Escape a string for use in a CSV or XML file: replace reserved
characters with escape sequences *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Escape a string for use in a CSV or XML file: replace reserved
characters with escape sequences *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Functions for logging and printing exceptions *)
type exception_visibility = (** visibility of the exception *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Support for Execution environments *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Support for Execution environments *)
(** initial state, used to add cg's *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Main module for the analysis after the capture phase *)
module L = Logging

@ -8,4 +8,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Main module for the analysis after the capture phase *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
(** Look up a key in a json file containing a list of strings *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** get the path to the .inferconfig file *)
val inferconfig : unit -> string

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format
open Jsonbug_j

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Interprocedural Analysis *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Interprocedural Analysis *)
(** Perform the analysis of an exe_env *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module to handle IO. Includes html and xml modules. *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module to handle IO. Includes html and xml modules. *)
module Html : sig

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Object representing the status of the join operation *)
type mode =

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Object representing the status of the join operation *)
type mode =

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
(** Produce output in latex *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
type style =
| Boldface
| Roman

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Support for localisation *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Support for localisation *)
(** type of string used for localisation *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** log messages at different levels of verbosity *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** log messages at different levels of verbosity *)
(** type of printable elements *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Functions for "Smart" Pattern Matching *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Implementation of "Smart" Pattern Matching for higher order singly-linked list predicate.
Used for detecting on a given program if some data scructures are matching some predefined higher-order list predicates. When it is the case, these predicates can be used as possible candidates for abstracting the data-structures.

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** This module handles buckets of memory leaks in Objective-C/C++ *)
let objc_arc_flag = "objc_arc"

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** This module handles buckets of memory leaks in Objective-C *)
val objc_arc_flag : string

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Models for the builtin functions supported *)
open SymExec

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Models for the builtin functions supported *)
val __assert_fail : Procname.t

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** This module handles C or Objective-C types for which there are special rules for memory management *)
(** This module models special c struct types from the Apple's Core Foundation libraries

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** This module models special c struct types from the Apple's Core Foundation libraries
for which there are particular rules for memory management. *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for on-demand analysis. *)
module L = Logging

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Module for on-demand analysis. *)
(** Optional set of source dirs to analyze in on-demand mode. *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Execution Paths *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Execution Paths *)
module Path : sig

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module L = Logging
(** find all the predecessors of nodes, using exception links *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Preanalysis for eliminating dead local variables *)
(** Perform liveness analysis *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
(** Wrappers for making pretty-printable modules *)

@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
module F = Format
(** Wrappers for making pretty-printable modules *)

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Printers for the analysis results *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Printers for the analysis results *)
(** Module to read specific lines from files.

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Functions for Propositions (i.e., Symbolic Heaps) *)
module L = Logging

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Functions for Propositions (i.e., Symbolic Heaps) *)
open Sil

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Propositions seen as graphs *)
module F = Format

@ -8,6 +8,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Utils
(** Propositions seen as graphs *)
type t (** prop considered as a graph *)

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save