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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240188 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Parse/Parser.h 13 additions, 1 deletioninclude/clang/Parse/Parser.h
- lib/Parse/ParseDecl.cpp 13 additions, 0 deletionslib/Parse/ParseDecl.cpp
- lib/Parse/ParseObjc.cpp 5 additions, 34 deletionslib/Parse/ParseObjc.cpp
- test/SemaObjC/nullability.m 7 additions, 0 deletionstest/SemaObjC/nullability.m
Loading
Please register or sign in to comment