[Sema] Put nullability fix-it after the end of the pointer.
authorVolodymyr Sapsai <vsapsai@apple.com>
Thu, 28 Sep 2017 23:18:49 +0000 (23:18 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Thu, 28 Sep 2017 23:18:49 +0000 (23:18 +0000)
commit43e6f7bee52feba6d7af9f414bc5e8f256ebddf2
treef1b2d644238c58f095b774286ba51f9a56e68bec
parent99ead70feadc552cdd820229d7237708a4f90f21
[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
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaType.cpp
clang/test/FixIt/Inputs/nullability-objc.h [new file with mode: 0644]
clang/test/FixIt/nullability.mm
clang/test/SemaObjCXX/Inputs/nullability-consistency-2.h