Puts the digest of the source file that generated the index into
serialized index and stores them back on load, if exists.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Hi Kadir, I have one small nit otherwise LGTM.
clangd/index/Serialization.cpp | ||
---|---|---|
368 ↗ | (On Diff #174572) | Nit: Maybe we could use Result.Digest.size() and avoid having 20 hardcoded here? |
clangd/index/Serialization.cpp | ||
---|---|---|
330 ↗ | (On Diff #174608) | update |
366 ↗ | (On Diff #174608) | I'd call this chunk "srcs" or so - I suspect we may want to include path info and/or dependencies in the future. |
368 ↗ | (On Diff #174572) | It's still in a couple of places in Serialization.h. Could we add an alias there e.g. using FileDigest = std::array<uint8_t, 20>? |