HomePhabricator

[analyzer] Fix NSErrorChecker false positives on constructors.
68a786d3f755Unpublished

Authored by dergachev.a on Apr 6 2020, 10:27 AM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[analyzer] Fix NSErrorChecker false positives on constructors.

Constructors and delete operators cannot return a boolean value.
Therefore they cannot possibly follow the NS/CFError-related coding
conventions.

Patch by Valeriy Savchenko!

Differential Revision: https://reviews.llvm.org/D77551

(cherry picked from commit 9b1e4a8218b7fcb8900d0382704fdb4e38b52eb0)

Event Timeline