Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Analyzer] Fix crash in ObjCPropertyChecker on protocol property | Devin Coughlin | 2017-03-01 | 1 | -2/+1 |
| | | | | | | | | | | | Fix a crash in the ObjCPropertyChecker when analyzing a 'copy' property of an NSMutable* type in a protocol. rdar://problem/30766684 Differential Revision: https://reviews.llvm.org/D30482 llvm-svn: 296562 | ||||
* | [analyzer] Detect ObjC properties that are both (copy) and Mutable. | Artem Dergachev | 2016-12-13 | 1 | -0/+82 |
When an Objective-C property has a (copy) attribute, the default setter for this property performs a -copy on the object assigned. Calling -copy on a mutable NS object such as NSMutableString etc. produces an immutable object, NSString in our example. Hence the getter becomes type-incorrect. rdar://problem/21022397 Differential Revision: https://reviews.llvm.org/D27535 llvm-svn: 289554 |