diff options
author | Eric Liu <ioeric@google.com> | 2018-01-31 16:26:27 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-01-31 16:26:27 +0000 |
commit | 5740ff5bed8a0e2a91c219266211f7757da0f8b4 (patch) | |
tree | ba2fd37aaa2a3572890d2771c999fd2cc52ec0df /clang-tools-extra/clangd/Protocol.cpp | |
parent | f53288d596bd30f00419ff61abeb83486f67d53a (diff) | |
download | bcm5719-llvm-5740ff5bed8a0e2a91c219266211f7757da0f8b4.tar.gz bcm5719-llvm-5740ff5bed8a0e2a91c219266211f7757da0f8b4.zip |
[clangd] Add a test URI scheme for lit tests to unbreak platform-specific URI failures.
Summary:
This should also fix the current windows buildbot breakage
(http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/9838/steps/ninja%20check%201/logs/stdio)
Reviewers: sammccall
Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits
Differential Revision: https://reviews.llvm.org/D42735
llvm-svn: 323885
Diffstat (limited to 'clang-tools-extra/clangd/Protocol.cpp')
-rw-r--r-- | clang-tools-extra/clangd/Protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Protocol.cpp b/clang-tools-extra/clangd/Protocol.cpp index bef94d10d39..a55b50f0c54 100644 --- a/clang-tools-extra/clangd/Protocol.cpp +++ b/clang-tools-extra/clangd/Protocol.cpp @@ -31,7 +31,7 @@ bool fromJSON(const json::Expr &E, URIForFile &R) { log("Failed to parse URI " + *S + ": " + llvm::toString(U.takeError())); return false; } - if (U->scheme() != "file") { + if (U->scheme() != "file" && U->scheme() != "test") { log("Clangd only supports 'file' URI scheme for workspace files: " + *S); return false; } |