llvm-project/clang-tools-extra/clangd/index
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
..
dex [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
Background.cpp [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
Background.h [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
BackgroundIndexStorage.cpp Introduce shard storage to auto-index. 2018-11-16 09:03:56 +00:00
CanonicalIncludes.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
CanonicalIncludes.h [clangd] Get rid of regexes in CanonicalIncludes 2018-08-22 13:51:19 +00:00
FileIndex.cpp [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
FileIndex.h [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
Index.cpp [clangd] Replace StringRef in SymbolLocation with a char pointer. 2018-11-14 11:55:45 +00:00
Index.h [clangd] Truncate SymbolID to 8 bytes. 2018-11-16 10:58:40 +00:00
IndexAction.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
IndexAction.h [clangd] Collect refs from headers. 2018-10-17 08:38:36 +00:00
MemIndex.cpp [clangd] Get rid of QueryScopes.empty() == AnyScope special case. 2018-11-06 11:08:17 +00:00
MemIndex.h [clangd] Add symbol slab size to index memory consumption estimates 2018-09-10 11:46:07 +00:00
Merge.cpp [clangd] Replace StringRef in SymbolLocation with a char pointer. 2018-11-14 11:55:45 +00:00
Merge.h [clangd] expose MergedIndex class 2018-10-04 14:20:22 +00:00
Serialization.cpp [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
Serialization.h [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
SymbolCollector.cpp [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
SymbolCollector.h [clangd] Cleanup: stop passing around list of supported URI schemes. 2018-11-22 15:02:05 +00:00
YAMLSerialization.cpp [clangd] Replace StringRef in SymbolLocation with a char pointer. 2018-11-14 11:55:45 +00:00