2016-02-05 25 views
9

我知道源洞察可以在一個窗口中顯示多層函數關係。通過cimope在vim中顯示多層函數關係

例如,我們有四個功能如下

void example_A() 
{ 
    example_B(); 
} 

void example_B() 
{ 
    example_C(); 
} 

void example_C() 
{ 
    example_D(); 
} 

void example_D(); 
{ 
    return 5; 
} 

當我在源洞察力單擊example_D(),源洞察力顯示example_C()調用函數。

此外,當我點擊example_C()時,我看到example_B()正在調用該函數。

的關係是這樣的:

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

我可以看到在VIM使用cscope在一個窗口中的關係?

謝謝。

+1

你爲什麼絕對想要做它在Vim和Cscope中,如果Source Insight已經做到了你想要的東西? – romainl

回答