[PATCH] D49523: [clangd] Add support for per-file override compilation command

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 18 16:54:25 PDT 2018


arphaman created this revision.
arphaman added reviewers: jkorous, sammccall, ilya-biryukov.
arphaman added a project: clang-tools-extra.
Herald added subscribers: dexonsmith, MaskRay, ioeric.

This patch builds on top of the "extra flags" extension added in r307241.
It adds the ability to specify user-defined custom compilation command for an opened file through the LSP layer. This is a non-standard extension to the protocol.

The particular use-case is follows: our clients do not have a compilation database and will specify all compilation commands dynamically when a file is open.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D49523

Files:
  clangd/ClangdLSPServer.cpp
  clangd/GlobalCompilationDatabase.cpp
  clangd/GlobalCompilationDatabase.h
  clangd/Protocol.cpp
  clangd/Protocol.h
  test/clangd/override-compile-command.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49523.156183.patch
Type: text/x-patch
Size: 8077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180718/e831bcc0/attachment.bin>


More information about the cfe-commits mailing list