[analyzer] New checker for missing super calls in UIViewController subclasses.
authorJordan Rose <jordan_rose@apple.com>
Tue, 30 Oct 2012 01:21:35 +0000 (01:21 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 30 Oct 2012 01:21:35 +0000 (01:21 +0000)
commit3c2f65a73dbe09e9c17f690f3c7da83df0773b12
treeaaa265bbdb5ca146b6bb3996d957bd97f100c004
parentfb9c49e250b58f9262058adebc285e420384eb93
[analyzer] New checker for missing super calls in UIViewController subclasses.

This is a syntactic checker aimed at helping iOS programmers correctly
subclass and override the methods of UIViewController. While this should
eventually be covered by the 'objc_requires_super' attribute, this
checker can be used with the existing iOS SDKs without any header changes.

This new checker is currently named 'alpha.osx.cocoa.MissingSuperCall'.
Patch by Julian Mayer!

llvm-svn: 166993
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/Checkers.td
clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp [new file with mode: 0644]
clang/test/Analysis/viewcontroller.m [new file with mode: 0644]