summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/super-dealloc-attribute.m
Commit message (Collapse)AuthorAgeFilesLines
* ObjectiveC. Method implementations should only check forFariborz Jahanian2013-11-051-5/+26
| | | | | | | "Missing call to Super" in the overriding method and not in the method itself. // rdar://15385981. llvm-svn: 194031
* Objective-C: merge objc_requires_super attribute ofFariborz Jahanian2013-07-091-3/+27
| | | | | | | | | method declaration into its implementation to prevent a bogus warning about mismatched attributes. then make sure the warning about missing call to super comes out of the method implementation. // rdar://14251387 llvm-svn: 185974
* Allow objc_requires_super to be used to check class methods as well.Jordan Rose2012-10-191-0/+21
| | | | | | | | | | | | | Also, unify ObjCShouldCallSuperDealloc and ObjCShouldCallSuperFinalize. The two have identical behavior and will never be active at the same time. There's one last simplification now, which is that if we see a call to [super foo] and we are currently in a method named 'foo', we will /unconditionally/ clear the ObjCShouldCallSuper flag, rather than check first to see if we're in a method where calling super is required. There's no reason to pay the extra lookup price here. llvm-svn: 166285
* More tweaking and test cases for call to superFariborz Jahanian2012-09-101-2/+37
| | | | | | annotations. // rdar://6386358 llvm-svn: 163525
* objective-C: Improving diagnostocs for missing call toFariborz Jahanian2012-09-101-1/+1
| | | | | | super's annotated methods. // rdar://6386358 llvm-svn: 163517
* objective-C: introduce __attribute((objc_requires_super)) on methodFariborz Jahanian2012-09-071-0/+31
in classes. Use it to flag those method implementations which don't contain call to 'super' if they have 'super' class and it has the method with this attribute set. This is wip. // rdar://6386358 llvm-svn: 163434
OpenPOWER on IntegriCloud