Eclipse Finds Possible Code Path Between Two Functions

I have a question about the eclipse. perhaps this is impossible, but I still want to confirm with experts :) In my context, I use C.but can be applied to java and other lanuages.

Let's say I have a really big project. and I have function A, and function B. Is there a way I can determine if there is a code path from function A to function B or function B. let's say A β†’ D β†’ C-> E-> F-> B

I know there is a heirachy call. but my project is very large. function A does not directly call B. function A is called as 10 places, and there are 10 callers called by another 100 subscribers. so is there a function in eclipse to flood the code path and find the connection between the two functions?

thank

+5
source share
1 answer

I would not call it a good way, but for some it may be useful. To get started, you can create an AutoHotkey script as shown below. #vrepresents a keyboard shortcut Win+vto call it.

#v::Send {Right}{Down}{Right}{Down}{Right}{Down}{Right}{Down}

You might want to repeat a few more times (or many times more, I did). Open the call hierarchy in Eclipse, select the first entry and click Win+vand see how it expands several times. After you receive them (have fun), you can right-click on the entry and select Copy Expanded Hierarchy. Paste it somewhere and find another function you want to find.

, "" . (, , ) , , Eclipse . , , ...

0

All Articles