llvm-project/clang-tools-extra/clangd
Krasimir Georgiev c2a16a3567 [clangd] Add support for per-file extra flags
Summary:
This patch adds the ability to specify user-defined extra flags per opened file
through the LSP layer. This is a non-standard extension to the protocol.
I've already created a feature request about it for upstream lsp:
https://github.com/Microsoft/language-server-protocol/issues/255

The particular use-case is ycmd, which has a python script for figuring out
extra flags per file:
https://github.com/Valloric/ycmd#flagsforfile-filename-kwargs-

Reviewers: ilya-biryukov, klimek, bkramer

Reviewed By: ilya-biryukov

Subscribers: cfe-commits

Tags: #clang-tools-extra

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

llvm-svn: 307241
2017-07-06 08:44:54 +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 clangDaemon requires clangLex. 2017-06-28 22:57:15 +00:00
ClangdLSPServer.cpp [clangd] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
ClangdLSPServer.h [clangd] Store references instead of unique_ptrs in ClangdServer. 2017-06-13 15:59:43 +00:00
ClangdServer.cpp ClangdServer.cpp: Suppress a warning. [-Wunused-lambda-capture] 2017-07-04 12:12:14 +00:00
ClangdServer.h [clangd] Add "Go to Declaration" functionality 2017-06-28 16:12:10 +00:00
ClangdUnit.cpp [clangd] Check failure of Lexer::getRawToken in GoToDeclaration. 2017-06-29 17:11:32 +00:00
ClangdUnit.h [clangd] Add "Go to Declaration" functionality 2017-06-28 16:12:10 +00:00
ClangdUnitStore.cpp [clangd] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
ClangdUnitStore.h [clangd] Allow to override resource dir in ClangdServer. 2017-06-28 10:34:50 +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] Add support for per-file extra flags 2017-07-06 08:44:54 +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] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
Protocol.h [clangd] Add support for per-file extra flags 2017-07-06 08:44:54 +00:00
ProtocolHandlers.cpp [clangd] Add "Go to Declaration" functionality 2017-06-28 16:12:10 +00:00
ProtocolHandlers.h [clangd] Add "Go to Declaration" functionality 2017-06-28 16:12:10 +00:00