llvm-project/clang-tools-extra/test/clangd
Eric Liu c0ac4bb17c [clangd] Cleanup: stop passing around list of supported URI schemes.
Summary:
Instead of passing around a list of supported URI schemes in clangd, we
expose an interface to convert a path to URI using any compatible scheme
that has been registered. It favors customized schemes and falls
back to "file" when no other scheme works.

Changes in this patch are:
- URI::create(AbsPath, URISchemes) -> URI::create(AbsPath). The new API finds a
compatible scheme from the registry.
- Remove URISchemes option everywhere (ClangdServer, SymbolCollecter, FileIndex etc).
- Unit tests will use "unittest" by default.
- Move "test" scheme from ClangdLSPServer to ClangdMain.cpp, and only
register the test scheme when lit-test or enable-lit-scheme is set.
(The new flag is added to make lit protocol.test work; I wonder if there
is alternative here.)

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D54800

llvm-svn: 347467
2018-11-22 15:02:05 +00:00
..
Inputs [clangd] Cleanup: use index file instead of header in workspace symbols lit test. 2018-11-22 14:59:22 +00:00
compile-commands-path-in-initialize.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
completion-snippets.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
completion.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
crash-non-added-files.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
delimited-input-comment-at-the-end.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
diagnostic-category.test [clangd] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
diagnostics.test [clangd] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
did-change-configuration-params.test [clangd] send diagnostic categories only when 'categorySupport' 2018-08-22 20:30:06 +00:00
execute-command.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
exit-with-shutdown.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
exit-without-shutdown.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
fixits-codeaction.test [clangd] Send CodeAction responses to textDocument/codeAction (LSP 3.8) 2018-10-16 16:29:41 +00:00
fixits-command.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
fixits-embed-in-diagnostic.test [clangd] Embed fixes as CodeAction, instead of clangd_fixes. Clean up serialization. 2018-10-24 07:59:38 +00:00
formatting.test [clangd][tests] Fix typo in tests - invalid LSP exit message 2018-08-15 15:50:45 +00:00
hover.test [clangd] Hover should return null when not hovering over anything. 2018-06-04 10:37:16 +00:00
index-tools.test Mark index-tools.test as REQUIRES: shell so that it does not run with the internal lit shell which does not support "if" 2018-09-14 20:51:07 +00:00
initialize-params-invalid.test [clangd] Add xrefs LSP boilerplate implementation. 2018-09-05 11:53:07 +00:00
initialize-params.test [clangd] Add xrefs LSP boilerplate implementation. 2018-09-05 11:53:07 +00:00
initialize-sequence.test [clangd] Enforce rules around "initialize" request, and create ClangdServer lazily. 2018-10-18 14:41:50 +00:00
input-mirror.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
lit.local.cfg [clangd] Revert broken r318329 and disable tests on PS4 2017-11-15 21:33:56 +00:00
protocol.test [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
references.test [clangd] Fix references.test assertions 2018-09-05 13:17:51 +00:00
rename.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
signature-help.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
spaces-in-delimited-input.test [clangd] Lay JSONRPCDispatcher to rest. 2018-10-18 12:32:04 +00:00
symbols.test [clangd] Cleanup: use index file instead of header in workspace symbols lit test. 2018-11-22 14:59:22 +00:00
test-uri-posix.test [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
test-uri-windows.test [CMake] Use normalized Windows target triples 2018-08-09 02:16:18 +00:00
textdocument-didchange-fail.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
too_large.test [clangd] Rewrite JSON dispatcher loop using C IO (FILE*) instead of std::istream. 2018-06-05 09:34:46 +00:00
trace.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
unsupported-method.test [clangd][tests] Fix typo in tests - invalid LSP exit message 2018-08-15 15:50:45 +00:00
xrefs.test [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00