Commits

Doug Gregor committed f56c68386e1
Start importing factory methods as initializers. When an Objective-C class method follows the naming convention of a factory method, i.e., its starting words match the ending words of the class name, import it as a convenience initializer when it also: - Returns instancetype (i.e., dynamic Self in Swift parlance) - Has no NSError** parameters, which indicate the potential for failures This is under a new flag (-enable-objc-factory-method-constructors) because it is not generally functional. However, this is a step toward <rdar://problem/16509024>. Swift SVN r16479