This is an archive of the discontinued LLVM Phabricator instance.

[CodeCompletion] Block property setters: Use dynamic priority heuristic
ClosedPublic

Authored by arphaman on Oct 27 2016, 8:52 AM.

Details

Summary

This patch implements a heuristic that I mentioned in https://reviews.llvm.org/D25520. When completing blocks properties that return void the default property completion result shows up before the setter, otherwise the setter completion now shows up before the default property 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.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 76041.Oct 27 2016, 8:52 AM
arphaman retitled this revision from to [CodeCompletion] Block property setters: Use dynamic priority heuristic.
arphaman updated this object.
arphaman added a reviewer: akyrtzi.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: cfe-commits.
arphaman updated this revision to Diff 82866.Jan 3 2017, 4:40 AM
arphaman added a reviewer: manmanren.

I've rebased the patch

manmanren accepted this revision.Jan 4 2017, 10:17 AM
manmanren edited edge metadata.

LGTM.

Manman

This revision is now accepted and ready to land.Jan 4 2017, 10:17 AM
This revision was automatically updated to reflect the committed changes.