Handle 'instancetype' in ParseDeclarationSpecifiers.
authorDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 23:18:00 +0000 (23:18 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 23:18:00 +0000 (23:18 +0000)
commit5c0870ac51175309a8dc98ca056d499d5eeeca48
tree06826fdae357909853051512d49df508e29cf57f
parent227fe4bc032cdd791f684a3a8f17826f42cb73a8
Handle 'instancetype' in ParseDeclarationSpecifiers.

...instead of as a special case in ParseObjCTypeName with lots of
duplicated logic. Besides being a nice refactoring, this also allows
"- (instancetype __nonnull)self" in addition to "- (nonnull instancetype)self".

rdar://problem/19924646

llvm-svn: 240188
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseObjc.cpp
clang/test/SemaObjC/nullability.m