[PATCH] D148663: [RFC][clangd] Use interpolation for CDB pushed via LSP protocol

Dmitry Polukhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 14:35:57 PDT 2023


DmitryPolukhin created this revision.
DmitryPolukhin added reviewers: kadircet, nridge, sammccall, ilya-biryukov.
DmitryPolukhin added a project: clang-tools-extra.
Herald added a subscriber: arphaman.
Herald added a project: All.
DmitryPolukhin requested review of this revision.
Herald added a subscriber: MaskRay.

Now clangd only interpolates CDBs loaded from disk and doesn't make any
interpolation for CDBs pushed via LSP protocol. This diff add the same
extrapolation logic as for loaded from disk.

Test Plan: check-clangd


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148663

Files:
  clang-tools-extra/clangd/ClangdLSPServer.cpp
  clang-tools-extra/clangd/GlobalCompilationDatabase.cpp
  clang-tools-extra/clangd/GlobalCompilationDatabase.h
  clang-tools-extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148663.514748.patch
Type: text/x-patch
Size: 7923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230418/a9260729/attachment.bin>


More information about the cfe-commits mailing list