This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Make version in PublishDiagnosticsParams optional
ClosedPublic

Authored by kadircet on May 10 2020, 2:30 PM.

Details

Summary

We were serializing it no matter what, which was against the spec

Diff Detail

Event Timeline

kadircet created this revision.May 10 2020, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2020, 2:30 PM
sammccall accepted this revision.May 10 2020, 11:23 PM
sammccall added inline comments.
clang-tools-extra/clangd/Protocol.cpp
569

nit: I'm not sure it's actually worth having these comments everywhere. The move is harmless apart from readability, and the readability of drawing attention to them seems worse.

This revision is now accepted and ready to land.May 10 2020, 11:23 PM
This revision was automatically updated to reflect the committed changes.