kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. Herald added a project: clang.
Fixes https://bugs.llvm.org/show_bug.cgi?id=40593. Non-percent-encoded chars doesn't cause any problems on the input-side since we assume everything after authority section is data and don't interpret them as delimeters. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D58126 Files: test/clangd/Inputs/background-index/definition.jsonrpc Index: test/clangd/Inputs/background-index/definition.jsonrpc =================================================================== --- test/clangd/Inputs/background-index/definition.jsonrpc +++ test/clangd/Inputs/background-index/definition.jsonrpc @@ -44,7 +44,7 @@ } } } -# CHECK: "uri": "file://DIRECTORY/foo.cpp" +# CHECK: "uri": "file://{{.*}}/foo.cpp" --- {"jsonrpc":"2.0","id":3,"method":"shutdown"} ---
Index: test/clangd/Inputs/background-index/definition.jsonrpc =================================================================== --- test/clangd/Inputs/background-index/definition.jsonrpc +++ test/clangd/Inputs/background-index/definition.jsonrpc @@ -44,7 +44,7 @@ } } } -# CHECK: "uri": "file://DIRECTORY/foo.cpp" +# CHECK: "uri": "file://{{.*}}/foo.cpp" --- {"jsonrpc":"2.0","id":3,"method":"shutdown"} ---
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits