History log of /external/clang/test/PCH/objc_methods.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b88acb018a0d5e897ce291da2664edfd7bd58f5c 04-May-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> [PCH] Really, pinky swear, fix for PR12689

rdar://11353109

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h
67835c1a7ebaffd8613892e6bedfdb045eaf823f 03-May-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> [PCH] Clear switch case IDs when deserializing a objc method body.

Fixes rdar://11353109 & http://llvm.org/bugs/show_bug.cgi?id=12689

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h
e97179c675b341927807c718be215c8d1aab8acb 08-Sep-2011 Douglas Gregor <dgregor@apple.com> Implement the Objective-C 'instancetype' type, which is an alias of
'id' that can be used (only!) via a contextual keyword as the result
type of an Objective-C message send. 'instancetype' then gives the
method a related result type, which we have already been inferring for
a variety of methods (new, alloc, init, self, retain). Addresses
<rdar://problem/9267640>.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139275 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h
926df6cfabf3eaa4afc990c097fa4619b76a9b57 11-Jun-2011 Douglas Gregor <dgregor@apple.com> 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. This tightens up static type safety for Objective-C, so that we
now diagnose mistakes like this:

t.m:4:10: warning: incompatible pointer types initializing 'NSSet *'
with an
expression of type 'NSArray *' [-Wincompatible-pointer-types]
NSSet *array = [[NSArray alloc] init];
^ ~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:72:1:
note:
instance method 'init' is assumed to return an instance of its
receiver
type ('NSArray *')
- (id)init;
^

It also means that we get decent type inference when writing code in
Objective-C++0x:

auto array = [[NSMutableArray alloc] initWithObjects:@"one", @"two",nil];
// ^ now infers NSMutableArray* rather than id




git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h
8f06f84e8be64962cc478e3e8867336768cac79b 23-Apr-2009 Steve Naroff <snaroff@apple.com> More PushOnScopeChain() FIXME's.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69894 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h
f7830b6a9edfdccf517b3bd17932686afff0ebf9 22-Apr-2009 Chris Lattner <sabre@nondot.org> rename methods.* -> objc_methods.*


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/PCH/objc_methods.h