[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
Showing
- lib/Sema/SemaCodeComplete.cpp 9 additions, 1 deletionlib/Sema/SemaCodeComplete.cpp
- test/Index/complete-block-properties.m 1 addition, 1 deletiontest/Index/complete-block-properties.m
- test/Index/complete-block-property-assignment.m 14 additions, 10 deletionstest/Index/complete-block-property-assignment.m
Loading
Please register or sign in to comment