~pali/llvm/clang-tools-extra-trunk

Viewing all changes in revision 3165.

  • Committer: ibiryukov
  • Date: 2018-03-16 15:23:44 UTC
  • Revision ID: svn-v4:91177308-0d34-0410-b5e6-96231b3b80d8:clang-tools-extra/trunk:327717
[clangd] Handle multiple callbacks from Sema's completion

Summary:
When parser backtracks, we might receive multiple code completion
callbacks.
Previously we had a failing assertion there, now we take first results
and hope they are good enough.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, jkorous-apple, ioeric, cfe-commits

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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: