[integration] make it possible to run Inferbo/Quandary/Siof/Threadsafety on Clang buck projects

Summary: Before, running any of these would crash with `Unsupported infer analyzer with Buck flavors:`

Reviewed By: jberdine

Differential Revision: D4970769

fbshipit-source-id: 76be6d5
master
Sam Blackshear 8 years ago committed by Facebook Github Bot
parent 7a0c4d9031
commit 135ac8be7c

@ -52,6 +52,7 @@ let active_procedure_checkers () =
Checkers.callback_print_access_to_globals, false; Checkers.callback_print_access_to_globals, false;
ClangTaintAnalysis.checker, Config.quandary; ClangTaintAnalysis.checker, Config.quandary;
Siof.checker, Config.siof; Siof.checker, Config.siof;
ThreadSafety.analyze_procedure, Config.threadsafety;
BufferOverrunChecker.checker, Config.bufferoverrun; BufferOverrunChecker.checker, Config.bufferoverrun;
] in ] in
List.map ~f:(fun (x, y) -> (x, y, Some Config.Clang)) l in List.map ~f:(fun (x, y) -> (x, y, Some Config.Clang)) l in

@ -51,10 +51,10 @@ let add_flavor_to_target target =
target target
| None, (Linters | Capture) -> | None, (Linters | Capture) ->
add "infer-capture-all" add "infer-capture-all"
| None, (Checkers | Infer) -> | None, (Bufferoverrun | Checkers | Infer | Quandary | Siof | Threadsafety) ->
add "infer" add "infer"
| None, (Eradicate | Tracing | Crashcontext | Quandary | Siof | Threadsafety | Bufferoverrun) -> | None, (Eradicate | Tracing | Crashcontext) ->
failwithf "Unsupported infer analyzer with Buck flavors: %s" failwithf "Analyzer %s is Java-only; not supported with Buck flavors"
(Config.string_of_analyzer Config.analyzer) (Config.string_of_analyzer Config.analyzer)
let add_flavors_to_buck_command build_cmd = let add_flavors_to_buck_command build_cmd =

Loading…
Cancel
Save