This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Validate optional fields more strictly.
ClosedPublic

Authored by sammccall on Oct 9 2020, 7:06 AM.

Diff Detail

Event Timeline

sammccall created this revision.Oct 9 2020, 7:06 AM
sammccall requested review of this revision.Oct 9 2020, 7:06 AM
hokein added inline comments.Oct 12 2020, 2:05 AM
clang-tools-extra/clangd/Protocol.cpp
800

R.failureReason's type is llvm::Optional<std::string>, I think we should probably use the O.map (the overload one for llvm::Optional)?

1130

And this one.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 12 2020, 4:02 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
sammccall marked 2 inline comments as done.

Sorry, I thought this was accepted. Had addressed the two comments, happy to address more or revert, LMK

ah, I thought I clicked the accepted button.

anyway, LGTM.