llvm-project/clang-tools-extra/clangd
Krasimir Georgiev e6035a51f7 [clangd] Add parameter and return type information to completion results
Summary:
This patch adds information about the parameters and return types of completion
candidates.
Previously, for the following code:
```
struct S {
  int func(int a, double b) const;
};
```
the completer would only return the label of the candidate `func`.
Now it will also return the return type `int` and will format the label for the
candidate as `func(int a, double b) const`.

Reviewers: bkramer, ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang-tools-extra

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

llvm-svn: 304980
2017-06-08 15:11:51 +00:00
..
clients/clangd-vscode [clangd] Extract FsPath from file:// uri 2017-04-07 11:03:26 +00:00
tool [clangd] Split clangd into library+executable (mainly for unit tests). 2017-05-23 08:12:45 +00:00
CMakeLists.txt [clangd] Added a missing dependency on clangdAST to fix the build 2017-05-23 13:59:37 +00:00
ClangdLSPServer.cpp [clangd] Mark results of clangd requests with a tag provided by the FileSystemProvider. 2017-05-30 15:11:02 +00:00
ClangdLSPServer.h [clangd] Refactor ProtocolHandlers to decouple them from ClangdLSPServer 2017-05-16 14:40:30 +00:00
ClangdServer.cpp [clangd] Mark results of clangd requests with a tag provided by the FileSystemProvider. 2017-05-30 15:11:02 +00:00
ClangdServer.h [clangd] Mark results of clangd requests with a tag provided by the FileSystemProvider. 2017-05-30 15:11:02 +00:00
ClangdUnit.cpp [clangd] Add parameter and return type information to completion results 2017-06-08 15:11:51 +00:00
ClangdUnit.h [clangd] Allow to use vfs::FileSystem for file accesses. 2017-05-26 12:26:51 +00:00
ClangdUnitStore.cpp Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
ClangdUnitStore.h [clangd] Allow to use vfs::FileSystem for file accesses. 2017-05-26 12:26:51 +00:00
DraftStore.cpp Fixing compilation failures on buildbots. 2017-05-16 10:06:20 +00:00
DraftStore.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
GlobalCompilationDatabase.cpp Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
GlobalCompilationDatabase.h Fixing compilation failures on buildbots. 2017-05-16 10:06:20 +00:00
JSONRPCDispatcher.cpp Added missing includes in clangd to fix the build. 2017-05-16 15:23:55 +00:00
JSONRPCDispatcher.h Added missing includes in clangd to fix the build. 2017-05-16 15:23:55 +00:00
Path.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
Protocol.cpp [Clangd] Failed to decode params using 1.x-compatible request message 2017-04-21 15:51:23 +00:00
Protocol.h [clangd] Remove ASTUnits for closed documents and cache CompilationDatabase per directory. 2017-04-10 13:31:39 +00:00
ProtocolHandlers.cpp [clangd] Refactor ProtocolHandlers to decouple them from ClangdLSPServer 2017-05-16 14:40:30 +00:00
ProtocolHandlers.h [clangd] Refactor ProtocolHandlers to decouple them from ClangdLSPServer 2017-05-16 14:40:30 +00:00