llvm-project/clang-tools-extra/unittests/clangd
Ilya Biryukov 94da7bdde6 [clangd] Handle multiple callbacks from Sema's completion
Summary:
When parser backtracks, we might receive multiple code completion
callbacks.
Previously we had a failing assertion there, now we take first results
and hope they are good enough.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, jkorous-apple, ioeric, cfe-commits

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

llvm-svn: 327717
2018-03-16 15:23:44 +00:00
..
Annotations.cpp [clangd] Better handling symbols defined in macros. 2018-01-31 12:56:51 +00:00
Annotations.h [clangd] Update include guard in Annotations.h. NFC 2018-02-08 12:46:34 +00:00
CMakeLists.txt [clangd] Fix link failures for Preprocessor::addCommentHandler 2018-02-18 10:50:16 +00:00
ClangdTests.cpp Move DraftMgr from ClangdServer to ClangdLSPServer 2018-03-16 14:30:42 +00:00
ClangdUnitTests.cpp [clangd] Remove extra ";", NFC. 2018-03-13 12:26:28 +00:00
CodeCompleteTests.cpp [clangd] Handle multiple callbacks from Sema's completion 2018-03-16 15:23:44 +00:00
CodeCompletionStringsTests.cpp [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
ContextTests.cpp [clangd] Introduced a Context that stores implicit data 2017-12-12 11:16:45 +00:00
FileIndexTests.cpp [clangd] Not collect include headers for dynamic index for now. 2018-02-22 10:14:05 +00:00
FuzzyMatchTests.cpp [clangd] Address missed comments from D44003 2018-03-06 14:30:07 +00:00
HeadersTests.cpp [clangd] Remove Tagged and some related APIs from ClangdServer. 2018-03-12 23:22:35 +00:00
IndexTests.cpp [clangd] Add an interface that finds symbol by SymbolID in SymbolIndex. 2018-03-14 09:48:05 +00:00
JSONExprTests.cpp [clangd] New conventions for JSON-marshalling functions, centralize machinery 2017-11-30 21:32:29 +00:00
Matchers.h [clangd] Fix crash when CompilerInvocation can't be created. 2018-02-09 13:51:57 +00:00
SourceCodeTests.cpp [clangd] Explicitly initialize all primitive fields in Protocol.h 2018-02-14 10:52:04 +00:00
SymbolCollectorTests.cpp [clangd] Collect the number of files referencing a symbol in the static index. 2018-03-12 14:49:09 +00:00
SyncAPI.cpp [clangd] Remove forceReparse, add a flag to addDocument instead 2018-03-14 17:08:41 +00:00
SyncAPI.h [clangd] Remove forceReparse, add a flag to addDocument instead 2018-03-14 17:08:41 +00:00
TUSchedulerTests.cpp [clangd] Don't expose vfs in TUScheduler::runWithPreamble. 2018-03-14 17:46:52 +00:00
TestFS.cpp [clangd] Remove Tagged and some related APIs from ClangdServer. 2018-03-12 23:22:35 +00:00
TestFS.h [clangd] Remove Tagged and some related APIs from ClangdServer. 2018-03-12 23:22:35 +00:00
ThreadingTests.cpp [clangd] Tracing: name worker threads, and enforce naming scheduled async tasks 2018-02-19 09:56:28 +00:00
TraceTests.cpp [clangd] Fix tracing now that spans lifetimes can overlap on a thread. 2018-02-15 08:40:54 +00:00
URITests.cpp [clangd] TestFS cleanup: getVirtualBlahBlah -> testPath/testRoot. Remove SmallString micro-opt for more ergonomic tests. NFC 2018-02-16 09:41:43 +00:00
XRefsTests.cpp [clangd] Use the macro name range as the definition range. 2018-03-13 14:31:31 +00:00