diff options
author | Eric Liu <ioeric@google.com> | 2018-06-15 08:55:00 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-06-15 08:55:00 +0000 |
commit | 13e503f68a0ec42807c46aa76540b3eb06450b9d (patch) | |
tree | a4ad95a19d776794ffa1226b0ffc76fe70548b1f /clang-tools-extra/clangd/ClangdServer.cpp | |
parent | 0651eb1b31ce0ab3e2dd88947f38de7e3ebc8bc9 (diff) | |
download | bcm5719-llvm-13e503f68a0ec42807c46aa76540b3eb06450b9d.tar.gz bcm5719-llvm-13e503f68a0ec42807c46aa76540b3eb06450b9d.zip |
[clangd] Customizable URI schemes for dynamic index.
Summary:
This allows dynamic index to have consistent URI schemes with the
static index which can have customized URI schemes, which would make file
proximity scoring based on URIs easier.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits
Differential Revision: https://reviews.llvm.org/D47931
llvm-svn: 334809
Diffstat (limited to 'clang-tools-extra/clangd/ClangdServer.cpp')
-rw-r--r-- | clang-tools-extra/clangd/ClangdServer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp index c2b68f8a970..3ca694c68e9 100644 --- a/clang-tools-extra/clangd/ClangdServer.cpp +++ b/clang-tools-extra/clangd/ClangdServer.cpp @@ -87,7 +87,8 @@ ClangdServer::ClangdServer(GlobalCompilationDatabase &CDB, : CDB(CDB), DiagConsumer(DiagConsumer), FSProvider(FSProvider), ResourceDir(Opts.ResourceDir ? Opts.ResourceDir->str() : getStandardResourceDir()), - FileIdx(Opts.BuildDynamicSymbolIndex ? new FileIndex() : nullptr), + FileIdx(Opts.BuildDynamicSymbolIndex ? new FileIndex(Opts.URISchemes) + : nullptr), PCHs(std::make_shared<PCHContainerOperations>()), // Pass a callback into `WorkScheduler` to extract symbols from a newly // parsed file and rebuild the file index synchronously each time an AST |