Commits

Jordan Rose committed e7fe0abeed7
Don't treat Swift methods named "init" as ObjC ARC init methods. (#2989) Under ARC, methods in the "init" family are considered to have NS_REPLACES_RECEIVER semantics ("consumes" self and returning a value at +1). This is correct for Objective-C "init methods", which are equivalent for Swift's initializers, but almost never correct for any other methods that happen to start with the word "init". Note that Swift still follows all the other ARC conventions, so if you name a method or property, say, "newItemController", the value will be returned at +1. For methods this is probably desirable, but for properties maybe not. We could do something similar for property accessors to make sure they always have the default "no method family" semantics in Objective-C. rdar://problem/25759260