Will clangd support per parameter completion information?

Hi, can anyone provide info whether clangd will cover support for completion

after ( or , as supported by libclang as explained at:

http://nosubstance.me/articles/2015-01-29-better-completion-for-cpp/

This is quite useful when one need to get type information for a given parameter
without having to rewrite the entire function to get completion + placeholders.

I also don’t know whether Language Server Protocol is friendly to such feature.

Regards,

Francisco Lopes

Hi, can anyone provide info whether clangd will cover support for completion

after ( or , as supported by libclang as explained at:

http://nosubstance.me/articles/2015-01-29-better-completion-for-cpp/

This is quite useful when one need to get type information for a given parameter
without having to rewrite the entire function to get completion + placeholders.

I’d say it should; the question is obviously the priority / timeline :slight_smile:

Hi Francisco,

The LSP has this feature, it’s called signature help:

https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#textDocument_signatureHelp.

We don’t have it in clangd, but it’s not hard to implement it.
Actually, discussion about it came up during one of recent changes that improve completion: https://reviews.llvm.org/D37101.
+raoulwols, who is the author of the change. Raoul, maybe you had plans regarding signature help?

Hi Ilya, Francisco,

Yes, I definitely have plans to implement textDocument/signatureHelp. Keep an eye on reviews.llvm.org.

Kind regards,

Raoul

Hi Raoul,

Good to hear that. Looking forward to your contributions!

Great and thanks for the information!

Regards,

Francisco Lopes