Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Emacs show me where a specific function is called?

Tags:

c

emacs

Is there a way in Emacs to find out which other places in the code call a specific function? With my current setup (GNU emacs 23.1.1, C codebase), I normally have to search the whole codebase for the function name to see which other functions call it. It would be nice if I could efficiently display all the names of the functions that call this specific function that I'm looking at.

like image 800
ant2009 Avatar asked Jun 02 '10 05:06

ant2009


1 Answers

You can use semantic-symref function (C-c , G) from CEDET package. It can use GNU Global or CTags databases to find callers if they exist. It could also parse sources to find occurrences.

like image 178
Alex Ott Avatar answered Sep 21 '22 23:09

Alex Ott