This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Expose 'shouldCollectSymbol' helper from SymbolCollector.
ClosedPublic

Authored by ioeric on Jun 21 2018, 2:21 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Jun 21 2018, 2:21 AM

Can you motivate this change a bit, and add tests?

clangd/index/SymbolCollector.h
61 ↗(On Diff #152241)

in principle, this should take const Options&?

ioeric edited the summary of this revision. (Show Details)Jun 21 2018, 4:26 AM
ioeric updated this revision to Diff 152249.Jun 21 2018, 4:26 AM
ioeric marked an inline comment as done.
  • added tests.

Can you motivate this change a bit, and add tests?

Done.

sammccall accepted this revision.Jun 21 2018, 4:31 AM
This revision is now accepted and ready to land.Jun 21 2018, 4:31 AM
This revision was automatically updated to reflect the committed changes.