llvm-project/clang-tools-extra/clangd/test
Sam McCall 57ee624d79 [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR
CLANG_TOOLS_DIR holds the the current bin/ directory, maybe with a %(build_mode)
placeholder. It is used to add the just-built binaries to $PATH for lit tests.
In most cases it equals LLVM_TOOLS_DIR, which is used for the same purpose.
But for a standalone build of clang, CLANG_TOOLS_DIR points at the build tree
and LLVM_TOOLS_DIR points at the provided LLVM binaries.

Currently CLANG_TOOLS_DIR is set in clang/test/, clang-tools-extra/test/, and
other things always built with clang. This is a few cryptic lines of CMake in
each place. Meanwhile LLVM_TOOLS_DIR is provided by configure_site_lit_cfg().

This patch moves CLANG_TOOLS_DIR to configure_site_lit_cfg() and renames it:
 - there's nothing clang-specific about the value
 - it will also replace LLD_TOOLS_DIR, LLDB_TOOLS_DIR etc (not in this patch)

It also defines CURRENT_LIBS_DIR. While I removed the last usage of
CLANG_LIBS_DIR in e4cab4e24d, there are LLD_LIBS_DIR usages etc that
may be live, and I'd like to mechanically update them in a followup patch.

Differential Revision: https://reviews.llvm.org/D121763
2022-03-25 20:22:01 +01:00
..
Inputs [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
index-serialization [clangd] Extend SymbolOrigin, stop serializing it 2022-01-13 08:26:12 +01:00
remote-index [clangd] Introduce a log-prefix flag to remote-index-server 2021-06-25 16:51:29 +02:00
xpc
CMakeLists.txt [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR 2022-03-25 20:22:01 +01:00
ast-no-range.test [clangd] Allow AST request without range 2021-04-23 21:35:42 +02: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] Enable relative configs in check mode 2021-07-30 14:23:48 +02:00
check-lines.test [clangd] Enable relative configs in check mode 2021-07-30 14:23:48 +02:00
check.test [clangd] Enable relative configs in check mode 2021-07-30 14:23:48 +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
completion-snippets.test
completion.test
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
crash-parse.test [clangd] Add integration test for crash handling 2021-10-27 11:52:31 +02:00
crash-preamble.test [clangd] Add integration test for crash handling 2021-10-27 11:52:31 +02:00
delimited-input-comment-at-the-end.test
dependency-output.test [clangd] Disable dependency-output lit test on windows 2020-04-25 13:55:38 +02:00
diagnostic-category.test
diagnostics-no-tidy.test [clangd] Make version in PublishDiagnosticsParams optional 2020-05-11 10:31:10 +02:00
diagnostics-notes.test
diagnostics-tidy.test [clangd] Add CMake option to (not) link in clang-tidy checks 2021-07-14 10:04:21 +02:00
did-change-configuration-params.test Revert "Revert "[clangd] Adjust compile flags to contain only the requested file as input"" 2021-07-27 14:49:53 +02: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
exit-eof.test
exit-with-shutdown.test
exit-without-shutdown.test
filestatus.test
fixits-codeaction.test
fixits-command.test
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
hover.test
implementations.test [clangd] textDocument/implementation (LSP layer) 2020-11-23 13:50:44 +01:00
index-tools.test
indexer.test [clangd] Unify compiler invocation creation 2021-07-30 15:22:51 +02:00
initialize-params-invalid.test
initialize-params.test [clangd] Implement textDocument/typeDefinition 2022-01-13 22:15:10 +01:00
initialize-sequence.test
inlayHints.test [clangd] Polish clangd/inlayHints and expose them by default. 2022-01-07 15:12:43 +01:00
input-mirror.test
lit.cfg.py [clangd] Add CMake option to (not) link in clang-tidy checks 2021-07-14 10:04:21 +02:00
lit.local.cfg
lit.site.cfg.py.in [cmake] Provide CURRENT_TOOLS_DIR centrally, replacing CLANG_TOOLS_DIR 2022-03-25 20:22:01 +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
protocol.test
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
selection-range.test
semantic-tokens-refresh.test [clangd] Introduce client state invalidation 2021-03-04 11:15:10 +01:00
semantic-tokens.test Add semantic token modifier for non-const reference parameter 2021-09-13 00:51:09 -04:00
signature-help-with-offsets.test
signature-help.test [clangd] Provide documentation as MarkupContent in signaturehelp 2021-12-10 12:58:08 +01:00
spaces-in-delimited-input.test
symbol-info.test
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
trace.test
tweaks-format.test
type-definition.test [clangd] Implement textDocument/typeDefinition 2022-01-13 22:15:10 +01:00
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
xrefs.test