[clangd] Expose 'shouldCollectSymbol' helper from SymbolCollector.
authorEric Liu <ioeric@google.com>
Thu, 21 Jun 2018 12:12:26 +0000 (12:12 +0000)
committerEric Liu <ioeric@google.com>
Thu, 21 Jun 2018 12:12:26 +0000 (12:12 +0000)
commit8763e487278fee809ea7f1e0de653eddfb417cb9
treead4532d315beac733aedc146486ec49cb6622230
parentd143c65de3c884d09197da279d2f04f094efaf15
[clangd] Expose 'shouldCollectSymbol' helper from SymbolCollector.

Summary: This allows tools to examine symbols that would be collected in a symbol index. For example, a tool that measures index-based completion quality would be interested in references to symbols that are collected in the index.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits

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

llvm-svn: 335218
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/clangd/index/SymbolCollector.h
clang-tools-extra/unittests/clangd/SymbolCollectorTests.cpp