[Config] pull some options out of the big group of debug

Summary:
It seems these were put there even though there is no inter-dependency
with any of the other options.

Reviewed By: skcho

Differential Revision: D21686739

fbshipit-source-id: 6578f55c2
master
Jules Villard 5 years ago committed by Facebook GitHub Bot
parent 163f3c687d
commit 4bb836b2c3

@ -1173,7 +1173,7 @@ INTERNAL OPTIONS
../source/File.java ../source/File.java
--biabduction-models-mode --biabduction-models-mode
Activates: Mode for analyzing the biabduction models (Conversely: Activates: Analysis of the biabduction models (Conversely:
--no-biabduction-models-mode) --no-biabduction-models-mode)
--bo-field-depth-limit-reset --bo-field-depth-limit-reset
@ -1862,7 +1862,8 @@ INTERNAL OPTIONS
(Conversely: --no-write-html) (Conversely: --no-write-html)
--write-html-whitelist-regex +string --write-html-whitelist-regex +string
whitelist files that will have its html debug output printed Whitelist files that will have their html debug output printed
when --html is true.
--write-html-whitelist-regex-reset --write-html-whitelist-regex-reset
Set --write-html-whitelist-regex to the empty list. Set --write-html-whitelist-regex to the empty list.

@ -649,6 +649,22 @@ and array_level =
|} |}
and biabduction_models_mode =
CLOpt.mk_bool ~long:"biabduction-models-mode" "Analysis of the biabduction models"
and bo_field_depth_limit =
CLOpt.mk_int_opt ~long:"bo-field-depth-limit"
~in_help:InferCommand.[(Analyze, manual_buffer_overrun)]
"Limit of field depth of abstract location in buffer-overrun checker"
and bo_service_handler_request =
CLOpt.mk_bool ~long:"bo-service-handler-request"
~in_help:InferCommand.[(Analyze, manual_buffer_overrun)]
"[EXPERIMENTAL] Use taint flow of service handler requests in buffer overflow checking."
and bootclasspath = and bootclasspath =
CLOpt.mk_string_opt ~long:"bootclasspath" CLOpt.mk_string_opt ~long:"bootclasspath"
~in_help:InferCommand.[(Capture, manual_java)] ~in_help:InferCommand.[(Capture, manual_java)]
@ -956,10 +972,7 @@ and custom_symbols =
"Specify named lists of symbols available to rules" "Specify named lists of symbols available to rules"
and ( biabduction_models_mode and ( bo_debug
, bo_debug
, bo_field_depth_limit
, bo_service_handler_request
, deduplicate , deduplicate
, developer_mode , developer_mode
, debug , debug
@ -980,27 +993,15 @@ and ( biabduction_models_mode
, reports_include_ml_loc , reports_include_ml_loc
, trace_error , trace_error
, write_html , write_html
, write_html_whitelist_regex
, write_dotty ) = , write_dotty ) =
let all_generic_manuals = let all_generic_manuals =
List.filter_map InferCommand.all_commands ~f:(fun cmd -> List.filter_map InferCommand.all_commands ~f:(fun cmd ->
if InferCommand.equal Explore cmd then None else Some (cmd, manual_generic) ) if InferCommand.equal Explore cmd then None else Some (cmd, manual_generic) )
in in
let biabduction_models_mode = let bo_debug =
CLOpt.mk_bool_group ~long:"biabduction-models-mode" "Mode for analyzing the biabduction models"
[] []
and bo_debug =
CLOpt.mk_int ~default:0 ~long:"bo-debug" CLOpt.mk_int ~default:0 ~long:"bo-debug"
~in_help:InferCommand.[(Analyze, manual_buffer_overrun)] ~in_help:InferCommand.[(Analyze, manual_buffer_overrun)]
"Debug level for buffer-overrun checker (0-4)" "Debug level for buffer-overrun checker (0-4)"
and bo_field_depth_limit =
CLOpt.mk_int_opt ~long:"bo-field-depth-limit"
~in_help:InferCommand.[(Analyze, manual_buffer_overrun)]
"Limit of field depth of abstract location in buffer-overrun checker"
and bo_service_handler_request =
CLOpt.mk_bool ~long:"bo-service-handler-request"
~in_help:InferCommand.[(Analyze, manual_buffer_overrun)]
"[EXPERIMENTAL] Use taint flow of service handler requests in buffer overflow checking."
and deduplicate = and deduplicate =
CLOpt.mk_bool ~long:"deduplicate" ~default:true CLOpt.mk_bool ~long:"deduplicate" ~default:true
~in_help: ~in_help:
@ -1045,9 +1046,6 @@ and ( biabduction_models_mode
CLOpt.mk_bool ~long:"trace-error" "Detailed tracing information during error explanation" CLOpt.mk_bool ~long:"trace-error" "Detailed tracing information during error explanation"
and write_html = and write_html =
CLOpt.mk_bool ~long:"write-html" "Produce hmtl debug output in the results directory" CLOpt.mk_bool ~long:"write-html" "Produce hmtl debug output in the results directory"
and write_html_whitelist_regex =
CLOpt.mk_string_list ~long:"write-html-whitelist-regex"
"whitelist files that will have its html debug output printed"
and write_dotty = and write_dotty =
CLOpt.mk_bool ~long:"write-dotty" "Produce dotty files for specs in the results directory" CLOpt.mk_bool ~long:"write-dotty" "Produce dotty files for specs in the results directory"
in in
@ -1123,10 +1121,7 @@ and ( biabduction_models_mode
debug ) debug )
[debug; developer_mode] [default_linters; keep_going] [debug; developer_mode] [default_linters; keep_going]
in in
( biabduction_models_mode ( bo_debug
, bo_debug
, bo_field_depth_limit
, bo_service_handler_request
, deduplicate , deduplicate
, developer_mode , developer_mode
, debug , debug
@ -1147,7 +1142,6 @@ and ( biabduction_models_mode
, reports_include_ml_loc , reports_include_ml_loc
, trace_error , trace_error
, write_html , write_html
, write_html_whitelist_regex
, write_dotty ) , write_dotty )
@ -2312,6 +2306,11 @@ and worklist_mode =
var var
and write_html_whitelist_regex =
CLOpt.mk_string_list ~long:"write-html-whitelist-regex"
"Whitelist files that will have their html debug output printed when $(b,--html) is true."
and xcode_developer_dir = and xcode_developer_dir =
CLOpt.mk_path_opt ~long:"xcode-developer-dir" CLOpt.mk_path_opt ~long:"xcode-developer-dir"
~in_help:InferCommand.[(Capture, manual_buck)] ~in_help:InferCommand.[(Capture, manual_buck)]

Loading…
Cancel
Save