This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add a FileSymbols container that manages symbols from multiple files.
ClosedPublic

Authored by ioeric on Dec 14 2017, 5:31 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ioeric created this revision.Dec 14 2017, 5:31 AM
sammccall accepted this revision.Dec 14 2017, 6:13 AM
sammccall added inline comments.
clangd/index/FileSymbols.h
39 ↗(On Diff #126936)

Consider just accepting update(Path, nullptr) for this (or make callers pass an empty slab).
This can make callsites that might call one or the other conditionally, less awkward.

unittests/clangd/IndexTests.cpp
124 ↗(On Diff #126936)

Can you move these tests into a separate cpp file?
The code overlap is really minimal, and they test things from different headers.

This revision is now accepted and ready to land.Dec 14 2017, 6:13 AM
ioeric updated this revision to Diff 126943.Dec 14 2017, 6:48 AM
ioeric marked 2 inline comments as done.
  • Address review comments
ioeric updated this revision to Diff 126944.Dec 14 2017, 6:49 AM
  • fix HEADER_GUARD
This revision was automatically updated to reflect the committed changes.