Nathan Ridge
Nathan Ridge
Clangd does not currently have this feature. I agree it would be nice to have. (I thought we had an issue on file for it already, but I can't find...
Similar to inactive preprocessor branches (https://github.com/clangd/vscode-clangd/pull/193), we would need to figure out whether we want to do this using semantic tokens, or a protocol extension dedicated to unreachable code. (Or...
> Is there any way to access the diagnostics for closed files or is there a way to enable project wide diagnostics? If not are there plans to support that...
Ok, I think I understand better now: behind the scenes, vscode's "execute provider" functionality is opening the file over LSP with `textDocument/didOpen`, performing the operation (e.g. hover), and then closing...
A guess: to get clangd to compile MinGW headers, you probably need to specify a `--target` that's different from the default (which seems to be `x86_64-pc-windows-msvc` from the logs). Note,...
(Please note that using `--query-driver` currently requires using `compile_commands.json` rather than `compile_flags.txt`; this will be fixed in https://github.com/clangd/clangd/issues/1089 in a forthcoming release.)
Works for me, tested on a simple example like this: ```c struct element { int num; }; void element_delete(struct element *e) { e. } ``` Maybe related to a client-side...
Feel free to attach a complete example file and complete log to make sure I'm testing the same thing you are, and rule out any differences in the response clangd...
Thanks, I can reproduce the issue with `clangd.serverCompletionRanking=false`. Agree that this seems like a bug.
Explanation from [this comment](https://github.com/clangd/clangd/issues/1349#issuecomment-1289457480): > for dot-to-arrow and arrow-to-dot completion, clients often end up filtering these out as the inserted text doesn't match what the client thinks the query is...