This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Dont provide locations for non-existent files.
ClosedPublic

Authored by kadircet on Dec 4 2018, 8:34 AM.

Event Timeline

kadircet created this revision.Dec 4 2018, 8:34 AM
hokein added inline comments.Dec 5 2018, 12:04 AM
unittests/clangd/SymbolCollectorTests.cpp
1048

We handled this case previously, but the code was removed in rL346488 (looks like sam missed the case where we don't use preamble, like building static index). I think we should bring the logic back -- revert the change of isSpelledInSourceCode and add SymbolCollectorTest, SymbolFormedByCLI should be enough.

kadircet updated this revision to Diff 176774.Dec 5 2018, 1:21 AM
kadircet marked an inline comment as done.
hokein accepted this revision.Dec 5 2018, 1:24 AM

thanks!

This revision is now accepted and ready to land.Dec 5 2018, 1:24 AM
This revision was automatically updated to reflect the committed changes.