hanchenye-llvm-project/clang-tools-extra/clangd
Eric Liu 667e8ef7e1 [clangd] BackgroundIndex rebuilds symbol index periodically.
Summary:
Currently, background index rebuilds symbol index on every indexed file,
which can be inefficient. This patch makes it only rebuild symbol index periodically.
As the rebuild no longer happens too often, we could also build more efficient
dex index.

Reviewers: ilya-biryukov, kadircet

Reviewed By: kadircet

Subscribers: dblaikie, MaskRay, jkorous, arphaman, jfb, cfe-commits

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

llvm-svn: 349496
2018-12-18 15:39:33 +00:00
..
benchmarks [clangd] Fix compilation of IndexBenchmark 2018-11-26 15:58:29 +00:00
clients/clangd-vscode [clangd] Bump vscode-clangd v0.0.8 2018-11-30 09:18:31 +00:00
fuzzer [clangd] Make ClangdFuzzer compile again. 2018-11-11 11:09:58 +00:00
index [clangd] BackgroundIndex rebuilds symbol index periodically. 2018-12-18 15:39:33 +00:00
indexer [clangd] Populate include graph during static indexing action. 2018-11-30 16:59:00 +00:00
tool [clangd] BackgroundIndex rebuilds symbol index periodically. 2018-12-18 15:39:33 +00:00
AST.cpp [clangd] Dont provide locations for non-existent files. 2018-12-05 11:57:15 +00:00
AST.h [clangd] Add support for hierarchical documentSymbol 2018-11-23 15:21:19 +00:00
CMakeLists.txt [clangd] Avoid memory-mapping files on Windows 2018-12-03 15:21:49 +00:00
Cancellation.cpp [clangd] Respect task cancellation in TUScheduler. 2018-11-22 10:22:16 +00:00
Cancellation.h [clangd] Respect task cancellation in TUScheduler. 2018-11-22 10:22:16 +00:00
ClangdLSPServer.cpp [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
ClangdLSPServer.h [clangd] textDocument/SymbolInfo extension 2018-11-27 16:40:46 +00:00
ClangdServer.cpp [clangd] BackgroundIndex rebuilds symbol index periodically. 2018-12-18 15:39:33 +00:00
ClangdServer.h [clangd] BackgroundIndex rebuilds symbol index periodically. 2018-12-18 15:39:33 +00:00
ClangdUnit.cpp [clangd] Replay preamble #includes to clang-tidy checks. 2018-11-20 10:58:48 +00:00
ClangdUnit.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CodeComplete.cpp [clangd] Get rid of AST matchers in CodeComplete, NFC 2018-12-03 12:53:19 +00:00
CodeComplete.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CodeCompletionStrings.cpp [clangd] Improve code completion for ObjC methods 2018-11-14 09:05:19 +00:00
CodeCompletionStrings.h
Compiler.cpp [clangd] Only log ignored diagnostics with -log=verbose. 2018-11-02 12:51:26 +00:00
Compiler.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Context.cpp
Context.h
Diagnostics.cpp [clangd] Do not drop diagnostics from macros 2018-11-26 17:05:13 +00:00
Diagnostics.h [clangd] Embed fixes as CodeAction, instead of clangd_fixes. Clean up serialization. 2018-10-24 07:59:38 +00:00
DraftStore.cpp Fix range length comparison in DraftStore::UpdateDraft when Unicode characters are removed from the document 2018-10-23 11:51:53 +00:00
DraftStore.h
ExpectedTypes.cpp [clangd] Initial implementation of expected types 2018-11-26 15:25:20 +00:00
ExpectedTypes.h [clangd] Initial implementation of expected types 2018-11-26 15:25:20 +00:00
FS.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
FS.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
FSProvider.cpp Fix compilation failure on Windows. 2018-12-03 19:59:00 +00:00
FSProvider.h [clangd] Avoid memory-mapping files on Windows 2018-12-03 15:21:49 +00:00
FileDistance.cpp [clangd] Tune down scope boost for global scope 2018-11-26 12:12:01 +00:00
FileDistance.h [clangd] Support scope proximity in code completion. 2018-10-17 11:19:02 +00:00
FindSymbols.cpp [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
FindSymbols.h [clangd] Add support for hierarchical documentSymbol 2018-11-23 15:21:19 +00:00
Function.h [clangd] Allow observation of changes to global CDBs. 2018-11-20 10:56:03 +00:00
FuzzyMatch.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
FuzzyMatch.h
GlobalCompilationDatabase.cpp [clangd] Enable auto-index behind a flag. 2018-11-26 16:00:11 +00:00
GlobalCompilationDatabase.h [clangd] Auto-index watches global CDB for changes. 2018-11-26 09:51:50 +00:00
Headers.cpp [clangd] Replay preamble #includes to clang-tidy checks. 2018-11-20 10:58:48 +00:00
Headers.h Fix "array must be initialized with a brace-enclosed initializer" build error. 2018-12-04 14:07:29 +00:00
JSONTransport.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
Logger.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
Logger.h [clangd] Rename and move trivial logger to Logger.cpp. NFC 2018-10-17 07:39:32 +00:00
Path.h
Protocol.cpp [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
Protocol.h [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
Quality.cpp [clangd] Penalize destructor and overloaded operators in code completion. 2018-11-30 11:17:15 +00:00
Quality.h [clangd] Penalize destructor and overloaded operators in code completion. 2018-11-30 11:17:15 +00:00
RIFF.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
RIFF.h
SourceCode.cpp [clangd] Put direct headers into srcs section. 2018-11-27 16:08:53 +00:00
SourceCode.h [clangd] Put direct headers into srcs section. 2018-11-27 16:08:53 +00:00
TUScheduler.cpp [clangd] Avoid emitting Queued status when we are able to acquire the Barrier. 2018-12-13 13:09:50 +00:00
TUScheduler.h [clangd] C++ API for emitting file status. 2018-12-06 09:41:04 +00:00
Threading.cpp [clangd] Only reduce priority of a thread for indexing. 2018-12-17 12:30:27 +00:00
Threading.h [clangd] Only reduce priority of a thread for indexing. 2018-12-17 12:30:27 +00:00
Trace.cpp [clangd] Namespace style cleanup in cpp files. NFC. 2018-10-20 15:30:37 +00:00
Trace.h [clangd] Ensure that we reply to each call exactly once. NFC (I think!) 2018-10-24 14:26:26 +00:00
Transport.h [clangd] Refactor JSON-over-stdin/stdout code into Transport abstraction. (re-land r344620) 2018-10-17 07:32:05 +00:00
URI.cpp [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
URI.h [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
XRefs.cpp [clangd] Refine the way of checking a declaration is referenced by the written code. 2018-12-13 13:17:04 +00:00
XRefs.h [clangd] textDocument/SymbolInfo extension 2018-11-27 16:40:46 +00:00