Wednesday, September 28, 2016

Show multilayer function relationship by cscope in vim

Leave a Comment

I know source insight can show multilayer function relationship in one window.

For example, we have four functions as below

void example_A() {     example_B(); }  void example_B() {     example_C(); }  void example_C() {     example_D(); }  void example_D(); {     return 5; } 

When I click example_D() in source insight, source insight show example_C() is calling the function.

Moreover, when I click example_C(), I see example_B() is calling the function.

The relationship is like this:

Example_D()    |    -->Example_C()          |          -->Example_B()                |                -->Example_A() 

Could I see the relationship in one window by using cscope in vim?

Thank you.

1 Answers

Answers 1

CCTRee plugin for vim does this kind of visualization using cscope

https://sites.google.com/site/vimcctree/

http://www.vim.org/scripts/script.php?script_id=2368

https://github.com/hari-rangarajan/CCTree

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment