[backend] print what we are doing when invalidating for reanalysis

Summary:
This can take a minute or so during which the user would have no idea
what infer is doing.

Reviewed By: ngorogiannis

Differential Revision: D16005393

fbshipit-source-id: 586812527
master
Jules Villard 6 years ago committed by Facebook Github Bot
parent 8eba6503a4
commit 6dee89b786

@ -89,7 +89,10 @@ let register_active_checkers () =
let main ~changed_files = let main ~changed_files =
register_active_checkers () ; register_active_checkers () ;
if Config.reanalyze then Summary.reset_all ~filter:(Lazy.force Filtering.procedures_filter) () if Config.reanalyze then (
L.progress "Invalidating procedures to be reanalyzed@." ;
Summary.reset_all ~filter:(Lazy.force Filtering.procedures_filter) () ;
L.progress "Done@." )
else DB.Results_dir.clean_specs_dir () ; else DB.Results_dir.clean_specs_dir () ;
let n_all_source_files = ref 0 in let n_all_source_files = ref 0 in
let n_source_files_to_analyze = ref 0 in let n_source_files_to_analyze = ref 0 in

Loading…
Cancel
Save