[clangd] LSP extension to switch between source/header file
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 28 Sep 2017 03:14:40 +0000 (03:14 +0000)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 28 Sep 2017 03:14:40 +0000 (03:14 +0000)
commit6571b3edd08261a4f440b21ef1e7a345192194f7
tree8d63209e4c1804472c85728dc0c8edc94f28b0f3
parente9165f87203a0480fcc0308004467a9b4237170a
[clangd] LSP extension to switch between source/header file

Summary:
Small extension to LSP to allow clients to use clangd to switch between C header files and source files.
Final version will use the completed clangd indexer to use the index of symbols to be able to switch from header to source file when the file names don't match.

Reviewers: malaperle, krasimir, bkramer, ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: ilya-biryukov, cfe-commits, arphaman

Patch by: William Enright

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

llvm-svn: 314377
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/ProtocolHandlers.cpp
clang-tools-extra/clangd/ProtocolHandlers.h
clang-tools-extra/unittests/clangd/ClangdTests.cpp