From bab8a96f2f509218bc1a25d67bc182581d65e50e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 8 Sep 2011 01:46:34 +0000 Subject: 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 . llvm-svn: 139275 --- clang/lib/Parse/Parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Parse/Parser.cpp') diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 9a26a5a3995..c31e1634a0a 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -443,6 +443,7 @@ void Parser::Initialize() { ObjCTypeQuals[objc_byref] = &PP.getIdentifierTable().get("byref"); } + Ident_instancetype = 0; Ident_final = 0; Ident_override = 0; -- cgit v1.2.3