p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
448 stars 16 forks source link

Inlay hint with const not work properly #25

Closed pwqbot closed 1 year ago

pwqbot commented 1 year ago
Screen Shot 2022-08-29 at 23 23 54

Hi there, Inlay hint does not work well if I add const or constexpr.

p00f commented 1 year ago

this works correctly

image

can you paste your code? I don't want to type that out

pwqbot commented 1 year ago

https://github.com/pwqbot/rumble/blob/main/cpp/concept_17/main.cpp#L157 it's a little complicated, I could try to reproduce it in minimum code

p00f commented 1 year ago

Thanks, I'll take a look

pwqbot commented 1 year ago

thanks so much

p00f commented 1 year ago

This is a clangd issue, vscode doesn't show it either image

https://github.com/clangd/clangd