If I place the cursor over the symbol foo on line 3 and execute the command :IncomingCalls then I see an error message Incoming calls not found, whereas if I run :lua vim.lsp.buf.incoming_calls() then a quickfix window appears with a single entry main.c|8 col 5| main, corresponding with the position at which foo is called from main.
Using clangd with the following MWE:
main.c
compile_commands.json
If I place the cursor over the symbol
foo
on line 3 and execute the command:IncomingCalls
then I see an error messageIncoming calls not found
, whereas if I run:lua vim.lsp.buf.incoming_calls()
then a quickfix window appears with a single entrymain.c|8 col 5| main
, corresponding with the position at whichfoo
is called frommain
.