summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CheckObjCDealloc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add a new expression class, ObjCSuperExpr, to handle the Objective-C ↵Douglas Gregor2008-11-041-3/+1
| | | | | | 'super'. Remove ObjCThis from PredefinedExpr llvm-svn: 58698
* Distinguish between self.X = ... where self.X is a property reference and ↵Ted Kremenek2008-10-301-1/+2
| | | | | | self.X is an implicit call to setX. llvm-svn: 58462
* Patch by Nikita Zhuk:Ted Kremenek2008-10-301-11/+43
| | | | | | | | Fix PR 2978 false positive for missing release in -dealloc of an ivar retained via a property and then released by assigning nil to that property: http://llvm.org/bugs/show_bug.cgi?id=2978 llvm-svn: 58431
* Patch by Nikita Zhuk:Ted Kremenek2008-10-291-3/+82
| | | | | | | | | The attached patch adds additional checks to -warn-objc-missing-dealloc. It checks that all ivars which are used in implementation of synthesized properties are either a) released in dealloc if the property has retain" or "copy" attribute OR b) not released in dealloc if the property has "assign" attribute llvm-svn: 58363
* rename PreDefinedExpr -> PredefinedExprChris Lattner2008-08-101-2/+2
| | | | llvm-svn: 54605
* Remove call to isSEL and isSEL itself since the call is dead ↵Ted Kremenek2008-07-251-10/+1
| | | | | | (isObjCObjectPointerType() will never return true for selectors). llvm-svn: 54034
* Only warn about missing/incomplete -dealloc implementations when a class ↵Ted Kremenek2008-07-251-6/+7
| | | | | | contains a non-SEL, non-IBOutlet ivar that references an ObjC object. llvm-svn: 54024
* Use ASTContext::isObjCObjectPointerType() to check if an ivar is a reference ↵Ted Kremenek2008-07-241-3/+3
| | | | | | to an Objective-C object. llvm-svn: 53999
* Don't issue a missing +dealloc warning for classes that just contain SEL ivars.Ted Kremenek2008-07-241-1/+10
| | | | | | This fixes PR 2592: http://llvm.org/bugs/show_bug.cgi?id=2592 llvm-svn: 53987
* For the MissingDealloc check, don't treat IBOutlet ivars as being needed to ↵Ted Kremenek2008-07-151-2/+4
| | | | | | be released llvm-svn: 53647
* Added method "EmitBasicReport" to BugReporter to simplify the emission of ↵Ted Kremenek2008-07-141-32/+11
| | | | | | | | simple bug diagnostics. Refactored error reporting in CheckObjCDealloc and CheckObjCInstMethSignature to use this new bug reporting interface (major code simplification). llvm-svn: 53560
* Fix comment.Ted Kremenek2008-07-111-2/+3
| | | | llvm-svn: 53473
* Do not emit a "missing -dealloc" warning if a class contains no ivars that ↵Ted Kremenek2008-07-071-3/+19
| | | | | | | | are pointers. This patch aims to address some of the concerns of PR 2517: http://llvm.org/bugs/show_bug.cgi?id=2517 llvm-svn: 53168
* Skip the "-dealloc" check if a ObjC class contains no ivars.Ted Kremenek2008-07-031-2/+7
| | | | llvm-svn: 53100
* For the -dealloc checker, check the LangOptions to determine whether or not ↵Ted Kremenek2008-07-031-4/+14
| | | | | | the code is compiled with GC. llvm-svn: 53098
* Added static analysis check to see if a subclass of NSObject implements ↵Ted Kremenek2008-07-031-0/+118
-dealloc, and whether or not that implementation calls [super dealloc]. llvm-svn: 53075
OpenPOWER on IntegriCloud