]> granicus.if.org Git - clang/commit
[CodeCompletion] Block property setters: Use dynamic priority heuristic
authorAlex Lorenz <arphaman@gmail.com>
Fri, 6 Jan 2017 12:00:44 +0000 (12:00 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 6 Jan 2017 12:00:44 +0000 (12:00 +0000)
commitfb284a0ddc8d14c98a76408917c9f61d247c2f9b
tree9efda979f76ddae8f506154574a69c6a83877d3e
parentda684cc5fb0320f69201b1baf1eb8b9cc7d04cba
[CodeCompletion] Block property setters: Use dynamic priority heuristic

Now when completing blocks properties that return void the block call completion
result shows up before the setter, otherwise the setter completion shows up
before the block call completion. We normally want to use the result of the
block call, so one typically wouldn't call a block that returns a non-void type
in a standalone statement.

rdar://28846153

Differential Revision: https://reviews.llvm.org/D26034

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291232 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-block-properties.m
test/Index/complete-block-property-assignment.m