HomePhabricator

[analyzer] Fix NSErrorChecker false positives on constructors.

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

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