This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Remove didOpen extraFlags extension.
ClosedPublic

Authored by sammccall on Oct 24 2018, 5:48 AM.

Details

Summary

This was added in D34947 to support YCM, but YCM actually provides *all* args,
and this was never actually used.
Meanwhile, we grew another extension that allows specifying all args.

I did find one user of this extension: https://github.com/thomasjo/atom-ide-cpp.
I'll reach out, there are multiple good alternatives:

  • compile_commands.txt can serve the same purpose as .clang_complete there
  • we can add an extension to support setting the fallback command

Diff Detail

Event Timeline

sammccall created this revision.Oct 24 2018, 5:48 AM
ilya-biryukov accepted this revision.Oct 24 2018, 9:47 AM

LGTM! Thanks for cleaning this up.

This revision is now accepted and ready to land.Oct 24 2018, 9:47 AM

BTW I'm holding off submitting this until we decide the fate of D53688.
If we're going to add that extension, I'd like to land the two patches together so the former user of this extension can rely on *one* of them being available.

This revision was automatically updated to reflect the committed changes.
clangd/Protocol.cpp