This patch adds hidden Clangd flag which replaces (currently) default MemIndex with DexIndex for the static index.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/index/Index.h | ||
---|---|---|
360 ↗ | (On Diff #161239) | I'd try to avoid this pattern as it implicitly requires T::build(std::shared_ptr<std::vector<const Symbol *>>) to be implemented. Alternatively, you could pull out a helper function that turns a SymbolSlab into std::shared_ptr<std::vector<const Symbol *>>, which can be shared by different indexes. It can probably live in MemIndex.h. |
Comment Actions
Aww, the previous diff was the wrong one and didn't contain docs.
The move of the code to the middle of Clangd driver was justified by the assumption that it might be better to move the code that uses UseDex flag closer to the flag itself, but I agree: it looks strange. I moved it back.