[nullsafe] merge the option names

Reviewed By: mbouaziz

Differential Revision: D13682855

fbshipit-source-id: 28c990725
master
Jeremy Dubreil 6 years ago committed by Facebook Github Bot
parent 910def4262
commit 87a8ddc8fa

@ -314,14 +314,6 @@ OPTIONS
Activates: Enable --starvation and disable all other checkers
(Conversely: --no-starvation-only)
--suggest-nullable
Activates: Nullable annotation sugesstions analysis (Conversely:
--no-suggest-nullable)
--suggest-nullable-only
Activates: Enable --suggest-nullable and disable all other
checkers (Conversely: --no-suggest-nullable-only)
--no-uninit
Deactivates: checker for use of uninitialized values (Conversely:
--uninit)

@ -869,14 +869,6 @@ OPTIONS
Activates: Enable --starvation and disable all other checkers
(Conversely: --no-starvation-only) See also infer-analyze(1).
--suggest-nullable
Activates: Nullable annotation sugesstions analysis (Conversely:
--no-suggest-nullable) See also infer-analyze(1).
--suggest-nullable-only
Activates: Enable --suggest-nullable and disable all other
checkers (Conversely: --no-suggest-nullable-only) See also infer-analyze(1).
--threadsafe-aliases json
Specify custom annotations that should be considered aliases of
@ThreadSafe (default: []) See also infer-analyze(1).

@ -869,14 +869,6 @@ OPTIONS
Activates: Enable --starvation and disable all other checkers
(Conversely: --no-starvation-only) See also infer-analyze(1).
--suggest-nullable
Activates: Nullable annotation sugesstions analysis (Conversely:
--no-suggest-nullable) See also infer-analyze(1).
--suggest-nullable-only
Activates: Enable --suggest-nullable and disable all other
checkers (Conversely: --no-suggest-nullable-only) See also infer-analyze(1).
--threadsafe-aliases json
Specify custom annotations that should be considered aliases of
@ThreadSafe (default: []) See also infer-analyze(1).

@ -609,7 +609,6 @@ and ( annotation_reachability
, resource_leak
, siof
, starvation
, suggest_nullable
, uninit ) =
let mk_checker ?(default = false) ?(deprecated = []) ~long doc =
let var =
@ -650,7 +649,8 @@ and ( annotation_reachability
mk_checker ~long:"liveness" ~default:true "the detection of dead stores and unused variables"
and loop_hoisting = mk_checker ~long:"loop-hoisting" ~default:false "checker for loop-hoisting"
and nullsafe =
mk_checker ~long:"nullsafe" ~deprecated:["-check-nullable"]
mk_checker ~long:"nullsafe"
~deprecated:["-check-nullable"; "-suggest-nullable"]
"[EXPERIMENTAL] Nullable type checker (incomplete: use --eradicate for now)"
and ownership = mk_checker ~long:"ownership" ~default:true "the detection of C++ lifetime bugs"
and printf_args =
@ -672,8 +672,6 @@ and ( annotation_reachability
mk_checker ~long:"siof" ~default:true
"the Static Initialization Order Fiasco analysis (C++ only)"
and starvation = mk_checker ~long:"starvation" ~default:false "starvation analysis"
and suggest_nullable =
mk_checker ~long:"suggest-nullable" ~default:false "Nullable annotation sugesstions analysis"
and uninit = mk_checker ~long:"uninit" "checker for use of uninitialized values" ~default:true in
let mk_only (var, long, doc, _) =
let _ : bool ref =
@ -736,7 +734,6 @@ and ( annotation_reachability
, resource_leak
, siof
, starvation
, suggest_nullable
, uninit )
@ -2779,8 +2776,6 @@ and nelseg = !nelseg
and nullable_annotation = !nullable_annotation
and suggest_nullable = !suggest_nullable
and no_translate_libs = not !headers
and only_cheap_debug = !only_cheap_debug

@ -645,8 +645,6 @@ val stats_report : string option
val subtype_multirange : bool
val suggest_nullable : bool
val symops_per_iteration : int option
val test_determinator : bool

@ -70,7 +70,7 @@ let all_checkers =
; active= Config.printf_args
; callbacks= [(Procedure PrintfArgs.callback_printf_args, Language.Java)] }
; { name= "nullable suggestion"
; active= Config.suggest_nullable
; active= Config.nullsafe
; callbacks=
[ (Procedure NullabilitySuggest.checker, Language.Java)
; (Procedure NullabilitySuggest.checker, Language.Clang) ] }

@ -7,7 +7,7 @@ TESTS_DIR = ../../..
# see explanations in cpp/errors/Makefile for the custom isystem
CLANG_OPTIONS = -x c++ -std=c++11 -nostdinc++ -isystem$(ROOT_DIR) -isystem$(CLANG_INCLUDES)/c++/v1/ -c
INFER_OPTIONS = --biabduction --suggest-nullable --nullsafe --debug-exceptions --project-root $(TESTS_DIR)
INFER_OPTIONS = --biabduction --nullsafe --debug-exceptions --project-root $(TESTS_DIR)
INFERPRINT_OPTIONS = --issues-tests
SOURCES = $(wildcard *.cpp)

@ -8,7 +8,7 @@ TESTS_DIR = ../../..
INFER_OPTIONS = \
--debug-exceptions --no-default-checkers \
--annotation-reachability --fragment-retains-view --immutable-cast --printf-args --quandary \
--suggest-nullable --nullsafe --racerd \
--nullsafe --racerd \
INFERPRINT_OPTIONS = --issues-tests
SOURCES = $(wildcard *.java) $(wildcard $(TESTS_DIR)/external/library/*.java)

@ -6,7 +6,7 @@
TESTS_DIR = ../../..
CLANG_OPTIONS = -c $(OBJC_CLANG_OPTIONS)
INFER_OPTIONS = --debug-exceptions --no-default-checkers --suggest-nullable --nullsafe --project-root $(TESTS_DIR)
INFER_OPTIONS = --debug-exceptions --no-default-checkers --nullsafe --project-root $(TESTS_DIR)
INFERPRINT_OPTIONS = --issues-tests
SOURCES = $(wildcard *.m)

@ -6,7 +6,7 @@
TESTS_DIR = ../../..
CLANG_OPTIONS = -c $(OBJCPP_CLANG_OPTIONS)
INFER_OPTIONS = --debug-exceptions --no-default-checkers --suggest-nullable --nullsafe --project-root $(TESTS_DIR)
INFER_OPTIONS = --debug-exceptions --no-default-checkers --nullsafe --project-root $(TESTS_DIR)
INFERPRINT_OPTIONS = --issues-tests
SOURCES = $(wildcard *.mm)

Loading…
Cancel
Save