llvm-project/clang-tools-extra/test/clangd
Ilya Biryukov 261c72e8f9 [clangd] Don't crash on LSP calls for non-added files
Summary:
We will return errors for non-added files for now.
Another alternative for clangd would be to read non-added files from
disk and provide useful features anyway.

There are still some cases that fail with assertion (e.g., code
complete). We should address those too, but they require more subtle
changes to the code and therefore out of scope of this patch.

Reviewers: sammccall, ioeric, hokein

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

llvm-svn: 322637
2018-01-17 12:30:24 +00:00
..
authority-less-uri.test [clangd] Switch from YAMLParser to JSONExpr 2017-11-28 09:37:43 +00:00
completion.test [clangd] Add unit tests for signature help. SigHelp/CodeComplete lit tests are smoke only. 2017-12-19 10:29:27 +00:00
crash-non-added-files.test [clangd] Don't crash on LSP calls for non-added files 2018-01-17 12:30:24 +00:00
diagnostics-preamble.test [clangd] Use in-memory preambles in clangd. 2017-11-16 16:25:18 +00:00
diagnostics.test [clangd] Emit ranges for clangd diagnostics, and fix off-by-one positions 2017-12-13 08:48:42 +00:00
execute-command.test [clangd] Emit ranges for clangd diagnostics, and fix off-by-one positions 2017-12-13 08:48:42 +00:00
extra-flags.test [clangd] Emit ranges for clangd diagnostics, and fix off-by-one positions 2017-12-13 08:48:42 +00:00
fixits.test [clangd] Emit ranges for clangd diagnostics, and fix off-by-one positions 2017-12-13 08:48:42 +00:00
formatting.test Adds a json::Expr type to represent intermediate JSON expressions. 2017-11-06 15:40:30 +00:00
initialize-params-invalid.test [clangd] Document highlights for clangd 2017-12-12 12:27:47 +00:00
initialize-params.test [clangd] Document highlights for clangd 2017-12-12 12:27:47 +00:00
input-mirror.test Adds a json::Expr type to represent intermediate JSON expressions. 2017-11-06 15:40:30 +00:00
lit.local.cfg [clangd] Revert broken r318329 and disable tests on PS4 2017-11-15 21:33:56 +00:00
protocol.test [clangd] Switch from YAMLParser to JSONExpr 2017-11-28 09:37:43 +00:00
rename.test [clangd] Add rename support. 2017-11-09 11:30:04 +00:00
shutdown-with-exit.test [clangd] Handle exit notification (proper shutdown) 2017-10-25 08:45:41 +00:00
shutdown-without-exit.test [clangd] Handle exit notification (proper shutdown) 2017-10-25 08:45:41 +00:00
signature-help.test [clangd] Add unit tests for signature help. SigHelp/CodeComplete lit tests are smoke only. 2017-12-19 10:29:27 +00:00
too_large.test [clangd] Don't crash on extremely large JSON messages. 2017-10-27 17:06:41 +00:00
trace.test [clangd] New conventions for JSON-marshalling functions, centralize machinery 2017-11-30 21:32:29 +00:00
unsupported-method.test Adds a json::Expr type to represent intermediate JSON expressions. 2017-11-06 15:40:30 +00:00
xrefs.test [clangd] Switch xrefs and documenthighlight to annotated-code unit tests. NFC 2017-12-20 16:06:05 +00:00