Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

any tools which scan code and give a list of functions which call a given function

Tags:

delphi

pascal

here's my problem, I'm tidying up some old code which I've modified over the years and removing redundent functions,

I can do it the slow way & comment it out and see if the compiler throws an error. But I'm just wondering if there are any tools which can which scan code and give a list of functions which call a given function.

I Had a look in ge-experts & icarus, but they only do this at the level of units & classes not down to functions.

any suggestions welcome, many thanks, Brian

like image 584
Hamish_Fernsby Avatar asked Dec 04 '22 15:12

Hamish_Fernsby


1 Answers

Recent versions of Delphi have "Search for References" available via context menu or Ctrl-Shift-Enter. This has the advantage over a simple "search in files" that it will find only references to the current function under the cursor and not also any function or other identifier with the same name.

like image 129
Uwe Raabe Avatar answered Dec 28 '22 07:12

Uwe Raabe