llvm-project/clang-tools-extra/clangd/test
Kadir Cetinkaya 4f1bbc0b84
[clangd] Introduce a CommandLineConfigProvider
This enables unifying command line flags with config options in clangd
internals. This patch changes behaviour in 2 places:
- BackgroundIndex was previously disabled when -remote-index was
provided. After this patch, it will be enabled but all files will have
bkgindex policy set to Skip.
- -index-file was loaded at startup (at least load was initiated), now
the load will happen through ProjectAwareIndex with first index query.

Unfortunately this doesn't simplify any options initially, as
- CompileCommandsDir is also used by clangd --check workflow, which
doesn't use configs.
- EnableBackgroundIndex option controls whether the component will be
created at all, which implies creation of extra threads registering a
listener for compilation database discoveries.

Differential Revision: https://reviews.llvm.org/D98029
2021-03-11 13:35:05 +01:00
..
Inputs [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
index-serialization [clangd] Index local classes, virtual and overriding methods. 2021-01-19 16:18:48 +01:00
remote-index [clangd] Add index server request logging 2020-11-11 23:58:18 +01:00
xpc
CMakeLists.txt [clangd] Add lit tests for remote index 2020-11-02 08:38:16 +01:00
ast.test [clangd] Add textDocument/ast extension method to dump the AST 2020-11-20 01:13:28 +01:00
background-index.test [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
call-hierarchy.test [clangd] Call hierarchy (ClangdLSPServer layer) 2020-11-23 20:44:07 -05:00
check-fail.test [clangd] ExpandAutoType: Do not offer code action on lambdas. 2020-12-08 20:03:16 +01:00
check.test [clangd] Drop dependence on standard library in check.test 2020-10-02 09:53:06 +02:00
code-action-request.test [clangd] Support CodeActionParams.only 2020-10-29 09:44:08 +01:00
compile-commands-path-in-initialize.test [clangd][test] Make sed git bash compliant 2020-04-20 08:27:15 +02:00
completion-auto-trigger.test [clangd] Expose Code Completion score to the client 2020-02-13 15:05:18 +01:00
completion-snippets.test [clangd] Expose Code Completion score to the client 2020-02-13 15:05:18 +01:00
completion.test [clangd] Expose Code Completion score to the client 2020-02-13 15:05:18 +01:00
config.test [clangd] Provide suggestions with invalid config keys 2020-12-15 18:16:17 +00:00
crash-non-added-files.test [clangd] Move DraftStore from ClangdLSPServer into ClangdServer. 2021-03-02 22:58:50 +01:00
delimited-input-comment-at-the-end.test [clangd] Rename -run-synchronously to -sync 2019-05-28 09:20:57 +00:00
dependency-output.test [clangd] Disable dependency-output lit test on windows 2020-04-25 13:55:38 +02:00
diagnostic-category.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
diagnostics-no-tidy.test [clangd] Make version in PublishDiagnosticsParams optional 2020-05-11 10:31:10 +02:00
diagnostics-notes.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
diagnostics.test [clangd] Make version in PublishDiagnosticsParams optional 2020-05-11 10:31:10 +02:00
did-change-configuration-params.test [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
document-link.test [clangd] Don't rely on builtin headers for document-link.test. 2021-02-01 15:36:34 +01:00
execute-command.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
exit-eof.test [clangd] Shutdown cleanly on signals. 2019-11-27 12:38:49 +01:00
exit-with-shutdown.test
exit-without-shutdown.test
filestatus.test
fixits-codeaction.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
fixits-command.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
fixits-embed-in-diagnostic.test [clangd] Mark code action as "preferred" if it's the sole quickfix action 2020-09-30 10:11:30 +02:00
formatting.test [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
hover.test [clangd][Hover] Change arrow in return type back to → 2020-01-24 13:05:21 +01:00
implementations.test [clangd] textDocument/implementation (LSP layer) 2020-11-23 13:50:44 +01:00
index-tools.test
initialize-params-invalid.test
initialize-params.test [clangd] Expose more dependent-name detail via semanticTokens 2021-02-09 20:40:59 +01:00
initialize-sequence.test
input-mirror.test [clangd] Rename -run-synchronously to -sync 2019-05-28 09:20:57 +00:00
lit.cfg.py [clangd] Ensure we test for compatibility of serialized index format 2020-11-13 17:06:23 +01:00
lit.local.cfg
lit.site.cfg.py.in [clangd] Ensure we test for compatibility of serialized index format 2020-11-13 17:06:23 +01:00
log.test [clangd] Introduce a CommandLineConfigProvider 2021-03-11 13:35:05 +01:00
memory_tree.test [clangd] Use URIs instead of paths in the index file list 2021-03-06 10:47:05 +03:00
metrics.test [clangd] Add CSV export for trace metrics 2020-05-19 13:35:31 +02:00
path-mappings.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
protocol.test [clangd] Expose Code Completion score to the client 2020-02-13 15:05:18 +01:00
references.test [clangd] Respect ReferencesParams.context.includeDeclarations 2021-02-01 17:07:02 +01:00
rename.test [clangd] Extend the rename API. 2020-10-02 16:03:44 +02:00
request-reply.test Make code-action-request.test and request-reply.test pass on Windows. 2019-10-14 01:00:33 +00:00
selection-range.test [clangd] Add semantic selection to ClangdLSPServer. 2019-09-24 13:38:33 +00:00
semantic-tokens-refresh.test [clangd] Introduce client state invalidation 2021-03-04 11:15:10 +01:00
semantic-tokens.test [clangd] Remove support for pre-standard semanticHighlighting notification 2021-02-10 22:09:03 +01:00
signature-help-with-offsets.test [clangd] Support offsets for parameters in signatureHelp 2019-06-04 09:36:59 +00:00
signature-help.test
spaces-in-delimited-input.test [clangd] Rename -run-synchronously to -sync 2019-05-28 09:20:57 +00:00
symbol-info.test convert another test to unix line endings 2019-10-14 02:21:12 +00:00
symbols.test [clangd] Populate detail field in document symbols 2021-02-18 16:53:41 +01:00
system-include-extractor.test [clangd] When querying drivers by binary, look in PATH too 2021-01-05 12:54:07 +01:00
target_info.test Fix target_info.test on Windows with a hack 2020-04-13 13:14:06 -07:00
test-uri-posix.test
test-uri-windows.test [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
textdocument-didchange-fail.test
too_large.test [clangd] Rename -run-synchronously to -sync 2019-05-28 09:20:57 +00:00
trace.test
tweaks-format.test
type-hierarchy.test [clangd] Follow-up to fix lit-test bustage in type-hierarchy.test 2020-06-15 12:18:21 -04:00
unsupported-method.test
utf8.test
version.test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
xrefs.test