This is an archive of the discontinued LLVM Phabricator instance.

[Clangd] Support Authority-less URIs
ClosedPublic

Authored by malaperle-ericsson on Apr 19 2017, 11:09 AM.

Details

Summary

Clangd strips URIs by removing the file:// part but some clients can send file:
which is also valid according to RFC 3896. For example, if a client sends
file:///home/user, it gets converted to /home/user but if a client sends
file:/home/user, it is left untouched and problems arise.

Diff Detail

Repository
rL LLVM

Event Timeline

malaperle-ericsson set the repository for this revision to rL LLVM.
malaperle-ericsson added a project: Restricted Project.
malaperle-ericsson added a subscriber: cfe-commits.
bkramer accepted this revision.Apr 19 2017, 12:59 PM

This is fine. Test case would be nice though.

This revision is now accepted and ready to land.Apr 19 2017, 12:59 PM

Benjamin, I added a test, do you still think it's OK? Thanks!

Still looking good. Will commit this soon.

This revision was automatically updated to reflect the committed changes.