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/FixIt/nullability.mm | |
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/FixIt/nullability.mm')
-rw-r--r-- | clang/test/FixIt/nullability.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/FixIt/nullability.mm b/clang/test/FixIt/nullability.mm index 815c8441924..a91ccc0f5f6 100644 --- a/clang/test/FixIt/nullability.mm +++ b/clang/test/FixIt/nullability.mm @@ -2,8 +2,10 @@ // RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -fblocks -std=gnu++11 -I %S/Inputs %s >%t.txt 2>&1 // RUN: FileCheck %s < %t.txt // RUN: FileCheck %S/Inputs/nullability.h < %t.txt +// RUN: FileCheck %S/Inputs/nullability-objc.h < %t.txt #include "nullability.h" +#include "nullability-objc.h" #pragma clang assume_nonnull begin |