[cli] remove support for deprecated `infer -- analyze`

Summary: It's been deprecated for a while now. Use `infer analyze` instead.

Reviewed By: dulmarod

Differential Revision: D8442682

fbshipit-source-id: 0b8c590
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 4c6ddb7808
commit 8461786f02

@ -80,7 +80,6 @@ type compilation_database_dependencies =
[@@deriving compare] [@@deriving compare]
type build_system = type build_system =
| BAnalyze
| BAnt | BAnt
| BBuck | BBuck
| BClang | BClang
@ -100,8 +99,7 @@ let equal_build_system = [%compare.equal : build_system]
system. In that case, the first one in the list will be used for printing, eg, in which mode system. In that case, the first one in the list will be used for printing, eg, in which mode
infer is running. *) infer is running. *)
let build_system_exe_assoc = let build_system_exe_assoc =
[ (BAnalyze, "analyze") [ (BAnt, "ant")
; (BAnt, "ant")
; (BBuck, "buck") ; (BBuck, "buck")
; (BGradle, "gradle") ; (BGradle, "gradle")
; (BGradle, "gradlew") ; (BGradle, "gradlew")

@ -31,7 +31,6 @@ type compilation_database_dependencies =
[@@deriving compare] [@@deriving compare]
type build_system = type build_system =
| BAnalyze
| BAnt | BAnt
| BBuck | BBuck
| BClang | BClang

@ -448,8 +448,6 @@ let assert_supported_build_system build_system =
(`Java, Config.string_of_build_system build_system) ) (`Java, Config.string_of_build_system build_system) )
in in
assert_supported_mode analyzer build_string assert_supported_mode analyzer build_string
| BAnalyze ->
()
let mode_of_build_command build_cmd = let mode_of_build_command build_cmd =
@ -469,11 +467,6 @@ let mode_of_build_command build_cmd =
in in
assert_supported_build_system build_system ; assert_supported_build_system build_system ;
match (build_system : Config.build_system) with match (build_system : Config.build_system) with
| BAnalyze ->
CLOpt.warnf
"WARNING: `infer -- analyze` is deprecated; use the `infer analyze` subcommand \
instead@." ;
Analyze
| BBuck when Option.is_some Config.buck_compilation_database -> | BBuck when Option.is_some Config.buck_compilation_database ->
BuckCompilationDB (prog, List.append args (List.rev Config.buck_build_args)) BuckCompilationDB (prog, List.append args (List.rev Config.buck_build_args))
| BClang -> | BClang ->

Loading…
Cancel
Save