]> granicus.if.org Git - clang/commit
[analyzer] Don't issue alarm in ObjCSuperCallChecker for the super class itself.
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 8 Aug 2015 01:31:51 +0000 (01:31 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 8 Aug 2015 01:31:51 +0000 (01:31 +0000)
commit0db6a1c8efff2e7b3729e3648876c22afee02322
tree44a9d1e9aa7a75ebe51697e895903d24abf37b7a
parent36d9fb5902fe376d3cc5bcf6fb0e94e53a7725d5
[analyzer] Don't issue alarm in ObjCSuperCallChecker for the super class itself.

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.

rdar://problem/18416944

Differential Revision: http://reviews.llvm.org/D11842

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244386 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp
test/Analysis/superclass.m