llvm-project/clang-tools-extra/unittests
Eric Liu dd02825937 [clangd] Add fallback mode for code completion when compile command or preamble is not ready.
Summary:
When calling TUScehduler::runWithPreamble (e.g. in code compleiton), allow
entering a fallback mode when compile command or preamble is not ready, instead of
waiting. This allows clangd to perform naive code completion e.g. using identifiers
in the current file or symbols in the index.

This patch simply returns empty result for code completion in fallback mode. Identifier-based
plus more advanced index-based completion will be added in followup patches.

Reviewers: ilya-biryukov, sammccall

Reviewed By: sammccall

Subscribers: sammccall, javed.absar, MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits

Tags: #clang

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

llvm-svn: 357916
2019-04-08 14:53:16 +00:00
..
clang-apply-replacements Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-change-namespace Rename IncludeFixerTests to ClangIncludeFixerTests and ChangeNamespaceTests to ClangChangeNamespaceTests 2019-03-30 23:09:10 +00:00
clang-doc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clang-include-fixer Rename IncludeFixerTests to ClangIncludeFixerTests and ChangeNamespaceTests to ClangChangeNamespaceTests 2019-03-30 23:09:10 +00:00
clang-move Fix clang-move test. 2019-03-22 18:52:10 +00:00
clang-query Fix file headers. NFC 2019-03-01 09:52:53 +00:00
clang-tidy [clang-tidy] Remove the old ClangTidyCheck::registerPPCallbacks method 2019-04-03 14:03:43 +00:00
clangd [clangd] Add fallback mode for code completion when compile command or preamble is not ready. 2019-04-08 14:53:16 +00:00
include/common Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Rename directory housing clang-include-fixer to be eponymous 2019-03-25 14:09:10 +00:00