summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-03-14 09:48:05 +0000
committerEric Liu <ioeric@google.com>2018-03-14 09:48:05 +0000
commit9ec459ff6b134eb790b36b9994c7570585b03a4e (patch)
tree4ef1be68d5b8678fbad1d5d608e8268d5021ccea /clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
parent322711f5290715b1e6f3da6c215e91760e93b408 (diff)
downloadbcm5719-llvm-9ec459ff6b134eb790b36b9994c7570585b03a4e.tar.gz
bcm5719-llvm-9ec459ff6b134eb790b36b9994c7570585b03a4e.zip
[clangd] Add an interface that finds symbol by SymbolID in SymbolIndex.
Summary: Potential use case: argument go-to-definition result with symbol information (e.g. function definition in cc file) that might not be in the AST. Reviewers: sammccall Reviewed By: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits Differential Revision: https://reviews.llvm.org/D44305 llvm-svn: 327487
Diffstat (limited to 'clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp')
-rw-r--r--clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp b/clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
index 18334614f34..1e11db73cf4 100644
--- a/clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
+++ b/clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
@@ -689,6 +689,9 @@ public:
return true;
}
+ void lookup(const LookupRequest &,
+ llvm::function_ref<void(const Symbol &)>) const override {}
+
const std::vector<FuzzyFindRequest> allRequests() const { return Requests; }
private:
OpenPOWER on IntegriCloud