[clangd] Don't query index when completing inside classes
authorIlya Biryukov <ibiryukov@google.com>
Mon, 14 May 2018 10:50:04 +0000 (10:50 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 14 May 2018 10:50:04 +0000 (10:50 +0000)
commita907ba4cb84ada5dde44e5bae769cbe733d2c937
tree0dd8a7806737d688f9efd0a492829a826d129842
parent964293e46d72a07a53f91e3ee7e5fd528cf036cf
[clangd] Don't query index when completing inside classes

Summary:
We used to query the index when completing after class qualifiers,
e.g. 'ClassName::^'. We should not do that for the same reasons we
don't query the index for member access expressions.

Reviewers: sammccall, ioeric

Reviewed By: sammccall

Subscribers: klimek, MaskRay, jkorous, cfe-commits

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

llvm-svn: 332226
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp