rename most libraries to be more consistent

Summary:
- Capitalise names
- Remove Infer prefixes

```
git ls-files | grep /dune | xargs sed -i -e 's/absint/Absint/g' -e 's/InferIR/IR/g' -e 's/InferStdlib/IStdlib/g' -e 's/InferGenerated/ATDGenerated/g' -e 's/InferBase/IBase/g' -e 's/biabduction/Biabduction/g' -e 's/nullsafe/Nullsafe/g' -e 's/\bbo\b/BO/g' -e 's/\bBo\b/BO/g' -e 's/checkers/Checkers/g' -e 's/costlib/Costlib/g' -e 's/quandary/Quandary/g' -e 's/concurrency/Concurrency/g' -e 's/pulse/Pulse/g' -e 's/labs/Labs/g' -e 's/\bjava\b/JavaFrontend/g' -e 's/\bJava\b/JavaFrontend/' -e 's/JavaStubs/JavaFrontendStubs/' -e 's/integration/Integration/g' -e 's/InferCStubs/CStubs/g'
```

Reviewed By: ngorogiannis

Differential Revision: D21440820

fbshipit-source-id: 1c5d10dd4
master
Jules Villard 5 years ago committed by Facebook GitHub Bot
parent 0b4254caa2
commit 041ecc5b43

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name InferIR) (name IR)
(public_name infer.InferIR) (public_name infer.IR)
(flags (flags
(:standard -open Core -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IStdlib -open IStd -open ATDGenerated
-open InferBase)) -open IBase))
(libraries core zarith InferStdlib InferGenerated InferBase) (libraries core zarith IStdlib ATDGenerated IBase)
(preprocess (preprocess
(pps ppx_compare))) (pps ppx_compare)))

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name absint) (name Absint)
(public_name infer.absint) (public_name infer.Absint)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase)) -open IBase))
(libraries core InferStdlib InferGenerated InferBase InferIR) (libraries core IStdlib ATDGenerated IBase IR)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -19,9 +19,9 @@ let al =
(modules %s) (modules %s)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open Absint -open ClangFrontend)) -open IBase -open IR -open Absint -open ClangFrontend))
(libraries core InferStdlib InferGenerated InferBase InferIR absint ClangFrontend) (libraries core IStdlib ATDGenerated IBase IR Absint ClangFrontend)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
)|} )|}
(if clang then ":standard" else "") (if clang then ":standard" else "")

@ -4,8 +4,8 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name InferGenerated) (name ATDGenerated)
(public_name infer.InferGenerated) (public_name infer.ATDGenerated)
(flags (flags
(:standard -w -27-32-34-35-39)) (:standard -w -27-32-34-35-39))
(libraries atdgen core) (libraries atdgen core)

@ -4,15 +4,15 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name backend) (name Backend)
(public_name infer.backend) (public_name infer.Backend)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open Absint -open Biabduction -open Bo -open Nullsafe -open IBase -open IR -open Absint -open Biabduction -open BO -open Nullsafe
-open Pulselib -open Checkers -open Costlib -open Quandary -open TOPLlib -open Pulselib -open Checkers -open Costlib -open Quandary -open TOPLlib
-open Concurrency -open Labs)) -open Concurrency -open Labs))
(libraries core InferStdlib InferGenerated InferBase InferIR absint biabduction nullsafe bo (libraries core IStdlib ATDGenerated IBase IR Absint Biabduction Nullsafe BO
checkers costlib quandary TOPLlib concurrency labs) Checkers Costlib Quandary TOPLlib Concurrency Labs)
(preprocess (pps ppx_compare ppx_fields_conv)) (preprocess (pps ppx_compare ppx_fields_conv))
) )

@ -4,10 +4,10 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name InferBase) (name IBase)
(public_name infer.InferBase) (public_name infer.IBase)
(flags (:standard -open Core -open InferStdlib -open IStd -open InferGenerated -open OpenSource)) (flags (:standard -open Core -open IStdlib -open IStd -open ATDGenerated -open OpenSource))
(libraries cmdliner core mtime.clock.os parmap re sqlite3 zip InferGenerated (libraries cmdliner core mtime.clock.os parmap re sqlite3 zip ATDGenerated
InferStdlib OpenSource) IStdlib OpenSource)
(preprocess (preprocess
(pps ppx_compare ppx_enumerate))) (pps ppx_compare ppx_enumerate)))

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name biabduction) (name Biabduction)
(public_name infer.biabduction) (public_name infer.Biabduction)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint)) -open IBase -open Absint))
(libraries core InferStdlib InferGenerated InferBase InferIR absint) (libraries core IStdlib ATDGenerated IBase IR Absint)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name bo) (name BO)
(public_name infer.bo) (public_name infer.BO)
(flags (flags
(:standard -open Core -open OpenSource -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open OpenSource -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint -open Biabduction)) -open IBase -open Absint -open Biabduction))
(libraries base64 core InferStdlib InferGenerated InferBase InferIR absint biabduction) (libraries base64 core IStdlib ATDGenerated IBase IR Absint Biabduction)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -4,8 +4,8 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name InferCStubs) (name CStubs)
(public_name infer.InferCStubs) (public_name infer.CStubs)
(foreign_stubs (foreign_stubs
(language c) (language c)
(names fnv64_hash))) (names fnv64_hash)))

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name checkers) (name Checkers)
(public_name infer.checkers) (public_name infer.Checkers)
(flags (flags
(:standard -open Core -open OpenSource -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open OpenSource -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint -open Biabduction -open Bo -open Pulselib)) -open IBase -open Absint -open Biabduction -open BO -open Pulselib))
(libraries base64 core ocamlgraph InferStdlib InferGenerated InferBase InferIR absint biabduction bo pulselib) (libraries base64 core ocamlgraph IStdlib ATDGenerated IBase IR Absint Biabduction BO Pulselib)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -15,9 +15,9 @@ let clang =
(modules %s) (modules %s)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open Absint -open Checkers -open TestDeterminators)) -open IBase -open IR -open Absint -open Checkers -open TestDeterminators))
(libraries core InferStdlib InferGenerated InferBase InferIR absint checkers TestDeterminators) (libraries core IStdlib ATDGenerated IBase IR Absint Checkers TestDeterminators)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
)|} )|}
(if clang then ":standard \\ ClangFrontendStubs" else "ClangFrontendStubs") (if clang then ":standard \\ ClangFrontendStubs" else "ClangFrontendStubs")

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name concurrency) (name Concurrency)
(public_name infer.concurrency) (public_name infer.Concurrency)
(flags (flags
(:standard -open Core -open OpenSource -open InferIR -open InferStdlib -open IStd (:standard -open Core -open OpenSource -open IR -open IStdlib -open IStd
-open InferGenerated -open InferBase -open Absint)) -open ATDGenerated -open IBase -open Absint))
(libraries base64 core InferStdlib InferGenerated InferBase InferIR absint) (libraries base64 core IStdlib ATDGenerated IBase IR Absint)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name costlib) (name Costlib)
(public_name infer.costlib) (public_name infer.Costlib)
(flags (flags
(:standard -open Core -open OpenSource -open InferIR -open InferStdlib -open IStd (:standard -open Core -open OpenSource -open IR -open IStdlib -open IStd
-open InferGenerated -open InferBase -open Absint -open Bo -open Checkers)) -open ATDGenerated -open IBase -open Absint -open BO -open Checkers))
(libraries core sledge InferStdlib InferGenerated InferBase InferIR absint bo checkers) (libraries core sledge IStdlib ATDGenerated IBase IR Absint BO Checkers)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -19,5 +19,5 @@ Format.sprintf
(preprocess (pps ppx_compare ppx_enumerate ppx_fields_conv ppx_hash ppx_sexp_conv ppx_variants_conv -no-check)) (preprocess (pps ppx_compare ppx_enumerate ppx_fields_conv ppx_hash ppx_sexp_conv ppx_variants_conv -no-check))
) )
|} |}
(String.concat " " ("absint" :: "InferIR" :: "InferCStubs" :: common_libraries)) (String.concat " " ("Absint" :: "IR" :: "CStubs" :: common_libraries))
|> Jbuild_plugin.V1.send |> Jbuild_plugin.V1.send

@ -37,7 +37,7 @@ let infer_cflags =
; "-open" ; "-open"
; "Biabduction" ; "Biabduction"
; "-open" ; "-open"
; "Bo" ; "BO"
; "-open" ; "-open"
; "Nullsafe" ; "Nullsafe"
; "-open" ; "-open"
@ -59,17 +59,17 @@ let infer_cflags =
; "-open" ; "-open"
; "OpenSource" ; "OpenSource"
; "-open" ; "-open"
; "InferStdlib" ; "IStdlib"
; "-open" ; "-open"
; "IStd" ; "IStd"
; "-open" ; "-open"
; "InferGenerated" ; "ATDGenerated"
; "-open" ; "-open"
; "InferIR" ; "IR"
; "-open" ; "-open"
; "InferBase" ; "IBase"
; "-open" ; "-open"
; "InferCStubs" ; "CStubs"
; "-open" ; "-open"
; "Backend" ; "Backend"
; "-open" ; "-open"
@ -103,24 +103,24 @@ let main_lib_stanza =
(String.concat " " (String.concat " "
(* we need JavaFrontend first to avoid clashes around base64 vs extlib *) (* we need JavaFrontend first to avoid clashes around base64 vs extlib *)
( ("JavaFrontend" :: common_libraries) ( ("JavaFrontend" :: common_libraries)
@ [ "InferIR" @ [ "IR"
; "InferCStubs" ; "CStubs"
; "absint" ; "Absint"
; "biabduction" ; "Biabduction"
; "nullsafe" ; "Nullsafe"
; "bo" ; "BO"
; "pulselib" ; "Pulselib"
; "checkers" ; "Checkers"
; "costlib" ; "Costlib"
; "quandary" ; "Quandary"
; "TOPLlib" ; "TOPLlib"
; "concurrency" ; "Concurrency"
; "labs" ; "Labs"
; "backend" ; "Backend"
; "ClangFrontend" ; "ClangFrontend"
; "ASTLanguage" ; "ASTLanguage"
; "TestDeterminators" ; "TestDeterminators"
; "integration" ] )) ; "Integration" ] ))
(String.concat " " infer_binaries) (String.concat " " infer_binaries)

@ -11,14 +11,14 @@ let library =
Format.sprintf Format.sprintf
{| {|
(library (library
(name integration) (name Integration)
(public_name infer.integration) (public_name infer.Integration)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open Bo -open Costlib -open Concurrency -open Backend -open IBase -open IR -open BO -open Costlib -open Concurrency -open Backend
-open TestDeterminators -open ClangFrontend -open ASTLanguage -open JavaFrontend %s %s)) -open TestDeterminators -open ClangFrontend -open ASTLanguage -open JavaFrontend %s %s))
(libraries xmlm core InferStdlib InferGenerated InferBase InferIR bo costlib concurrency backend (libraries xmlm core IStdlib ATDGenerated IBase IR BO Costlib Concurrency Backend
TestDeterminators ClangFrontend ASTLanguage JavaFrontend) TestDeterminators ClangFrontend ASTLanguage JavaFrontend)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -4,8 +4,8 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name InferStdlib) (name IStdlib)
(public_name infer.InferStdlib) (public_name infer.IStdlib)
(flags (flags
(:standard -open Core)) (:standard -open Core))
(libraries ANSITerminal core str yojson) (libraries ANSITerminal core str yojson)

@ -17,9 +17,9 @@ let java =
(modules %s) (modules %s)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open Absint)) -open IBase -open IR -open Absint))
(libraries %s core InferStdlib InferGenerated InferBase InferIR absint) (libraries %s core IStdlib ATDGenerated IBase IR Absint)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
)|} )|}
(if java then ":standard \\ JavaFrontendStubs" else "JavaFrontendStubs") (if java then ":standard \\ JavaFrontendStubs" else "JavaFrontendStubs")

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name labs) (name Labs)
(public_name infer.labs) (public_name infer.Labs)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint)) -open IBase -open Absint))
(libraries core InferStdlib InferGenerated InferBase InferIR absint) (libraries core IStdlib ATDGenerated IBase IR Absint)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name nullsafe) (name Nullsafe)
(public_name infer.nullsafe) (public_name infer.Nullsafe)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint -open Biabduction)) -open IBase -open Absint -open Biabduction))
(libraries core InferStdlib InferGenerated InferBase InferIR absint biabduction) (libraries core IStdlib ATDGenerated IBase IR Absint Biabduction)
(preprocess (pps ppx_compare ppx_sexp_conv)) (preprocess (pps ppx_compare ppx_sexp_conv))
) )

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name pulselib) (name Pulselib)
(public_name infer.pulselib) (public_name infer.Pulselib)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint -open Bo)) -open IBase -open Absint -open BO))
(libraries core sledge InferStdlib InferGenerated InferBase InferIR absint bo) (libraries core sledge IStdlib ATDGenerated IBase IR Absint BO)
(preprocess (pps ppx_compare ppx_variants_conv)) (preprocess (pps ppx_compare ppx_variants_conv))
) )

@ -4,11 +4,11 @@
; LICENSE file in the root directory of this source tree. ; LICENSE file in the root directory of this source tree.
(library (library
(name quandary) (name Quandary)
(public_name infer.quandary) (public_name infer.Quandary)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint)) -open IBase -open Absint))
(libraries core InferStdlib InferGenerated InferBase InferIR absint) (libraries core IStdlib ATDGenerated IBase IR Absint)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -8,8 +8,8 @@
(public_name infer.TestDeterminators) (public_name infer.TestDeterminators)
(flags (flags
(:standard (:standard
-open Core -open InferStdlib -open IStd -open OpenSource -open InferGenerated -open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
-open InferBase -open InferIR -open InferCStubs)) -open IBase -open IR -open CStubs))
(libraries core InferStdlib InferGenerated InferBase InferIR InferCStubs) (libraries core IStdlib ATDGenerated IBase IR CStubs)
(preprocess (pps ppx_compare)) (preprocess (pps ppx_compare))
) )

@ -11,8 +11,8 @@
(name TOPLlib) (name TOPLlib)
(public_name infer.TOPLlib) (public_name infer.TOPLlib)
(flags (flags
(:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated (:standard -open Core -open IR -open IStdlib -open IStd -open ATDGenerated
-open InferBase -open Absint -open Biabduction)) -open IBase -open Absint -open Biabduction))
(libraries core InferStdlib InferGenerated InferBase InferIR absint biabduction) (libraries core IStdlib ATDGenerated IBase IR Absint Biabduction)
(preprocess (pps ppx_compare ppx_hash ppx_sexp_conv)) (preprocess (pps ppx_compare ppx_hash ppx_sexp_conv))
) )

@ -16,11 +16,29 @@
#require "sqlite3";; #require "sqlite3";;
#require "xmlm";; #require "xmlm";;
open InferStdlib;; open IStdlib;;
open InferGenerated;; open ATDGenerated;;
open InferBase;; open CStubs;;
open InferIR;; open IBase;;
open InferModules;; open IR;;
open Absint;;
open Biabduction;;
open BO;;
open Nullsafe;;
open Pulselib;;
open Checkers;;
open Costlib;;
open Quandary;;
open TOPLlib;;
open Concurrency;;
open Labs;;
open OpenSource;;
open Backend;;
open JavaFrontend;;
open ClangFrontend;;
open ASTLanguage;;
open TestDeterminators;;
open Integration;;
(* Most of infer uses this, useful for copy/pasting. Can be (partially) countered by typing `open (* Most of infer uses this, useful for copy/pasting. Can be (partially) countered by typing `open
Caml.Pervasives`. *) Caml.Pervasives`. *)

Loading…
Cancel
Save