clang_complete icon indicating copy to clipboard operation
clang_complete copied to clipboard

Is it possible to find calls to a function?

Open maxiwell opened this issue 9 years ago • 2 comments

Hi,

I am using cscope for this purpose, but how hard is to develop this feature for clang_complete?

maxiwell avatar Sep 11 '15 21:09 maxiwell

Hi,

it's not that easy. Making a call graph requires parsing all compilation units of the project, while clang_complete basically works only on the current one. Things are missing:

  • notion of a project;
  • indexing of the whole project;
  • storage for parsing results ("who calls whom" in this case);
  • interaction with such storage.

This subject was brought up several times over the years, but I don't remember successful tries (the tries are somewhere among the forks I think).

xaizek avatar Sep 12 '15 06:09 xaizek

Not all is in forks, see clang-cache at least, there might be more.

xaizek avatar Sep 12 '15 06:09 xaizek