[PATCH] D143436: [clangd] Apply standard adaptors to CDBs pushed from LSP

Dmitry Polukhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 13 03:49:39 PST 2023


DmitryPolukhin added a comment.

In D143436#4120899 <https://reviews.llvm.org/D143436#4120899>, @nridge wrote:

> Note that D138546 <https://reviews.llvm.org/D138546> is removing the call to `inferTargetAndDriverMode()` from `GlobalCompilationDatabase.cpp`. It adds equivalent logic too `CommandMangler` which is used for CDBs pushed from LSP as well, so it accomplishes objective of this patch with respect to `inferTargetAndDriverMode` (but not `inferMissingCompileCommands`).

@nridge I think D138546 <https://reviews.llvm.org/D138546> solves the issue only partially and we need both patches applied. `inferMissingCompileCommands` and `expandResponseFiles` also needs to be applied to command pushed via LSP. I can rebase on top of D138546 <https://reviews.llvm.org/D138546> if it will be landed first and update test. Please advise which patch should land first?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143436/new/

https://reviews.llvm.org/D143436



More information about the cfe-commits mailing list