This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Switch FindSymbolsTests to use TestTU
ClosedPublic

Authored by kadircet on Jul 1 2020, 3:18 AM.

Details

Summary

This gets rid of the dependency on ClangdServer and a bunch of extra
infrastructure coming with it. Also enables us to clear SyncAPI, as it was the
sole user of runWorkspace/DocumentSymbols.

Diff Detail

Event Timeline

kadircet created this revision.Jul 1 2020, 3:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 3:18 AM
sammccall accepted this revision.Jul 1 2020, 7:42 AM

LG, thanks!

clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
54–55

I think we should probably just get rid of this fixture in favor of using TestTU directly (maybe keep getSymbols as a standalone function).
Fine not to do that in this patch though.

295–296

and similar with this one

This revision is now accepted and ready to land.Jul 1 2020, 7:42 AM
kadircet updated this revision to Diff 275069.Jul 2 2020, 4:57 AM
kadircet marked an inline comment as done.
  • Get rid of the fixtures
kadircet marked an inline comment as done.Jul 2 2020, 4:57 AM
This revision was automatically updated to reflect the committed changes.