This is an archive of the discontinued LLVM Phabricator instance.

[analyzer]Don't issue alarm in ObjCSuperCallChecker for the super class itself.
ClosedPublic

Authored by dcoughlin on Aug 7 2015, 11:41 AM.

Details

Summary

The ObjCSuperCallChecker issues alarms for various Objective-C APIs that require
a subclass to call to its superclass's version of a method when overriding it.
So, for example, it raises an alarm when the -viewDidLoad method in a subclass
of UIViewController does not call [super viewDidLoad].

This patch fixes a false alarm where the analyzer erroneously required the
implementation of the superclass itself (e.g., UIViewController) to call
super.

Diff Detail

Repository
rL LLVM

Event Timeline

dcoughlin updated this revision to Diff 31535.Aug 7 2015, 11:41 AM
dcoughlin retitled this revision from to [analyzer]Don't issue alarm in ObjCSuperCallChecker for the super class itself..
dcoughlin updated this object.
dcoughlin added a subscriber: cfe-commits.
jordan_rose accepted this revision.Aug 7 2015, 11:44 AM
jordan_rose edited edge metadata.

Thanks for fixing this.

This revision is now accepted and ready to land.Aug 7 2015, 11:44 AM
zaks.anna accepted this revision.Aug 7 2015, 2:44 PM
zaks.anna edited edge metadata.
This revision was automatically updated to reflect the committed changes.