The fixit is actively harmful, as it encourages developers to ignore the warning and to write unsafe code.
It is almost impossible to write safe code while capturing autoreleasing variables in the block, as in order to check that the block is never called in the autoreleasing pool the developer has to check the transitive closure of all potential callers of the block.
Details
Details
- Reviewers
dcoughlin arphaman javed.absar ahatanak - Commits
- rG098f0080da04: Remove the fixit for the diagnostics regarding capturing autoreleasing…
rC332288: Remove the fixit for the diagnostics regarding capturing autoreleasing…
rL332288: Remove the fixit for the diagnostics regarding capturing autoreleasing…
Diff Detail
Diff Detail