This makes FileShardedIndex more robust and gets rid of the need for a
URIToFileCache, as it is done by the callers now and it is only once per file,
rather than once per symbol.
Details
- Reviewers
sammccall - Commits
- rG97c407db7725: [clangd] Make use of URIs in FileShardedIndex
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LG but I think we can skip one lot of conversion, let me know what you think.
clang-tools-extra/clangd/index/Background.cpp | ||
---|---|---|
182–183 | is this really important enough to be worth saying twice :-) | |
clang-tools-extra/clangd/index/FileIndex.cpp | ||
386 | I don't actually think it's important that we use filenames as the PreambleSymbols sharding key. We can skip the whole resolving thing and just use the URIs. We should go through and update docs to change "path" to "key" in FileSymbols I guess. Am I missing something? Sorry I think I alluded to this a bit cryptically... |
- Update FileSymbols to express keys are not necessarily file paths.
- Use Uri for keys of PreambleSymbols
clang-tools-extra/clangd/index/Background.cpp | ||
---|---|---|
182–183 | copy pasta is the worst kind of pasta :D |
clang-tools-extra/clangd/index/FileIndex.h | ||
---|---|---|
59 | may want to mention that keys are typically files, up to you |
is this really important enough to be worth saying twice :-)