Summary: `call-graph-schedule` was a boolean, now we have a variant type for scheduler. Reviewed By: jvillard Differential Revision: D29547773 fbshipit-source-id: ec787065c
@ -1502,10 +1502,6 @@ INTERNAL OPTIONS
--buck-targets-blacklist-reset
Set --buck-targets-blacklist to the empty list.
--call-graph-schedule
Activates: use call graph for scheduling analysis (Conversely:
--no-call-graph-schedule)
--no-capture
Deactivates: capture and translate source files into infer's
intermediate language for analysis (Conversely: --capture)
@ -11,7 +11,6 @@
open! IStd
module F = Format
module L = Logging
module CLOpt = CommandLineOption
let clear_caches_except_lrus () =
Summary.OnDisk.clear_cache () ;
@ -134,17 +133,13 @@ let get_source_files_to_analyze ~changed_files =
let tasks_generator_builder_for sources =
if Config.call_graph_schedule then (
CLOpt.warnf "WARNING: '--call-graph-schedule' is deprecated. Use '--scheduler' instead.@." ;
SyntacticCallGraph.make sources )
else
match Config.scheduler with
| File ->
FileScheduler.make sources
| Restart ->
RestartScheduler.make sources
| SyntacticCallGraph ->
SyntacticCallGraph.make sources
let analyze source_files_to_analyze =
@ -856,10 +856,6 @@ and buck_targets_blacklist =
$(b,--buck-compilation-database)."
and call_graph_schedule =
CLOpt.mk_bool ~long:"call-graph-schedule" ~default:false "use call graph for scheduling analysis"
and capture =
CLOpt.mk_bool ~long:"capture" ~default:true
"capture and translate source files into infer's intermediate language for analysis"
@ -2942,8 +2938,6 @@ and buck_mode : BuckMode.t option =
and buck_targets_blacklist = RevList.to_list !buck_targets_blacklist
and call_graph_schedule = !call_graph_schedule
and capture = !capture
and capture_blacklist = !capture_blacklist
@ -191,8 +191,6 @@ val buck_out_gen : string
val buck_targets_blacklist : string list
val call_graph_schedule : bool
val capture : bool
val capture_blacklist : string option