summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-08 01:46:34 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-08 01:46:34 +0000
commitbab8a96f2f509218bc1a25d67bc182581d65e50e (patch)
treea994fe755cc4162606d8c860ed630e2d5b1d9aaf /clang/lib/Parse/Parser.cpp
parentaf3d4af4ebec2c519823a745665729ded3f9bbce (diff)
downloadbcm5719-llvm-bab8a96f2f509218bc1a25d67bc182581d65e50e.tar.gz
bcm5719-llvm-bab8a96f2f509218bc1a25d67bc182581d65e50e.zip
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>. llvm-svn: 139275
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud