This is the last missing bit in the core remote index implementation. The only
remaining bits are some API refactorings (replacing Optional with Expected and
being better at reporting errors).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
thanks mostly nits, only annoying bit is usage of optionals and multi-logging but letting them be for now :D.
also looks like there are some irrelevant changes, e.g. auto's in lambdas or formatting in protos, feel free to land an NFC change(without review) for those before landing this.
clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp | ||
---|---|---|
385 | nit: why not just do: RelationsRequest Serialized; Serialized.add_subjects("ZZZZZZZZZZZZZZZZ"); // check for failure during deserialization | |
394 | nit: move it near Sym.ID assignemnt. | |
398 | nit: I would move all of the following population logic into a helper and share between here and symbol serialization tests. | |
423 | nit: swap parameters ID is expected, Deserialized->first is actual. | |
426 | i think this is already tested in symbol deserialization test above, feel free to leave it out. | |
428 | again this should be part of symbol serialization tests. |
thanks, lgtm!
clang-tools-extra/clangd/unittests/remote/MarshallingTests.cpp | ||
---|---|---|
391 | i think you should still check for Deserialized->first == ID and Deserialized->second->ID == Sym.Id |
nit: why not just do: