llvm-project/clang-tools-extra/clangd
Haojian Wu 8f85b9f867 [clangd] Don't store completion info if the symbol is not used for code completion.
Summary:
This would save us some memory and disk space:
  - Dex usage (261 MB vs 266 MB)
  - Disk (75 MB vs 76 MB)

It would save more when we index the main file symbol D55185.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: nridge, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

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

llvm-svn: 350803
2019-01-10 09:22:40 +00:00
..
benchmarks [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
clients/clangd-vscode [clangd] Bump vscode-clangd v0.0.9 2019-01-03 15:28:38 +00:00
fuzzer [clangd] Include <cstdio> instead of <stdio.h>. NFC 2019-01-07 16:55:59 +00:00
index [clangd] Don't store completion info if the symbol is not used for code completion. 2019-01-10 09:22:40 +00:00
indexer [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
tool [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
AST.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
AST.h [clangd] clang-format everything. NFC 2019-01-03 13:28:05 +00:00
CMakeLists.txt [clangd] Fix detecting atomics in stand-alone builds 2019-01-03 16:43:27 +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] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
ClangdLSPServer.h [clangd] Check preceding char when completion triggers on ':' or '>' 2019-01-03 13:37:12 +00:00
ClangdServer.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
ClangdServer.h [clangd] BackgroundIndex rebuilds symbol index periodically. 2018-12-18 15:39:33 +00:00
ClangdUnit.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
ClangdUnit.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CodeComplete.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
CodeComplete.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
CodeCompletionStrings.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
CodeCompletionStrings.h [clangd] Show function documentation in signature help 2018-08-17 09:29:38 +00:00
Compiler.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Compiler.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Context.cpp NFC: Enforce good formatting across multiple clang-tools-extra files 2018-08-14 16:03:32 +00:00
Context.h [clangd] context key constructor is constexpr. NFC 2018-06-15 12:39:21 +00:00
Diagnostics.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +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 [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
DraftStore.h [clangd] Support incremental document syncing 2018-03-26 14:41:40 +00:00
ExpectedTypes.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
ExpectedTypes.h [clangd] Initial implementation of expected types 2018-11-26 15:25:20 +00:00
FS.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
FS.h Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
FSProvider.cpp [clangd] Fix Windows build after r350531 2019-01-07 17:03:15 +00:00
FSProvider.h [clangd] Avoid memory-mapping files on Windows 2018-12-03 15:21:49 +00:00
FileDistance.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
FileDistance.h [clangd] clang-format everything. NFC 2019-01-03 13:28:05 +00:00
FindSymbols.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
FindSymbols.h [clangd] Add support for hierarchical documentSymbol 2018-11-23 15:21:19 +00:00
Function.h [clangd] Delete stray semicolon. NFC 2018-12-24 03:19:53 +00:00
FuzzyMatch.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
FuzzyMatch.h [clangd] FuzzyMatch exposes an API for its word segmentation. NFC 2018-07-20 08:01:37 +00:00
GlobalCompilationDatabase.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
GlobalCompilationDatabase.h [clangd] Auto-index watches global CDB for changes. 2018-11-26 09:51:50 +00:00
Headers.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +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] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Logger.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Logger.h [clangd] Rename and move trivial logger to Logger.cpp. NFC 2018-10-17 07:39:32 +00:00
Path.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
Protocol.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Protocol.h [clangd] Check preceding char when completion triggers on ':' or '>' 2019-01-03 13:37:12 +00:00
Quality.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Quality.h [clangd] Penalize destructor and overloaded operators in code completion. 2018-11-30 11:17:15 +00:00
RIFF.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
RIFF.h [clangd] Define a compact binary serialization fomat for symbol slab/index. 2018-09-04 16:16:50 +00:00
SourceCode.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
SourceCode.h [clangd] Unify path canonicalizations in the codebase 2018-12-19 10:46:21 +00:00
TUScheduler.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
TUScheduler.h [clangd] clang-format everything. NFC 2019-01-03 13:28:05 +00:00
Threading.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Threading.h [clangd] Only reduce priority of a thread for indexing. 2018-12-17 12:30:27 +00:00
Trace.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +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] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
URI.h [clangd] Canonicalize file path in URIForFile. 2018-11-28 10:30:42 +00:00
XRefs.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
XRefs.h [clangd] textDocument/SymbolInfo extension 2018-11-27 16:40:46 +00:00