[racerd] make unknown-returns-owned true by default

Summary: This option makes RacerD angelic wrt the ownership of returned objects from procedures without summary. This will now be made the default and the option deprecated up the diff stack.

Reviewed By: dulmarod

Differential Revision: D21174676

fbshipit-source-id: 9c48d3d7d
master
Nikos Gorogiannis 5 years ago committed by Facebook GitHub Bot
parent 7bf7d24e4b
commit 07175f163c

@ -430,10 +430,10 @@ RACERD CHECKER OPTIONS
Activates: Check @GuardedBy annotations with RacerD (Conversely: Activates: Check @GuardedBy annotations with RacerD (Conversely:
--no-racerd-guardedby) --no-racerd-guardedby)
--racerd-unknown-returns-owned --no-racerd-unknown-returns-owned
Activates: Assume that all methods without a CFG (including Deactivates: Assume that all methods without a CFG (including
abstract methods) return owned objects (Conversely: abstract methods) return owned objects (Conversely:
--no-racerd-unknown-returns-owned) --racerd-unknown-returns-owned)
--threadsafe-aliases json --threadsafe-aliases json
Specify custom annotations that should be considered aliases of Specify custom annotations that should be considered aliases of

@ -910,10 +910,10 @@ OPTIONS
Activates: Enable --racerd and disable all other checkers Activates: Enable --racerd and disable all other checkers
(Conversely: --no-racerd-only) See also infer-analyze(1). (Conversely: --no-racerd-only) See also infer-analyze(1).
--racerd-unknown-returns-owned --no-racerd-unknown-returns-owned
Activates: Assume that all methods without a CFG (including Deactivates: Assume that all methods without a CFG (including
abstract methods) return owned objects (Conversely: abstract methods) return owned objects (Conversely:
--no-racerd-unknown-returns-owned) See also infer-analyze(1). --racerd-unknown-returns-owned) See also infer-analyze(1).
--reactive,-r --reactive,-r
Activates: Reactive mode: the analysis starts from the files Activates: Reactive mode: the analysis starts from the files

@ -910,10 +910,10 @@ OPTIONS
Activates: Enable --racerd and disable all other checkers Activates: Enable --racerd and disable all other checkers
(Conversely: --no-racerd-only) See also infer-analyze(1). (Conversely: --no-racerd-only) See also infer-analyze(1).
--racerd-unknown-returns-owned --no-racerd-unknown-returns-owned
Activates: Assume that all methods without a CFG (including Deactivates: Assume that all methods without a CFG (including
abstract methods) return owned objects (Conversely: abstract methods) return owned objects (Conversely:
--no-racerd-unknown-returns-owned) See also infer-analyze(1). --racerd-unknown-returns-owned) See also infer-analyze(1).
--reactive,-r --reactive,-r
Activates: Reactive mode: the analysis starts from the files Activates: Reactive mode: the analysis starts from the files

@ -1830,7 +1830,7 @@ and racerd_guardedby =
and racerd_unknown_returns_owned = and racerd_unknown_returns_owned =
CLOpt.mk_bool ~long:"racerd-unknown-returns-owned" ~default:false CLOpt.mk_bool ~long:"racerd-unknown-returns-owned" ~default:true
~in_help:InferCommand.[(Analyze, manual_racerd)] ~in_help:InferCommand.[(Analyze, manual_racerd)]
"Assume that all methods without a CFG (including abstract methods) return owned objects" "Assume that all methods without a CFG (including abstract methods) return owned objects"

Loading…
Cancel
Save