clang_complete
clang_complete copied to clipboard
Is it possible to find calls to a function?
Hi,
I am using cscope for this purpose, but how hard is to develop this feature for clang_complete?
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).
Not all is in forks, see clang-cache at least, there might be more.