hanchenye-llvm-project/clang-tools-extra/clangd
Ilya Biryukov 1fab4f8a59 clangd: Tolerate additional headers
Summary:
The language server protocol specified 2 headers (Content-Length and Content-Type), but does not specify their sequence. It specifies that an empty line ends
headers. Clangd has been updated to handle arbitrary sequences of headers, extracting only the content length.

Patch by puremourning (Ben Jackson).

Reviewers: bkramer, klimek, ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: cfe-commits, ilya-biryukov

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

llvm-svn: 312483
2017-09-04 12:28:15 +00:00
..
clients/clangd-vscode [clangd] Fix Go to Definition not working in VSCode extension 2017-07-11 21:26:18 +00:00
tool [clangd] Use multiple working threads in clangd. 2017-08-14 08:45:47 +00:00
CMakeLists.txt clangDaemon: Update libdeps in r308738. 2017-07-21 23:48:26 +00:00
ClangdLSPServer.cpp [clangd] Use multiple working threads in clangd. 2017-08-14 08:45:47 +00:00
ClangdLSPServer.h [clangd] Use multiple working threads in clangd. 2017-08-14 08:45:47 +00:00
ClangdServer.cpp [clangd] Use multiple working threads in clangd. 2017-08-14 08:45:47 +00:00
ClangdServer.h [clangd] Updated ClangdServer comments. NFC. 2017-08-22 09:16:46 +00:00
ClangdUnit.cpp [clangd] Fixed a data race. 2017-08-14 08:17:24 +00:00
ClangdUnit.h [clangd] Fixed a data race. 2017-08-14 08:17:24 +00:00
ClangdUnitStore.cpp [clangd] Check if CompileCommand has changed on forceReparse. 2017-08-14 08:37:32 +00:00
ClangdUnitStore.h [clangd] Check if CompileCommand has changed on forceReparse. 2017-08-14 08:37:32 +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 [clangd] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
GlobalCompilationDatabase.h [clangd] Rewrote AST and Preamble management. 2017-08-01 15:51:38 +00:00
JSONRPCDispatcher.cpp clangd: Tolerate additional headers 2017-09-04 12:28:15 +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] Run clang-format on all clangd sources. NFC. 2017-08-02 09:08:39 +00:00
Protocol.h [clangd] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
ProtocolHandlers.cpp [clangd] Run clang-format on all clangd sources. NFC. 2017-08-02 09:08:39 +00:00
ProtocolHandlers.h [clangd] Run clang-format on all clangd sources. NFC. 2017-08-02 09:08:39 +00:00