]> granicus.if.org Git - clang/commit
[code-completion] Strip outer nullability annotations when completing method implemen...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 24 Jul 2015 17:00:19 +0000 (17:00 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 24 Jul 2015 17:00:19 +0000 (17:00 +0000)
commitb1c7d8a20769c28d9a1ddab92918a1d5ae6b2e2b
tree606a590fbe67d1a671486ea2463587ca9e5bf237
parent02595590edde2ca59d6926c5da2431b7232a64d3
[code-completion] Strip outer nullability annotations when completing method implementations.

The outer nullability is transferred from the declaration to the implementation so including them is redundant.
The inner ones are not transferred so they are kept to match the exact types. When we transfer the inner ones as well
adding them in the implementation will become redundant and we should strip those as well.

rdar://21737451

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243119 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-method-decls.m
test/Index/complete-parameterized-classes.m