diff options
| author | Volodymyr Sapsai <vsapsai@apple.com> | 2017-09-28 23:18:49 +0000 |
|---|---|---|
| committer | Volodymyr Sapsai <vsapsai@apple.com> | 2017-09-28 23:18:49 +0000 |
| commit | 43e6f7bee52feba6d7af9f414bc5e8f256ebddf2 (patch) | |
| tree | f1b2d644238c58f095b774286ba51f9a56e68bec /clang/test/SemaObjCXX | |
| parent | 99ead70feadc552cdd820229d7237708a4f90f21 (diff) | |
| download | bcm5719-llvm-43e6f7bee52feba6d7af9f414bc5e8f256ebddf2.tar.gz bcm5719-llvm-43e6f7bee52feba6d7af9f414bc5e8f256ebddf2.zip | |
[Sema] Put nullability fix-it after the end of the pointer.
Fixes nullability fix-it for `id<SomeProtocol>`. With this change
nullability specifier is inserted after ">" instead of between
"id" and "<".
rdar://problem/34260995
Reviewers: jordan_rose, doug.gregor, ahatanak, arphaman
Reviewed By: jordan_rose
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D38327
llvm-svn: 314473
Diffstat (limited to 'clang/test/SemaObjCXX')
| -rw-r--r-- | clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h b/clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h index 72f22e2ce47..84a1369618a 100644 --- a/clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h +++ b/clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h @@ -6,9 +6,9 @@ void g2(int (^block)(int, int)); // expected-warning{{block pointer is missing a void g3(const id // expected-warning{{missing a nullability type specifier}} + volatile // expected-note@-1 {{insert '_Nullable' if the pointer may be null}} // expected-note@-2 {{insert '_Nonnull' if the pointer should never be null}} - volatile * // expected-warning{{missing a nullability type specifier}} // expected-note@-1 {{insert '_Nullable' if the pointer may be null}} // expected-note@-2 {{insert '_Nonnull' if the pointer should never be null}} |

