buildStaticIndex() is used by two other tools that I'm building, now it's useful outside of tool/ClangdMain.cpp.
Details
Diff Detail
Event Timeline
clang-tools-extra/clangd/index/SymbolYAML.cpp | ||
---|---|---|
193 | this is deep copying the symbols for no reason just build(std::move(Slab)) below. | |
clang-tools-extra/clangd/index/SymbolYAML.h | ||
44 | nit: can you just say "index file", and call the parameter "SymbolFile"? | |
47 | I'd prefer loadIndex for this function, what do you think? "load" over "build" because much of the indexing work has already been done in producing the file, and in future potentially even more (serializing posting lists). |
nit: can you just say "index file", and call the parameter "SymbolFile"?
See D51585 which adds another format (it can be detected by content sniffing, so no parameter needed)