[infer][ondemand] try to load the summary when the procedure description cannot be found

Summary:
In the case of the Buck integration for Java, the summary of the procedure may be found from the classpath even though the procedure description is not available.

Depends on D5027049

Reviewed By: jvillard

Differential Revision: D5027188

fbshipit-source-id: b1a6095
master
Jeremy Dubreil 8 years ago committed by Facebook Github Bot
parent be0cd4fa73
commit 6f85980e6e

@ -69,7 +69,7 @@ let should_be_analyzed proc_name proc_attributes =
not (already_analyzed ()) (* avoid re-analysis of the same procedure *)
let procedure_should_be_analyzed proc_name =
match AttributesTable.load_attributes ~cache:true proc_name with
match Specs.proc_resolve_attributes proc_name with
| Some proc_attributes when Config.reactive_capture && not proc_attributes.is_defined ->
(* try to capture procedure first *)
let defined_proc_attributes = OndemandCapture.try_capture proc_attributes in
@ -219,7 +219,7 @@ let analyze_proc_name ~propagate_exceptions curr_pdesc callee_pname : Specs.summ
match callbacks.get_proc_desc callee_pname with
| Some callee_pdesc ->
analyze_proc_desc ~propagate_exceptions curr_pdesc callee_pdesc
| None -> None
| None -> Specs.get_summary callee_pname
end
else
Specs.get_summary callee_pname

Loading…
Cancel
Save