]> granicus.if.org Git - clang/commit
[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)
commit3cf9a72743d147f3a6152ba3374f081bac749c28
treeda3b320835a2331df5b0d4c05d10d21c2943d09d
parentee1ea80a9091050c6d0a21be9d06a5f97d3ea715
[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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166993 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp [new file with mode: 0644]
test/Analysis/viewcontroller.m [new file with mode: 0644]