Nathan Ridge
Nathan Ridge
Restarting clangd does trigger the desired re-indexing, but it seems to me that restarting clangd should not be a requirement for keeping the index up to date over the course...
Note: I appreciate that there is a tension between the request in this issue ("do **more** work when saving a header") and the one in https://github.com/clangd/vscode-clangd/issues/314 ("do **less** work when...
Sorry, I'm not very familiar with linker scripts. Could you give a complete example (including the script in question, and .clangd and other relevant metadata files) so that I can...
Agreed, this seems to be an awkward way of representing "the entire line 2" (line numbers being 0-based in LSP) as a range. The start of the range is `{"character":17,"line":1}`,...
@Trass3r if your patch is useful in its current state, I would encourage you to post it to Phabricator for review
Could you provide logs from vscode please (choose "clangd" in the dropdown in the Output view)? The formatting of these logs makes them very hard to read.
> `#s` are added around parameters... but only in C++. Hmm. Presumably because it's only in C++ that you can have multiple distinct functions with the same name that need...
> ``` > // src.h > extern void foo(void); > extern int bar; > ``` > > ``` > // src.c > void foo(void) {} > int bar; > ```...
Don't we update the index when a file is edited (via the LSP client)? And also for all files on clangd startup? Are you thinking of scenarios where out-of-band changes...
Have you built the project and generated a `compile_commands.json` for clangd? (See https://clangd.llvm.org/installation#project-setup.) If you've generated a `compile_commands.json` and it still does not work, please share [clangd logs](https://clangd.llvm.org/troubleshooting#gathering-logs).