On Jun 10, 2011, at 6:09 PM, Douglas Gregor wrote: > Author: dgregor > Date: Fri Jun 10 20:09:30 2011 > New Revision: 132868 > > URL: http://llvm.org/viewvc/llvm-project?rev=132868&view=rev > Log: > Implement Objective-C Related Result Type semantics. > > Related result types apply Cocoa conventions to the type of message > sends and property accesses to Objective-C methods that are known to > always return objects whose type is the same as the type of the > receiving class (or a subclass thereof), such as +alloc and > -init.
Nice, thanks for landing this Doug. Some random comments: 1. Should this have a __has_feature check? 2. Should the dox in the manual mention -f[no-]objc-infer-related-result-type? 3. Please add a doxygen comment to CheckObjCMethodOverrides 4. Why add the RelatedResultType bit to ObjCMethodDecl? Isn't it always determinable from the selector? -Chris _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
