[PATCH] D31401: [clangd] Extract FsPath from file:// uri

Stanislav Ionascu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 27 10:32:37 PDT 2017


stanionascu created this revision.

rfc8089#appendix-E.2 specifies that paths can begin with a drive letter e.g. as file:///c:/.
In this case just consuming front file:// is not enough and the 3rd slash must be consumed to produce a valid path on windows.

The patch introduce a generic way of converting an uri to a filesystem path and back.


https://reviews.llvm.org/D31401

Files:
  clangd/ASTManager.cpp
  clangd/Protocol.cpp
  clangd/Protocol.h
  clangd/clients/clangd-vscode/src/extension.ts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31401.93154.patch
Type: text/x-patch
Size: 4416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170327/5fe291b1/attachment.bin>


More information about the cfe-commits mailing list