[PATCH] D92155: Load plugins when creating a CompilerInvocation.

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 15 00:45:36 PST 2020


nridge added a comment.

In D92155#2454175 <https://reviews.llvm.org/D92155#2454175>, @sammccall wrote:

> I thought `getConfiguration('clangd')` with no scope specified was supposed to be global (i.e. not a workspace-specific setting). There's a scope you can pass in, and we're not providing one.
>
> Nevertheless testing it locally these flags do seem to be used. We should fix this, I think `workspace.getConfiguration('clangd').inspect('arguments')` and then applying the components manually makes it possible. This is a horrible breaking change, though :-(

Apart from the breaking nature of the change, I think being able to specify `"clangd.arguments"` per-workspace is a very important use case (to take the most obvious example, `--compile-commands-dir` is workspace-specific).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92155



More information about the cfe-commits mailing list